qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Dor Laor <dlaor@redhat.com>
To: Alexander Graf <agraf@suse.de>
Cc: Eric Van Hensbergen <ericvanhensbergen@us.ibm.com>,
	Chris Wright <chrisw@redhat.com>, kvm-devel <kvm@vger.kernel.org>,
	Gleb Natapov <gleb@redhat.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	Avi Kivity <avi@redhat.com>
Subject: Re: [Qemu-devel] Re: A new direction for vmchannel?
Date: Sun, 25 Jan 2009 00:28:34 +0200	[thread overview]
Message-ID: <497B9612.4060002@redhat.com> (raw)
In-Reply-To: <B8294F7E-BCA5-4B03-978E-C08B2C7D3256@suse.de>

Alexander Graf wrote:
>
>
>
>
> On 24.01.2009, at 01:02, Dor Laor <dlaor@redhat.com> wrote:
>
>> Anthony Liguori wrote:
>>> Gleb Natapov wrote:
>>>> On Fri, Jan 23, 2009 at 08:45:33AM -0600, Anthony Liguori wrote:
>>>>
>>>>> Thoughts?
>>>>>
>>>>>
>>>> Looks good, but I am not to much familiar with p9. Will it provide us
>>>> with stream semantics?
>>>
>>> Sure.  It has read and write operations.  You just have to implement 
>>> them in the same sort of way you'd implement them for a character 
>>> device.
>>
>> So why not having a virtio pv-serial device.
>> Above this device/driver users can have several 
>> implementations/semantics:
>>   - raw messages
>>   - 9p
>>   - userspace tcp/ip
>>      - We already used the host part of it.
>>      - It provides reliability and handles migration too.
>>      - Since its userspace, there is no routing/addressing involved.
>> The above will make windows and other OSs happy and users can still 
>> get 9p or tcp or raw.
>> Maybe even the virtio console can be based over it (Don't really know 
>> nothing about it )
>
> I don't see where there's any benefit here. You need a driver in the 
> guest for virtio either way - and what exactly goes to userspace ( fs 
> or datagram protocol ) is an implementation detail, no?
>
There are two benefits:
a. Simplify the kernel driver over virtio.
    It does not need to implement 9p interface (important for non Linux) 
or other.
    It would be also possible to use the serial as a medium, so no 
driver at all.
b. Flexibility - you're not bound to a specific solution.
    One can use userspace tcp/ip over it, others will use 9p (which is 
nice), etc.

IMO if the current 9p is mature and supports stream based poll semantics 
like was discussed, and is not too
complex for Windows to implement we can use 9p.
Otherwise, let's go for a generic solution like pv serial using virtio.

- dor

> Alex
>
>>
>>
>> btw: I do suggest to keep the former work of nic based vmchannel. 
>> Except for the cmdline,
>> every thing else is committed. It might be good for older OSs and 
>> just work out of the box.
>>
>>
>>>
>>>> How much work is needed to support this in
>>>> Windows (what is your estimation)?
>>>
>>> If you structure your guest applications to use a library, sort of 
>>> like libsysfs, then on Windows, you could implement a 9P client in 
>>> userspace.  I have a 9P client that can be used for this.  You just 
>>> need some way to get the stream to userspace.  You could write a 
>>> virtio windows driver that exposed the stream down to userspace.  
>>> You could also use an alternative transport for Windows (like a 
>>> serial port).
>>>
>>>> Will migration be transparent to
>>>> in guest users?
>>>>
>>>
>>> There's no better migration story for vmchannel backends implemented 
>>> outside of QEMU.  For the ones in QEMU, migration should be 
>>> transparent.
>>>
>>> Regards,
>>>
>>> Anthony Liguori
>>>
>>>> -- 
>>>>            Gleb.
>>>>
>>>
>>>
>>>
>>
>> -- 
>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> -- 
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2009-01-24 22:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=497B9612.4060002@redhat.com \
    --to=dlaor@redhat.com \
    --cc=agraf@suse.de \
    --cc=avi@redhat.com \
    --cc=chrisw@redhat.com \
    --cc=ericvanhensbergen@us.ibm.com \
    --cc=gleb@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).