All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Help]: Does qemu-system-aarch64 support virtio-9p? I got a problem when remap host file to guest in AArch64.
@ 2016-08-05  2:23 Kevin Zhao
  2016-08-05  8:13 ` Peter Maydell
  2016-08-05  8:28 ` Daniel P. Berrange
  0 siblings, 2 replies; 8+ messages in thread
From: Kevin Zhao @ 2016-08-05  2:23 UTC (permalink / raw)
  To: QEMU Developers, qemu-arm, Peter Maydell

Hi All,
     I have a problem may about Qemu and kindly need your help. Does
qemu-system-aarch64 support virtio-9p ?
     Recently I have tried to use qemu remapped the file from host to
guest. As I know, Qemu has supported this so long as guest kernel has
support 9p(virtfs). Reference to this link:
http://wiki.qemu.org/Documentation/9psetup
Fedora 24 AArch64 kernel has supported this:
[root@sha-win-225 ~]# lsmod | grep 9p
9p                     56273  0
fscache                87449  1 9p
9pnet_virtio            9122  0
9pnet                  83564  2 9p,9pnet_virtio
virtio_ring            13866  5 virtio_net,virtio_pci,9pnet_
virtio,virtio_mmio,virtio_scsi
virtio                  9467  5 virtio_net,virtio_pci,9pnet_
virtio,virtio_mmio,virtio_scsi

    Now I use virsh to launch the VM, and the corresponding qemu command I
have pasted here:
http://paste.openstack.org/show/549225/.
    You can see that:
* -fsdev
local,security_model=mapped,id=fsdev-fs0,path=/var/lib/libvirt/images/coreos
-device
virtio-9p-pci,id=fs0,fsdev=fsdev-fs0,mount_tag=share,bus=pci.2,addr=0x1*
     Here is the command that remapped the directory from host to guest.
After VM launched, I use the command to mount:
* mount -t 9p -o trans=virtio share /tmp/shared/
-oversion=9p2000.L,posixacl,cache=loose*
But mount command will be blocked and output nothing.
     The Qemu version is QEMU emulator version 2.5.0 (Debian
1:2.5+dfsg-5ubuntu10.2). Besides test fedora24 guest, I have got the same
problem in Debian jessie.
      Kindly need your help~You will be really appreciated.

Best Regards,
Kevin Zhao

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [Help]: Does qemu-system-aarch64 support virtio-9p? I got a problem when remap host file to guest in AArch64.
  2016-08-05  2:23 [Qemu-devel] [Help]: Does qemu-system-aarch64 support virtio-9p? I got a problem when remap host file to guest in AArch64 Kevin Zhao
@ 2016-08-05  8:13 ` Peter Maydell
  2016-08-05 10:09   ` Kevin Zhao
  2016-08-05  8:28 ` Daniel P. Berrange
  1 sibling, 1 reply; 8+ messages in thread
From: Peter Maydell @ 2016-08-05  8:13 UTC (permalink / raw)
  To: Kevin Zhao; +Cc: QEMU Developers, qemu-arm

On 5 August 2016 at 03:23, Kevin Zhao <kevin.zhao@linaro.org> wrote:
> Hi All,
>      I have a problem may about Qemu and kindly need your help. Does
> qemu-system-aarch64 support virtio-9p ?

virtio-9p isn't guest architecture specific so in theory it
should. However I've never tried it.

>      The Qemu version is QEMU emulator version 2.5.0 (Debian
> 1:2.5+dfsg-5ubuntu10.2). Besides test fedora24 guest, I have got the same
> problem in Debian jessie.

It may be worth trying a more recent QEMU, like the 2.7.0rc1
release candidate we just put out.

thanks
-- PMM

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [Help]: Does qemu-system-aarch64 support virtio-9p? I got a problem when remap host file to guest in AArch64.
  2016-08-05  2:23 [Qemu-devel] [Help]: Does qemu-system-aarch64 support virtio-9p? I got a problem when remap host file to guest in AArch64 Kevin Zhao
  2016-08-05  8:13 ` Peter Maydell
