]> xenbits.xensource.com Git - libvirt.git/commit
qemu: add capabilities flags related to SG_IO
authorLaine Stump <laine@laine.org>
Tue, 29 Nov 2011 18:37:27 +0000 (13:37 -0500)
committerLaine Stump <laine@laine.org>
Mon, 9 Jan 2012 15:55:44 +0000 (10:55 -0500)
commite8daeeb1362d52d2dd757303195569ed09761ba1
treea7ea8e31a2bc4b9d76381ed333b46773923d0723
parent1734cdb9951690cc9f13e371e301c3747c7b8777
qemu: add capabilities flags related to SG_IO

This patch adds two capabilities flags to deal with various aspects
of supporting SG_IO commands on virtio-blk-pci devices:

  QEMU_CAPS_VIRTIO_BLK_SCSI
    set if -device virtio-blk-pci accepts the scsi="on|off" option
    When present, this is on by default, but can be set to off to disable
    SG_IO functions.

  QEMU_CAPS_VIRTIO_BLK_SG_IO
    set if SG_IO commands are supported in the virtio-blk-pci driver
    (present since qemu 0.11 according to a qemu developer, if I
     understood correctly)
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h