Re: [PATCH qemu-kvm] Add raw(af_packet) network backend to qemu

Anthony Liguori
2010-01-28T14:13:58Z

On 01/28/2010 07:56 AM, Michael S. Tsirkin wrote:
>> Now, the most important use case I see for the raw socket interface
>> in qemu is to get vhost-net and the qemu user implementation to
>> support the same feature set. If you ask for a network setup involving
>> a raw socket and vhost-net and the kernel can support raw sockets
>> but for some reason fails to set up vhost-net, you should have a
>> fallback that has the exact same semantics at a possibly significant
>> performance loss.
>>
>> Arnd
>>
> Makes sense. A simple reason you can't do vhost-net would be
> that you are using tcg.
>

Some good arguments have been raised in this thread. I really don't
like making our security depend on something external to qemu that is
not widely used or understood.

That said, I'm not seeing a lot of great alternatives. I definitely
like -net socket better than -net raw. In the absence of an
extraordinarily clever solution, I think we may be stuck with doing this.

Regards,

Anthony Liguori