@ 2016-08-05  8:28 ` Daniel P. Berrange
  2016-08-05 10:08   ` Kevin Zhao
  2016-08-05 10:27   ` Claudio Fontana
  1 sibling, 2 replies; 8+ messages in thread
From: Daniel P. Berrange @ 2016-08-05  8:28 UTC (permalink / raw)
  To: Kevin Zhao; +Cc: QEMU Developers, qemu-arm, Peter Maydell

On Fri, Aug 05, 2016 at 10:23:58AM +0800, Kevin Zhao wrote:
> Hi All,
>      I have a problem may about Qemu and kindly need your help. Does
> qemu-system-aarch64 support virtio-9p ?
>      Recently I have tried to use qemu remapped the file from host to
> guest. As I know, Qemu has supported this so long as guest kernel has
> support 9p(virtfs). Reference to this link:
> http://wiki.qemu.org/Documentation/9psetup
> Fedora 24 AArch64 kernel has supported this:
> [root@sha-win-225 ~]# lsmod | grep 9p
> 9p                     56273  0
> fscache                87449  1 9p
> 9pnet_virtio            9122  0
> 9pnet                  83564  2 9p,9pnet_virtio
> virtio_ring            13866  5 virtio_net,virtio_pci,9pnet_
> virtio,virtio_mmio,virtio_scsi
> virtio                  9467  5 virtio_net,virtio_pci,9pnet_
> virtio,virtio_mmio,virtio_scsi
> 
>     Now I use virsh to launch the VM, and the corresponding qemu command I
> have pasted here:
> http://paste.openstack.org/show/549225/.
>     You can see that:
> * -fsdev
> local,security_model=mapped,id=fsdev-fs0,path=/var/lib/libvirt/images/coreos
> -device
> virtio-9p-pci,id=fs0,fsdev=fsdev-fs0,mount_tag=share,bus=pci.2,addr=0x1*
>      Here is the command that remapped the directory from host to guest.
> After VM launched, I use the command to mount:
> * mount -t 9p -o trans=virtio share /tmp/shared/
> -oversion=9p2000.L,posixacl,cache=loose*
> But mount command will be blocked and output nothing.

Try using  version=9p2000.u instead - I've noticed other versions have
been buggy in various kernel version/qemu version combinations. The
9p2000.u version is what i use in libvirt-sandobx and so I know it will
work in general.

>      The Qemu version is QEMU emulator version 2.5.0 (Debian
> 1:2.5+dfsg-5ubuntu10.2). Besides test fedora24 guest, I have got the same
> problem in Debian jessie.
>       Kindly need your help~You will be really appreciated.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [Help]: Does qemu-system-aarch64 support virtio-9p? I got a problem when remap host file to guest in AArch64.
  2016-08-05  8:28 ` Daniel P. Berrange
@ 2016-08-05 10:08   ` Kevin Zhao
  2016-08-05 10:27   ` Claudio Fontana
  1 sibling, 0 replies; 8+ messages in thread
From: Kevin Zhao @ 2016-08-05 10:08 UTC (permalink / raw)
  To: Daniel P. Berrange; +Cc: QEMU Developers, qemu-arm, Peter Maydell

[-- Attachment #1: Type: text/plain, Size: 3434 bytes --]

Hi Daniel && Peter && All,
     Thanks for your help. I've changed to 9p2000.u but also met the
problem. The qemu of booting the guests is here:
http://paste.openstack.org/show/550382/
     After booting *Debian 8* OS, enter into the guests  and run the
command( changed to 9p2000.u):
[image: Inline images 1]
*And you can see it has been blocked also :-)* .The dmesg info is here:
http://paste.openstack.org/show/550383/
In the last:
[  318.086744] FS-Cache: Loaded
[  318.089626] 9p: Installing v9fs 9p2000 file system support
[  318.089655] FS-Cache: Netfs '9p' registered for caching

 The guest kernel is 4.6.0-1-arm64 #1 SMP Debian 4.6.4-1 (2016-07-18)
aarch64 GNU/Linux
Guest qemu-system-aarch64: QEMU emulator version 2.6.0 (Debian 1:2.6+dfsg-3)
For Fedora 24, I find a bug here, related to this issue, Can't mount
virtio-9p fs at boot time
it is : https://bugzilla.redhat.com/show_bug.cgi?id=1184122

     It is a little werid of this problem, kindly need your help :-) Thanks~

On 5 August 2016 at 16:28, Daniel P. Berrange <berrange@redhat.com> wrote:

