<div dir="ltr">Hi Andrea,<div>   I'm using the Debian Jessie with kernel Linux u202154 4.4.0-135-arm64.</div><div>   But I am not sure whether the virtio-pci module has been built into the kernel.</div><div>not as a module. </div><div>    So I am changing to Ubuntu and RHEL73. As far as I know, ubuntu Wily </div><div>has the driver of virtio-pci.</div><div>   Thanks~</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 17 August 2016 at 21:51, Andrea Bolognani <span dir="ltr"><<a href="mailto:abologna@redhat.com" target="_blank">abologna@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, 2016-08-17 at 09:18 -0400, Cole Robinson wrote:<br>
> > I have changed the libvirt to 1.3.5 now, also add the pci to net-device xml like: <br>
> >  <address type='pci'/>,then use the virsh to boot the VM,the total xml file is:<br>
> >  <a href="https://paste.fedoraproject.org/409534/71434141/" rel="noreferrer" target="_blank">https://paste.<wbr>fedoraproject.org/409534/<wbr>71434141/</a><br>
> > <br>
> > After booting, the eth0 device disappear(eth0 occur when the address is<br>
> > virtio-mmio),<br>
> > but I can find another net-device, also it can't work for dhcp: <br>
> > 2: enp2s1: <BROADCAST,MULTICAST,UP,LOWER_<wbr>UP> mtu 1500 qdisc pfifo_fast state<br>
> > UP group default qlen 1000<br>
> >     link/ether 52:54:00:0d:25:26 brd ff:ff:ff:ff:ff:ff<br>
> >     inet6 fe80::5054:ff:fe0d:2526/64 scope link <br>
> >        valid_lft forever preferred_lft forever<br>
> > Running lspci:<br>
> > 02:01.0 Ethernet controller: Red Hat, Inc Virtio network device<br>
> > <br>
> > My question is: <br>
> > 1. I use Debian 8 AArch64 as the Guest OS, do you think the virtio-pci for<br>
> > net-device works is OK ?<br>
> <br>
> My guess is that the support isn't complete. Last I checked Fedora doesn't<br>
> even work with aarch64 virtio-pci + uefi, because it requires some kernel<br>
> changes that haven't been fully upstreamed yet. But that was several months<br>
> ago... There may be a way to work around it nowadays but I don't personally<br>
> know. You may want to test with either RHELSA if you have a copy, or linaro<br>
> images.<br>
> <br>
> > 2. If I change the disk address-type to pci(Libvirt pass the virtio pci<br>
> > parameters to Qemu for disk device), but I can't boot <br>
> > the VM. Does Qemu not support virtio pci for  disk device in AArch64?<br>
> <br>
> That should work fine in my testing with RHELSA, so I don't think it's a<br>
> libvirt or qemu limitation. Probably the guest OS + UEFI.<br>
<br>
</div></div>Looks like Debian 8.5 simply doesn't include virtio-pci<br>
support:<br>
<br>
  $ lsinitramfs /boot/initrd.img | grep virtio<br>
  lib/modules/3.16.0-4-arm64/<wbr>kernel/drivers/scsi/virtio_<wbr>scsi.ko<br>
  lib/modules/3.16.0-4-arm64/<wbr>kernel/drivers/block/virtio_<wbr>blk.ko<br>
  lib/modules/3.16.0-4-arm64/<wbr>kernel/drivers/virtio<br>
  lib/modules/3.16.0-4-arm64/<wbr>kernel/drivers/virtio/virtio_<wbr>ring.ko<br>
  lib/modules/3.16.0-4-arm64/<wbr>kernel/drivers/virtio/virtio_<wbr>mmio.ko<br>
  lib/modules/3.16.0-4-arm64/<wbr>kernel/drivers/virtio/virtio.<wbr>ko<br>
  lib/modules/3.16.0-4-arm64/<wbr>kernel/drivers/net/virtio_net.<wbr>ko<br>
<br>
  $ modprobe virtio-pci<br>
  modprobe: FATAL: Module virtio-pci not found.<br>
<br>
I think kernel 3.16.0 is simply too old.<br>
<br>
Unfortunately, I tried the same setup with an up-to-date<br>
Debian testing guest and I was still unable to boot it with<br>
virtio-pci disk and network. Support for this kind of setup is<br>
still far from being ready for mass consumption, I'm afraid.<br>
<span class="HOEnZb"><font color="#888888"><br>
-- <br>
Andrea Bolognani / Red Hat / Virtualization<br>
</font></span></blockquote></div><br></div>