qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] A new direction for vmchannel?
@ 2009-01-23 14:45 Anthony Liguori
  2009-01-23 17:12 ` [Qemu-devel] " Chris Wright
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Anthony Liguori @ 2009-01-23 14:45 UTC (permalink / raw)
  To: Gleb Natapov
  Cc: Eric Van Hensbergen, Chris Wright, kvm-devel, Dor Laor,
	qemu-devel@nongnu.org, Avi Kivity

The userspace configuration aspects of the current implementation of 
vmchannel are pretty annoying.  Moreover, we would like to make use of 
something like vmchannel in a kernel driver and I fear that it's going 
to be difficult to do that.

So here's an alternative proposal.

Around 2.6.27ish, Eric and I added 9p over virtio support to v9fs.  This 
is all upstream.  We backported the v9fs modules all the way back to 
2.6.18.  I have a 9p client and server library and patches available for 
QEMU.  We were using this for a file system pass through but we could 
also use it as a synthetic file system in the guest (like sysfs).

The guest would just have to mount a directory in a well known location, 
and then you could get vmchannel like semantics by just opening a file 
read/write.  Better yet though would be if we actually exposed vmchannel 
as 9p so that management applications could implement sysfs-like 
hierarchies.

I think there could be a great deal of utility in something like.  For 
portability to Windows (if an app cared), it would have to access the 
mount point through a library of some sort.  We would need a Windows 
virtio-9p driver that exposed the 9p session down to userspace.  We 
could then use our 9p client library in the portability library for Windows.

Virtually all of the code is available for this today, the kernel bits 
are already upstream, there's a reasonable story for Windows, and 
there's very little that the guest can do to get in the way of things.

The only thing that could potentially be an issue is SELinux.  I assume 
you'd have to do an SELinux policy for the guest application anyway 
though so it shouldn't be a problem.

Thoughts?

Regards,

Anthony Liguori

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

end of thread, other threads:[~2009-01-25 17:58 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-23 14:45 [Qemu-devel] A new direction for vmchannel? Anthony Liguori
2009-01-23 17:12 ` [Qemu-devel] " Chris Wright
2009-01-23 17:37   ` Anthony Liguori
2009-01-23 20:43 ` Gleb Natapov
2009-01-23 20:58   ` Anthony Liguori
2009-01-24  0:02     ` Dor Laor
2009-01-24 10:22       ` Alexander Graf
2009-01-24 22:28         ` Dor Laor
2009-01-24 17:19 ` Daniel P. Berrange
2009-01-24 17:52   ` Anthony Liguori
2009-01-24 18:39     ` Gleb Natapov
2009-01-24 18:47       ` Anthony Liguori
2009-01-24 19:30       ` Anthony Liguori
2009-01-24 21:00         ` Jamie Lokier
2009-01-24 21:22           ` Anthony Liguori
2009-01-25 14:16     ` Daniel P. Berrange
2009-01-25 17:58       ` Anthony Liguori

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).