qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Issue Using netdev or vlan with qemu 15.


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] Issue Using netdev or vlan with qemu 15.
Date: Fri, 11 Nov 2011 10:50:18 +0000

On Thu, Nov 10, 2011 at 5:12 PM, srinivasan Sundararajan
<address@hidden> wrote:
>
> Trying the following and can’t seem to make it work ?  This is with qemu-kvm
> 15 .  What am I doing wrong here ? I get this id1 not found error.
>
> qemu-system-x86_64 \
> -enable-kvm  -cpu qemu64,+vmx -boot c -m 16000M \
> -drive file=my.disk,if=virtio \
> -netdev user,id=id0 -device virtio-net-pci,netdev=id0,id=myid0 \
> -netdev socket,listen=:12345,id=id1 -device
> virtio-net-pci,netdev=id1,id=myid1 \
> -monitor telnet:127.0.0.1:65012,server,nowait,nodelay \
> -nographic
>
> qemu-system-x86_64: -device virtio-net-pci,netdev=id1,id=myid1: Property
> 'virtio-net-pci.netdev' can't find value 'id1'

This is a bug in QEMU and is still present in the upcoming 1.0.

It is due to the way that socket listen is implemented.  During the
listen state where we wait to accept a client connection the -netdev
has not yet been fully created.  Therefore the virtio-net-pci
initialization fails because it cannot find the id0 -netdev.

Patches will be required to fix this.  I think net/socket.c needs an
initial state where NetClientInfo .receive() does nothing because
there is no client connected yet.

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]