Public bug reported:

1, script

QEMU=qemu-system-aarch64

$QEMU \
        -enable-kvm \
        -m 4096 \
        -smp 4 \
        -cpu host \
        -M virt,gic-version=host \
        -vga none  \
        -nographic \
        -kernel $1 \
        -initrd $2 \
        -append "earlycon=pl011,0x9000000 console=ttyAMA0 root=/dev/vda2"
        -drive if=none,file=$3,id=hd0,format=raw \
        -device virtio-blk-pci,drive=hd0 \
        -netdev type=user,id=net0 \
        -device virtio-net-pci,netdev=net0,mac=00:12:34:56:78:89

2, result:

no any virtio devices(blk, net,,,) found by guest kernel

ubuntu@merlin1:~/kvm$ sudo ./start2 ./vmlinuz ./initrd ./dd.img 
[sudo] password for ubuntu: 
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.0-34-generic (buildd@bos01-arm64-016) (gcc 
version 5.3.1 20160413 (Ubuntu/Linaro 5.3.1-14ubuntu2.1) ) #53-Ubuntu SMP Wed 
Jul 27 16:07:06 UTC 2016 (Ubuntu 4.4.0-34.53-generic 4.4.15)
[    0.000000] Boot CPU: AArch64 Processor [501f0000]
[    0.000000] earlycon: Early serial console at MMIO 0x9000000 (options '')
[    0.000000] bootconsole [uart0] enabled
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 
0x0000000000000000-0x000000013fffffff]
[    0.000000] NUMA: Adding memblock [0x40000000 - 0x13fffffff] on node 0
[    0.000000] NUMA: Initmem setup node 0 [mem 0x40000000-0x13fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x13fff2280-0x13fff3fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000013fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] PERCPU: Embedded 17 pages/cpu @ffff8000fff8d000 s31128 r8192 
d30312 u69632
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total 
pages: 1032192
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: earlycon=pl011,0x9000000 console=ttyAMA0 
root=/dev/vda2
[    0.000000] log_buf_len individual max cpu contribution: 4096 bytes
[    0.000000] log_buf_len total cpu_extra contributions: 12288 bytes
[    0.000000] log_buf_len min size: 16384 bytes
[    0.000000] log_buf_len: 32768 bytes
[    0.000000] early log buf free: 13712(83%)
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] software IO TLB [mem 0xfbfff000-0xfffff000] (64MB) mapped at 
[ffff8000bbfff000-ffff8000bfffefff]
[    0.000000] Memory: 4013772K/4194304K available (8752K kernel code, 1022K 
rwdata, 3792K rodata, 760K init, 786K bss, 180532K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vmalloc : 0xffff000000000000 - 0xffff7bffbfff0000   (126974 
GB)
[    0.000000]     vmemmap : 0xffff7bffc0000000 - 0xffff7fffc0000000   (  4096 
GB maximum)
[    0.000000]               0xffff7bffc0000000 - 0xffff7bffc4000000   (    64 
MB actual)
[    0.000000]     fixed   : 0xffff7ffffa7fd000 - 0xffff7ffffac00000   (  4108 
KB)
[    0.000000]     PCI I/O : 0xffff7ffffae00000 - 0xffff7ffffbe00000   (    16 
MB)
[    0.000000]     modules : 0xffff7ffffc000000 - 0xffff800000000000   (    64 
MB)
[    0.000000]     memory  : 0xffff800000000000 - 0xffff800100000000   (  4096 
MB)
[    0.000000]       .init : 0xffff800000cc2000 - 0xffff800000d80000   (   760 
KB)
[    0.000000]       .text : 0xffff800000080000 - 0xffff800000cc2000   ( 12552 
KB)
[    0.000000]       .data : 0xffff800000d91000 - 0xffff800000e90a00   (  1023 
KB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 64.
[    0.000000]  RCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=4
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000000] GICv2m: range[0x8020000:0x8020fff], SPI[80:144]
[    0.000000] Architected cp15 timer(s) running at 50.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff 
max_cycles: 0xb8812736b, max_idle_ns: 440795202655 ns
[    0.000002] sched_clock: 56 bits at 50MHz, resolution 20ns, wraps every 
4398046511100ns
[    0.001882] Console: colour dummy device 80x25
[    0.002787] Calibrating delay loop (skipped), value calculated using timer 
frequency.. 100.00 BogoMIPS (lpj=200000)
[    0.004778] pid_max: default: 32768 minimum: 301
[    0.005716] Security Framework initialized
[    0.006581] Yama: becoming mindful.
[    0.007393] AppArmor: AppArmor initialized
[    0.008914] Dentry cache hash table entries: 524288 (order: 10, 4194304 
bytes)
[    0.015751] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.019577] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[    0.020871] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[    0.023242] Initializing cgroup subsys io
[    0.024029] Initializing cgroup subsys memory
[    0.024886] Initializing cgroup subsys devices
[    0.025755] Initializing cgroup subsys freezer
[    0.026608] Initializing cgroup subsys net_cls
[    0.027544] Initializing cgroup subsys perf_event
[    0.028447] Initializing cgroup subsys net_prio
[    0.029317] Initializing cgroup subsys hugetlb
[    0.030201] Initializing cgroup subsys pids
[    0.031028] ftrace: allocating 30377 entries in 119 pages
[    0.076063] EFI services will not be available.
[    0.076960] ASID allocator initialised with 65536 entries
[    0.091368] Detected PIPT I-cache on CPU1
[    0.091456] CPU1: Booted secondary processor [501f0000]
[    0.102584] Detected PIPT I-cache on CPU2
[    0.102666] CPU2: Booted secondary processor [501f0000]
[    0.113780] Detected PIPT I-cache on CPU3
[    0.113860] CPU3: Booted secondary processor [501f0000]
[    0.113961] Brought up 4 CPUs
[    0.119935] SMP: Total of 4 processors activated.
[    0.120857] CPU: All CPU(s) started at EL1
[    0.174149] devtmpfs: initialized
[    0.175843] evm: security.selinux
[    0.176492] evm: security.SMACK64
[    0.177126] evm: security.SMACK64EXEC
[    0.177919] evm: security.SMACK64TRANSMUTE
[    0.178703] evm: security.SMACK64MMAP
[    0.179396] evm: security.ima
[    0.179958] evm: security.capability
[    0.180968] DMI not present or invalid.
[    0.181991] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, 
max_idle_ns: 7645041785100000 ns
[    0.184234] pinctrl core: initialized pinctrl subsystem
[    0.186000] NET: Registered protocol family 16
[    0.197983] cpuidle: using governor ladder
[    0.210030] cpuidle: using governor menu
[    0.210851] vdso: 2 pages (1 code @ ffff800000d99000, 1 data @ 
ffff800000d98000)
[    0.212311] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.214338] DMA: preallocated 256 KiB pool for atomic allocations
[    0.215652] Serial: AMBA PL011 UART driver
[    0.220027] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 38, base_baud = 
0) is a PL011 rev1
[    0.221764] console [ttyAMA0] enabled
[    0.221764] console [ttyAMA0] enabled
[    0.223086] bootconsole [uart0] disabled
[    0.223086] bootconsole [uart0] disabled
[    0.240882] ACPI: Interpreter disabled.
[    0.241790] vgaarb: loaded
[    0.243123] SCSI subsystem initialized
[    0.244093] usbcore: registered new interface driver usbfs
[    0.244927] usbcore: registered new interface driver hub
[    0.245790] usbcore: registered new device driver usb
[    0.246960] dmi: Firmware registration failed.
[    0.248344] NetLabel: Initializing
[    0.248853] NetLabel:  domain hash size = 128
[    0.249493] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.250226] NetLabel:  unlabeled traffic allowed by default
[    0.269293] clocksource: Switched to clocksource arch_sys_counter
[    0.297449] AppArmor: AppArmor Filesystem Enabled
[    0.298330] pnp: PnP ACPI: disabled
[    0.305235] NET: Registered protocol family 2
[    0.306401] TCP established hash table entries: 32768 (order: 6, 262144 
bytes)
[    0.307798] TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
[    0.309393] TCP: Hash tables configured (established 32768 bind 32768)
[    0.310509] UDP hash table entries: 2048 (order: 4, 65536 bytes)
[    0.311458] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
[    0.312670] NET: Registered protocol family 1
[    0.313552] Trying to unpack rootfs image as initramfs...
[    1.245886] Freeing initrd memory: 33232K (ffff800008000000 - 
ffff80000a074000)
[    1.247165] kvm [1]: HYP mode not available
[    1.248340] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    1.249420] audit: initializing netlink subsys (disabled)
[    1.250246] audit: type=2000 audit(1.176:1): initialized
[    1.251228] Initialise system trusted keyring
[    1.252353] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    1.257679] zbud: loaded
[    1.258712] VFS: Disk quotas dquot_6.6.0
[    1.259418] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.261250] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.263034] fuse init (API version 7.23)
[    1.264066] Key type big_key registered
[    1.264679] Allocating IMA MOK and blacklist keyrings.
[    1.267090] Key type asymmetric registered
[    1.267705] Asymmetric key parser 'x509' registered
[    1.268513] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 
249)
[    1.269860] io scheduler noop registered
[    1.270453] io scheduler deadline registered (default)
[    1.271301] io scheduler cfq registered
[    1.272464] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    1.273345] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    1.274371] PCI host bridge /pcie@10000000 ranges:
[    1.275086]    IO 0x3eff0000..0x3effffff -> 0x00000000
[    1.275837]   MEM 0x10000000..0x3efeffff -> 0x10000000
[    1.276586]   MEM 0x8000000000..0xffffffffff -> 0x8000000000
[    1.277771] pci-host-generic 3f000000.pcie: PCI host bridge to bus 0000:00
[    1.278778] pci_bus 0000:00: root bus resource [bus 00-0f]
[    1.279573] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    1.280465] pci_bus 0000:00: root bus resource [mem 0x10000000-0x3efeffff]
[    1.281497] pci_bus 0000:00: root bus resource [mem 
0x8000000000-0xffffffffff]
[    1.285188] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[    1.290728] msm_serial: driver initialized
[    1.291929] Unable to detect cache hierarchy from DT for CPU 0
[    1.301278] brd: module loaded
[    1.306518] loop: module loaded
[    1.307651] libphy: Fixed MDIO Bus: probed
[    1.308265] tun: Universal TUN/TAP device driver, 1.6
[    1.308993] tun: (C) 1999-2004 Max Krasnyansky <m...@qualcomm.com>
[    1.310195] PPP generic driver version 2.4.2
[    1.311053] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.312010] ehci-pci: EHCI PCI platform driver
[    1.312704] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.313666] ohci-pci: OHCI PCI platform driver
[    1.314352] uhci_hcd: USB Universal Host Controller Interface driver
[    1.315561] mousedev: PS/2 mouse device common for all mice
[    1.316622] i2c /dev entries driver
[    1.317659] device-mapper: uevent: version 1.0.3
[    1.318579] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: 
dm-de...@redhat.com
[    1.319976] ledtrig-cpu: registered to indicate activity on CPUs
[    1.321486] NET: Registered protocol family 10
[    1.322777] NET: Registered protocol family 17
[    1.323472] Key type dns_resolver registered
[    1.324165] Registered cp15_barrier emulation handler
[    1.324926] Registered setend emulation handler
[    1.326085] registered taskstats version 1
[    1.326715] Loading compiled-in X.509 certificates
[    1.328776] Loaded X.509 cert 'Build time autogenerated kernel key: 
923fca11a962f8ffbdef4bc8cab5b92c9563ea54'
[    1.330409] zswap: loaded using pool lzo/zbud
[    1.340224] Key type trusted registered
[    1.354863] Key type encrypted registered
[    1.355524] AppArmor: AppArmor sha1 policy hashing enabled
[    1.356355] ima: No TPM chip found, activating TPM-bypass!
[    1.357323] evm: HMAC attrs: 0x1
[    1.358108] hctosys: unable to open rtc device (rtc0)
[    1.359416] uart-pl011 9000000.pl011: no DMA platform data
[    1.360476] Freeing unused kernel memory: 760K (ffff800000cc2000 - 
ffff800000d80000)
[    1.361689] Freeing alternatives memory: 48K (ffff800000d80000 - 
ffff800000d8c000)
Loading, please wait...
starting version 229
[    1.391731] random: systemd-udevd urandom read with 1 bits of entropy 
available
Begin: Loading essential drivers ... [    2.700929] md: linear personality 
registered for level -1
[    2.707230] md: multipath personality registered for level -4
[    2.713257] md: raid0 personality registered for level 0
[    2.719551] md: raid1 personality registered for level 1
[    2.793316] raid6: int64x1  gen()  1678 MB/s
[    2.861323] raid6: int64x1  xor()  1166 MB/s
[    2.929313] raid6: int64x2  gen()  2443 MB/s
[    2.997307] raid6: int64x2  xor()  1524 MB/s
[    3.065324] raid6: int64x4  gen()  3163 MB/s
[    3.133301] raid6: int64x4  xor()  1730 MB/s
[    3.201317] raid6: int64x8  gen()  2911 MB/s
[    3.269311] raid6: int64x8  xor()  1716 MB/s
[    3.337324] raid6: neonx1   gen()  3007 MB/s
[    3.405305] raid6: neonx1   xor()  1800 MB/s
[    3.473300] raid6: neonx2   gen()  3071 MB/s
[    3.541300] raid6: neonx2   xor()  1812 MB/s
[    3.609318] raid6: neonx4   gen()  3071 MB/s
[    3.677299] raid6: neonx4   xor()  1831 MB/s
[    3.745305] raid6: neonx8   gen()  2827 MB/s
[    3.813310] raid6: neonx8   xor()  1732 MB/s
[    3.813952] raid6: using algorithm int64x4 gen() 3163 MB/s
[    3.814753] raid6: .... xor() 1730 MB/s, rmw enabled
[    3.815481] raid6: using intx1 recovery algorithm
[    3.817979] xor: measuring software checksum speed
[    3.857292]    8regs     :  8648.000 MB/sec
[    3.897292]    8regs_prefetch:  7741.000 MB/sec
[    3.937291]    32regs    :  8593.000 MB/sec
[    3.977291]    32regs_prefetch:  7698.000 MB/sec
[    3.977975] xor: using function: 8regs (8648.000 MB/sec)
[    3.980477] async_tx: api initialized (async)
[    3.996845] md: raid6 personality registered for level 6
[    3.997878] md: raid5 personality registered for level 5
[    3.998714] md: raid4 personality registered for level 4
[    4.009759] md: raid10 personality registered for level 10
done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... [    4.073342] Btrfs loaded
Scanning for Btrfs filesystems
done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... 
done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
QEMU: Terminated

3, environment

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.1 LTS
Release:        16.04
Codename:       xenial
ubuntu@m:~/kvm$ uname -a
Linux merlin1 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:07:06 UTC 2016 
aarch64 aarch64 aarch64 GNU/Linux

ubuntu@m:~/kvm$ qemu-system-aarch64 -version
QEMU emulator version 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.3), Copyright (c) 
2003-2008 Fabrice Bellard

** Affects: qemu (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1612020

Title:
  arm64: virt machine: no virtio devices emulated

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1612020/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to