> On Fri, Aug 05, 2016 at 10:23:58AM +0800, Kevin Zhao wrote:
> > Hi All,
> >      I have a problem may about Qemu and kindly need your help. Does
> > qemu-system-aarch64 support virtio-9p ?
> >      Recently I have tried to use qemu remapped the file from host to
> > guest. As I know, Qemu has supported this so long as guest kernel has
> > support 9p(virtfs). Reference to this link:
> > http://wiki.qemu.org/Documentation/9psetup
> > Fedora 24 AArch64 kernel has supported this:
> > [root@sha-win-225 ~]# lsmod | grep 9p
> > 9p                     56273  0
> > fscache                87449  1 9p
> > 9pnet_virtio            9122  0
> > 9pnet                  83564  2 9p,9pnet_virtio
> > virtio_ring            13866  5 virtio_net,virtio_pci,9pnet_
> > virtio,virtio_mmio,virtio_scsi
> > virtio                  9467  5 virtio_net,virtio_pci,9pnet_
> > virtio,virtio_mmio,virtio_scsi
> >
> >     Now I use virsh to launch the VM, and the corresponding qemu command
> I
> > have pasted here:
> > http://paste.openstack.org/show/549225/.
> >     You can see that:
> > * -fsdev
> > local,security_model=mapped,id=fsdev-fs0,path=/var/lib/
> libvirt/images/coreos
> > -device
> > virtio-9p-pci,id=fs0,fsdev=fsdev-fs0,mount_tag=share,bus=pci.2,addr=0x1*
> >      Here is the command that remapped the directory from host to guest.
> > After VM launched, I use the command to mount:
> > * mount -t 9p -o trans=virtio share /tmp/shared/
> > -oversion=9p2000.L,posixacl,cache=loose*
> > But mount command will be blocked and output nothing.
>
> Try using  version=9p2000.u instead - I've noticed other versions have
> been buggy in various kernel version/qemu version combinations. The
> 9p2000.u version is what i use in libvirt-sandobx and so I know it will
> work in general.
>
> >      The Qemu version is QEMU emulator version 2.5.0 (Debian
> > 1:2.5+dfsg-5ubuntu10.2). Besides test fedora24 guest, I have got the same
> > problem in Debian jessie.
> >       Kindly need your help~You will be really appreciated.
>
> Regards,
> Daniel
> --
> |: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/
> :|
> |: http://libvirt.org              -o-             http://virt-manager.org
> :|
> |: http://autobuild.org       -o-         http://search.cpan.org/~danberr/
> :|
> |: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc
> :|
>

