<div dir="ltr">Yeah I see.<div>  In virt-manager ,aarch64 can realize hotplug by virtio-scsi .</div><div>  Thanks Cole ~ </div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 13 Jun 2016 at 22:07 Cole Robinson <<a href="mailto:crobinso@redhat.com">crobinso@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 06/12/2016 10:08 PM, Kevin Zhao wrote:<br>
> Hi Cole,<br>
>      Thanks for your kindly help.<br>
><br>
> On 13 June 2016 at 06:21, Cole Robinson <<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a><br>
> <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>>> wrote:<br>
><br>
>     On 06/12/2016 10:29 AM, Kevin Zhao wrote:<br>
>     > Hi Cole && All,<br>
>     >      Nice meeting you in the libvirt mail-list. Greetings from Linaro !!!<br>
>     >      I am Kevin Zhao from Linaro and working for OpenStack on Aarch64.<br>
>     > Nowadays I find that the default "virtio" bus is "virtio-mmio" , not<br>
>     > "virtio-pci". Since virtio-mmio do not has the host plugged function ,<br>
>     > something is wrong with the function in OpenStack Nova.<br>
>     ><br>
>     >       Then I search and find some mail information as belows by Cole :-)<br>
>     >       1) <a href="https://www.redhat.com/archives/libvir-list/2015-December/msg00217.html" rel="noreferrer" target="_blank">https://www.redhat.com/archives/libvir-list/2015-December/msg00217.html</a><br>
>     >       2) <a href="https://www.redhat.com/archives/libvir-list/2016-March/msg00167.html" rel="noreferrer" target="_blank">https://www.redhat.com/archives/libvir-list/2016-March/msg00167.html</a><br>
>     ><br>
>     >        I see some efforts have been doing by you. Really thanks for your<br>
>     > efforts for Aarch64. And I have some small questions.<br>
>     >       1. Is Libvirt planning to replace the default virtio-mmio to virtio-pci<br>
>     > for Aarch64?<br>
><br>
>     We have vague plans to maybe change the virtio-mmio default to virtio-pci at<br>
>     some future point, based on some new enough qemu machine type. But the main<br>
>     blocker is that most linux distributions currently don't work out of the box<br>
>     with virtio-pci, at least Fedora doesn't as far as I know. So changing the<br>
>     default now is pre-mature<br>
><br>
> OK . Hope it will be true in the future.<br>
><br>
>     >       2. If not , how can I change the xml file(generated by Virsh) for<br>
>     > virtio-pci  so that Qemu can recognize it ?<br>
>     ><br>
><br>
>     The latest libvirt-1.3.5 release accepts device XML containing <address<br>
>     type='pci'/> . The address block is an explicit request to libvirt to<br>
>     'allocate a PCI address' rather than the default virtio-mmio. So for example<br>
>     if you want to specify a virtio nic, but have it use virtio-pci rather than<br>
>     virtio-mmio, you can do something like:<br>
><br>
>         <interface type='network'><br>
>           <source network='default'/><br>
>           <model type='virtio'/><br>
>           <address type='pci'/><br>
>         </interface><br>
><br>
>     But there isn't currently any switch to say 'always give me virtio-pci instead<br>
>     of virtio-mmio'<br>
><br>
> In my opinion, that is to say, when I want to attach a block device to a guest<br>
> and hope it<br>
> take effects soon,*the only way is using 'scsi' instead of 'virtio'* in<br>
> Aarch64 just like what<br>
> virt-manager does since scsi supports hot plugged. Am I right?<br>
<br>
On x86 at least virtio-blk + pci supports hotplug, but I don't know if that<br>
combo works for aarch64 at the moment. However disk=scsi hotplug should<br>
currently work on aarch64 with controller=virtio-scsi, I've tested that before<br>
<br>
Thanks,<br>
Cole<br>
<br>
</blockquote></div>