Re: [Qemu-devel] Question about Virtio and networking

2015-10-16 Thread Amos Jianjun Kong
On Tue, Sep 22, 2015 at 11:40 PM, //-//ani Nemati wrote: > network related cli: > -netdev tap,fd=19,id=hostnet0,vhost=on,vhostfd=21 > -device > virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:16:fa:57,bus=pci.0,addr=0x3 > It shows me that it uses virtio-net-pci as device for network. I do

Re: [Qemu-devel] Question about Virtio and networking

2015-10-16 Thread Stefan Hajnoczi
On Tue, Sep 22, 2015 at 11:40:11AM -0400, //-//ani Nemati wrote: > It shows me that it uses virtio-net-pci as device for network. I don't know > which file qemu is using for network. Thank you for answering. I'm not sure what you are asking. The virtio-net NIC emulation code is in hw/net/virtio-

[Qemu-devel] Question about Virtio and networking

2015-09-22 Thread //-//ani Nemati
Dear all, I am running my vm with this config: 2015-09-22 15:21:56.487+: starting up libvirt version: 1.2.20, qemu version: 2.4.0 LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/kvm -name testU4 -S -machine pc-i440fx-2.4,accel=kvm,usb=off