]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: do not set unpriv_sgio if neither supported nor requested
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 25 Feb 2013 16:38:32 +0000 (17:38 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 26 Feb 2013 12:46:52 +0000 (13:46 +0100)
commit45dc3f1703d3510b645eb345b915c02f2317a113
tree252489e5fc0723ee5c6328c3e1935c72765287dc
parentdce95297e384497d4c342316dd23a4986133881c
qemu: do not set unpriv_sgio if neither supported nor requested

Currently we call virSetDeviceUnprivSGIO with val == 0 if a block device
has an sgio attribute.  But for sgio='filtered', we know that a
kernel with no unpriv_sgio support will always behave as the user
wanted.  In this case, there is no need to call the function and
report a (bogus) error.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
src/qemu/qemu_process.c