hw/9pfs: Use ioeventfd for 9p
commit5745e38afeaa15153c2209674fe37e1cbdd65707
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 12 Oct 2011 13:41:23 +0000 (12 19:11 +0530)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 12 Oct 2011 13:41:23 +0000 (12 19:11 +0530)
treef3844615b308ad894b8a6d59c7605b77b8a261f4
parentebffe2afceb1a17b5d134b5debf553955fe5ea1a
hw/9pfs: Use ioeventfd for 9p

With ioeventfd:
[root@qemu-img-64 storage]# dd if=/dev/zero of=/storage/testx bs=8k count=131072 oflag=direct
131072+0 records in
131072+0 records out
1073741824 bytes (1.1 GB) copied, 26.767 s, 40.1 MB/s

Without:
[root@qemu-img-64 storage]# dd if=/dev/zero of=/storage/testx bs=8k count=131072 oflag=direct
131072+0 records in
131072+0 records out
1073741824 bytes (1.1 GB) copied, 65.3361 s, 16.4 MB/s

Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
hw/9pfs/virtio-9p-device.c
hw/virtio-pci.c
hw/virtio-pci.h