From: "Michael S. Tsirkin" <mst@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Anthony Liguori <aliguori@linux.vnet.ibm.com>, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: Planning for 0.13
Date: Wed, 6 Jan 2010 22:07:30 +0200 [thread overview]
Message-ID: <20100106200730.GI4001@redhat.com> (raw)
In-Reply-To: <4B44EBA9.6090908@redhat.com>
On Wed, Jan 06, 2010 at 08:59:37PM +0100, Paolo Bonzini wrote:
>
>>>> We have ones that require read/write, ones that require send/recv, and
>>>> ones that require vhost interaction. Really, the first two are the same
>>>> but the distinction is necessary for Windows.
>>>
>>> Not necessarily, you can open sockets on Windows so that they support
>>> read/write. Just create it with
>>>
>>> fh = WSASocket (domain, type, protocol, NULL, 0, 0);
>>>
>>> instead of socket. Since Windows already has enough problems passing
>>> file descriptors to processes, imposing the above on an external
>>> management interface is not a huge chore.
>>>
>>> Paolo
>>
>> For linux read/write often isn't a good idea :)
>
> Yeah, only for "normal" raw sockets.
You mean TCP? We really need a UDP option BTW, and that
also needs special handling.
>> E.g. for packet sockets you really need to use sendmsg and set msg_name
>> with the proper protocol. You also must use recvmsg and set MSG_TRUNC
>> otherwise packets can get truncatred silently.
>
> The situation for packet sockets is more similar to vnet headers no
> (just learning all this stuff)? They require code in qemu anyway, so
> the helper would do only the set up/tear down.
>
> Paolo
Yes. And in that case, it does not make sense to force helper usage
where option to call 'socket' is just as easy.
--
MST
next prev parent reply other threads:[~2010-01-06 20:10 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-05 12:43 [Qemu-devel] Planning for 0.13 Anthony Liguori
2010-01-05 12:44 ` [Qemu-devel] " Anthony Liguori
2010-01-05 20:50 ` [Qemu-devel] " Stefan Weil
2010-01-05 21:33 ` [Qemu-devel] " Michael S. Tsirkin
2010-01-06 0:32 ` Anthony Liguori
2010-01-06 10:49 ` Michael S. Tsirkin
2010-01-06 12:36 ` Anthony Liguori
2010-01-06 13:20 ` Michael S. Tsirkin
2010-01-06 13:34 ` Anthony Liguori
2010-01-06 13:55 ` Michael S. Tsirkin
2010-01-06 15:10 ` Anthony Liguori
2010-01-06 15:16 ` Michael S. Tsirkin
2010-01-06 15:24 ` Anthony Liguori
2010-01-06 15:41 ` Michael S. Tsirkin
2010-01-06 17:19 ` Jamie Lokier
2010-01-06 18:19 ` Michael S. Tsirkin
2010-01-06 22:49 ` Jamie Lokier
2010-01-06 23:59 ` Michael S. Tsirkin
2010-01-06 19:48 ` Paolo Bonzini
2010-01-06 19:54 ` Michael S. Tsirkin
2010-01-06 19:59 ` Paolo Bonzini
2010-01-06 20:07 ` Michael S. Tsirkin [this message]
2010-01-06 23:00 ` Jamie Lokier
2010-01-07 0:05 ` Michael S. Tsirkin
2010-01-05 22:31 ` [Qemu-devel] " Aurelien Jarno
2010-01-06 2:46 ` Roy Tam
2010-01-06 9:37 ` Gerd Hoffmann
2010-01-06 15:34 ` Adam Litke
2010-01-12 13:43 ` Pasi Kärkkäinen
2010-01-12 15:07 ` Stefano Stabellini
2010-02-09 14:50 ` Artyom Tarasenko
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=20100106200730.GI4001@redhat.com \
--to=mst@redhat.com \
--cc=aliguori@linux.vnet.ibm.com \
--cc=pbonzini@redhat.com \
--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 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.