[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 24065 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [Help]: Does qemu-system-aarch64 support virtio-9p? I got a problem when remap host file to guest in AArch64.
  2016-08-05  8:13 ` Peter Maydell
@ 2016-08-05 10:09   ` Kevin Zhao
  0 siblings, 0 replies; 8+ messages in thread
From: Kevin Zhao @ 2016-08-05 10:09 UTC (permalink / raw)
  To: Peter Maydell; +Cc: QEMU Developers, qemu-arm

Hi Peter,
    Thanks~
     I will try newest version of Qemu 2.7.0 to see how it well

On 5 August 2016 at 16:13, Peter Maydell <peter.maydell@linaro.org> wrote:

> On 5 August 2016 at 03:23, Kevin Zhao <kevin.zhao@linaro.org> wrote:
> > Hi All,
> >      I have a problem may about Qemu and kindly need your help. Does
> > qemu-system-aarch64 support virtio-9p ?
>
> virtio-9p isn't guest architecture specific so in theory it
> should. However I've never tried it.
>
> >      The Qemu version is QEMU emulator version 2.5.0 (Debian
> > 1:2.5+dfsg-5ubuntu10.2). Besides test fedora24 guest, I have got the same
> > problem in Debian jessie.
>
> It may be worth trying a more recent QEMU, like the 2.7.0rc1
> release candidate we just put out.
>
> thanks
> -- PMM
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [Help]: Does qemu-system-aarch64 support virtio-9p? I got a problem when remap host file to guest in AArch64.
  2016-08-05  8:28 ` Daniel P. Berrange
  2016-08-05 10:08   ` Kevin Zhao
@ 2016-08-05 10:27   ` Claudio Fontana
  2016-08-05 10:32     ` Claudio Fontana
  1 sibling, 1 reply; 8+ messages in thread
From: Claudio Fontana @ 2016-08-05 10:27 UTC (permalink / raw)
  To: Daniel P. Berrange, Kevin Zhao; +Cc: Peter Maydell, qemu-arm, QEMU Developers

Hi,

On 05.08.2016 10:28, Daniel P. Berrange wrote:
> On Fri, Aug 05, 2016 at 10:23:58AM +0800, Kevin Zhao wrote:
>> Hi All,
>>      I have a problem may about Qemu and kindly need your help. Does
>> qemu-system-aarch64 support virtio-9p ?
>>      Recently I have tried to use qemu remapped the file from host to
>> guest. As I know, Qemu has supported this so long as guest kernel has
>> support 9p(virtfs). Reference to this link:
>> http://wiki.qemu.org/Documentation/9psetup
>> Fedora 24 AArch64 kernel has supported this:
>> [root@sha-win-225 ~]# lsmod | grep 9p
>> 9p                     56273  0
>> fscache                87449  1 9p
>> 9pnet_virtio            9122  0
>> 9pnet                  83564  2 9p,9pnet_virtio
>> virtio_ring            13866  5 virtio_net,virtio_pci,9pnet_
>> virtio,virtio_mmio,virtio_scsi
>> virtio                  9467  5 virtio_net,virtio_pci,9pnet_
>> virtio,virtio_mmio,virtio_scsi
>>
>>     Now I use virsh to launch the VM, and the corresponding qemu command I
>> have pasted here:
>> http://paste.openstack.org/show/549225/.
>>     You can see that:
>> * -fsdev
>> local,security_model=mapped,id=fsdev-fs0,path=/var/lib/libvirt/images/coreos
>> -device
>> virtio-9p-pci,id=fs0,fsdev=fsdev-fs0,mount_tag=share,bus=pci.2,addr=0x1*
>>      Here is the command that remapped the directory from host to guest.
>> After VM launched, I use the command to mount:
>> * mount -t 9p -o trans=virtio share /tmp/shared/
>> -oversion=9p2000.L,posixacl,cache=loose*
>> But mount command will be blocked and output nothing.
> 
> Try using  version=9p2000.u instead - I've noticed other versions have
> been buggy in various kernel version/qemu version combinations. The
> 9p2000.u version is what i use in libvirt-sandobx and so I know it will
> work in general.

We are using version=9p2000.L here with qemu-system-aarch64, and it works well.
We tested only on qemu-2.5 though.

Ciao,

Claudio


> 
>>      The Qemu version is QEMU emulator version 2.5.0 (Debian
>> 1:2.5+dfsg-5ubuntu10.2). Besides test fedora24 guest, I have got the same
>> problem in Debian jessie.
>>       Kindly need your help~You will be really appreciated.
> 
> Regards,
> Daniel
> 


-- 
Claudio Fontana
Server Virtualization Architect
Huawei Technologies Duesseldorf GmbH
Riesstraße 25 - 80992 München

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [Help]: Does qemu-system-aarch64 support virtio-9p? I got a problem when remap host file to guest in AArch64.
  2016-08-05 10:27   ` Claudio Fontana
@ 2016-08-05 10:32     ` Claudio Fontana
  2016-08-05 13:18       ` Kevin Zhao
  0 siblings, 1 reply; 8+ messages in thread
From: Claudio Fontana @ 2016-08-05 10:32 UTC (permalink / raw)
  To: Daniel P. Berrange, Kevin Zhao; +Cc: Peter Maydell, qemu-arm, QEMU Developers

On 05.08.2016 12:27, Claudio Fontana wrote:
> Hi,
> 
> On 05.08.2016 10:28, Daniel P. Berrange wrote:
>> On Fri, Aug 05, 2016 at 10:23:58AM +0800, Kevin Zhao wrote:
>>> Hi All,
>>>      I have a problem may about Qemu and kindly need your help. Does
>>> qemu-system-aarch64 support virtio-9p ?
>>>      Recently I have tried to use qemu remapped the file from host to
>>> guest. As I know, Qemu has supported this so long as guest kernel has
>>> support 9p(virtfs). Reference to this link:
>>> http://wiki.qemu.org/Documentation/9psetup
>>> Fedora 24 AArch64 kernel has supported this:
>>> [root@sha-win-225 ~]# lsmod | grep 9p
>>> 9p                     56273  0
>>> fscache                87449  1 9p
>>> 9pnet_virtio            9122  0
>>> 9pnet                  83564  2 9p,9pnet_virtio
>>> virtio_ring            13866  5 virtio_net,virtio_pci,9pnet_
>>> virtio,virtio_mmio,virtio_scsi
>>> virtio                  9467  5 virtio_net,virtio_pci,9pnet_
>>> virtio,virtio_mmio,virtio_scsi
>>>
>>>     Now I use virsh to launch the VM, and the corresponding qemu command I
>>> have pasted here:
>>> http://paste.openstack.org/show/549225/.
>>>     You can see that:
>>> * -fsdev
>>> local,security_model=mapped,id=fsdev-fs0,path=/var/lib/libvirt/images/coreos
>>> -device
>>> virtio-9p-pci,id=fs0,fsdev=fsdev-fs0,mount_tag=share,bus=pci.2,addr=0x1*
>>>      Here is the command that remapped the directory from host to guest.
>>> After VM launched, I use the command to mount:
>>> * mount -t 9p -o trans=virtio share /tmp/shared/
>>> -oversion=9p2000.L,posixacl,cache=loose*
>>> But mount command will be blocked and output nothing.
>>
>> Try using  version=9p2000.u instead - I've noticed other versions have
>> been buggy in various kernel version/qemu version combinations. The
>> 9p2000.u version is what i use in libvirt-sandobx and so I know it will
>> work in general.
> 
> We are using version=9p2000.L here with qemu-system-aarch64, and it works well.
> We tested only on qemu-2.5 though.

Forgot to mention though that we backported commit c8225aa1 "virtio-9p: use accessor to get thread_pool" though,
as without it we have experienced crashes.

Ciao, C.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Qemu-devel] [Help]: Does qemu-system-aarch64 support virtio-9p? I got a problem when remap host file to guest in AArch64.
  2016-08-05 10:32     ` Claudio Fontana
@ 2016-08-05 13:18       ` Kevin Zhao
  0 siblings, 0 replies; 8+ messages in thread
From: Kevin Zhao @ 2016-08-05 13:18 UTC (permalink / raw)
  To: Claudio Fontana
  Cc: Daniel P. Berrange, Peter Maydell, qemu-arm, QEMU Developers

Hi Claudio,
    Could you tell me what host and guest OS are you using? And the
hardware is 96board or other Hisilicon Server?
    I use SoftIron. 8 cores AArch64 servers.


On 5 August 2016 at 18:32, Claudio Fontana <claudio.fontana@huawei.com>
wrote:

> On 05.08.2016 12:27, Claudio Fontana wrote:
> > Hi,
> >
> > On 05.08.2016 10:28, Daniel P. Berrange wrote:
> >> On Fri, Aug 05, 2016 at 10:23:58AM +0800, Kevin Zhao wrote:
> >>> Hi All,
> >>>      I have a problem may about Qemu and kindly need your help. Does
> >>> qemu-system-aarch64 support virtio-9p ?
> >>>      Recently I have tried to use qemu remapped the file from host to
> >>> guest. As I know, Qemu has supported this so long as guest kernel has
> >>> support 9p(virtfs). Reference to this link:
> >>> http://wiki.qemu.org/Documentation/9psetup
> >>> Fedora 24 AArch64 kernel has supported this:
> >>> [root@sha-win-225 ~]# lsmod | grep 9p
> >>> 9p                     56273  0
> >>> fscache                87449  1 9p
> >>> 9pnet_virtio            9122  0
> >>> 9pnet                  83564  2 9p,9pnet_virtio
> >>> virtio_ring            13866  5 virtio_net,virtio_pci,9pnet_
> >>> virtio,virtio_mmio,virtio_scsi
> >>> virtio                  9467  5 virtio_net,virtio_pci,9pnet_
> >>> virtio,virtio_mmio,virtio_scsi
> >>>
> >>>     Now I use virsh to launch the VM, and the corresponding qemu
> command I
> >>> have pasted here:
> >>> http://paste.openstack.org/show/549225/.
> >>>     You can see that:
> >>> * -fsdev
> >>> local,security_model=mapped,id=fsdev-fs0,path=/var/lib/
> libvirt/images/coreos
> >>> -device
> >>> virtio-9p-pci,id=fs0,fsdev=fsdev-fs0,mount_tag=share,bus=
> pci.2,addr=0x1*
> >>>      Here is the command that remapped the directory from host to
> guest.
> >>> After VM launched, I use the command to mount:
> >>> * mount -t 9p -o trans=virtio share /tmp/shared/
> >>> -oversion=9p2000.L,posixacl,cache=loose*
> >>> But mount command will be blocked and output nothing.
> >>
> >> Try using  version=9p2000.u instead - I've noticed other versions have
> >> been buggy in various kernel version/qemu version combinations. The
> >> 9p2000.u version is what i use in libvirt-sandobx and so I know it will
> >> work in general.
> >
> > We are using version=9p2000.L here with qemu-system-aarch64, and it
> works well.
> > We tested only on qemu-2.5 though.
>
> Forgot to mention though that we backported commit c8225aa1 "virtio-9p:
> use accessor to get thread_pool" though,
> as without it we have experienced crashes.
>
> Ciao, C.
>
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-08-05 13:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-05  2:23 [Qemu-devel] [Help]: Does qemu-system-aarch64 support virtio-9p? I got a problem when remap host file to guest in AArch64 Kevin Zhao
2016-08-05  8:13 ` Peter Maydell
2016-08-05 10:09   ` Kevin Zhao
2016-08-05  8:28 ` Daniel P. Berrange
2016-08-05 10:08   ` Kevin Zhao
2016-08-05 10:27   ` Claudio Fontana
2016-08-05 10:32     ` Claudio Fontana
2016-08-05 13:18       ` Kevin Zhao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.