]> git.proxmox.com Git - qemu.git/commit
virtio-blk: add x-data-plane=on|off performance feature
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 14 Nov 2012 14:45:38 +0000 (15:45 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 2 Jan 2013 15:08:51 +0000 (16:08 +0100)
commit392808b49b6aee066d0c1d200e72fc3dc11c9d0f
tree1bc5e98807a0356500a99fd8cd842c560622a063
parente72f66a0a20f38d0c7576f6c0aec0ca644976e35
virtio-blk: add x-data-plane=on|off performance feature

The virtio-blk-data-plane feature is easy to integrate into
hw/virtio-blk.c.  The data plane can be started and stopped similar to
vhost-net.

Users can take advantage of the virtio-blk-data-plane feature using the
new -device virtio-blk-pci,x-data-plane=on property.

The x-data-plane name was chosen because at this stage the feature is
experimental and likely to see changes in the future.

If the VM configuration does not support virtio-blk-data-plane an error
message is printed.  Although we could fall back to regular virtio-blk,
I prefer the explicit approach since it prompts the user to fix their
configuration if they want the performance benefit of
virtio-blk-data-plane.

Limitations:
 * Only format=raw is supported
 * Live migration is not supported
 * Block jobs, hot unplug, and other operations fail with -EBUSY
 * I/O throttling limits are ignored
 * Only Linux hosts are supported due to Linux AIO usage

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/virtio-blk.c
hw/virtio-pci.c