qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] a small issue with VSOCK
@ 2016-11-15 18:25 Claudio Imbrenda
  2016-11-17 10:34 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Claudio Imbrenda @ 2016-11-15 18:25 UTC (permalink / raw)
  To: Stefan Hajnoczi
  Cc: Michael S. Tsirkin, Christoffer Dall, Alex Bennée,
	marius vlad, Greg Kurz, Ian Campbell, qemu-devel

Hello,

I have found a small issue in the current implementation of VSOCK: if
you load both the vhost_vsock module (or if it's compiled in) then the
vmw_vsock_virtio_transport will not load successfully (both when
compiled as a module or compiled in).

The actual error message I get is:

vmw_vsock_virtio_transport: probe of virtio2 failed with error -16

I dug into the code and it seems that vsock_core_init is called twice,
once for the vhost module and once for the virtio-transport module, the
second time returning -EBUSY (-16) since it's already initialized.

This means that if a guest loads the vhost_vsock module, or if it is
compiled in, then the guest can't use virtio-vsock. This also prevents
using vsock in a nested virtualization scenario, where both host and
guest modules could work at the same time.

Unfortunately I don't have the time to fix this, I just wanted to raise
the issue here, so that you are now aware of it, and can maybe fix it in
the future.


best regards,

Claudio Imbrenda

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

end of thread, other threads:[~2016-11-17 10:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-15 18:25 [Qemu-devel] a small issue with VSOCK Claudio Imbrenda
2016-11-17 10:34 ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).