]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Parse and format the new XML
authorOsier Yang <jyang@redhat.com>
Wed, 2 Jan 2013 14:37:09 +0000 (22:37 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 7 Jan 2013 13:38:43 +0000 (21:38 +0800)
commit535aed56a2a898ba5d6df8a5871d8be9834e919d
tree092d2fb97a8e06f185e5c26bc1ae37a2f4ab8c4a
parentb9c57e7b0db65175410a84a4a7d76657c3f128b4
conf: Parse and format the new XML

Like "rawio", "sgio" is only allowed for block disk of device
type "lun".

It doesn't default disk->sgio to "filtered" when parsing, as
it won't be able to distinguish explicitly requested "filtered"
and a default "filtered" in driver then. We have to error out for
explicit request when the kernel doesn't support the new sysfs
knob "unpriv_sgio", however, for defaulted "filtered", we can
just ignore it if the kernel doesn't support "unpriv_sgio".
src/conf/domain_conf.c
src/conf/domain_conf.h
tests/qemuxml2argvdata/qemuxml2argv-disk-scsi-lun-passthrough-sgio.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c