Re: [libvirt] [PATCH] qemu: do not set unpriv_sgio if neither supported nor requested

2013-02-26 Thread Jiri Denemark
On Mon, Feb 25, 2013 at 17:38:32 +0100, Paolo Bonzini wrote: > 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, ther

[libvirt] [PATCH] qemu: do not set unpriv_sgio if neither supported nor requested

2013-02-25 Thread Paolo Bonzini
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