]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Do not drop kernel cmdline for xen pv domains
authorJim Fehlig <jfehlig@novell.com>
Thu, 7 Jul 2011 01:17:16 +0000 (19:17 -0600)
committerJim Fehlig <jfehlig@novell.com>
Mon, 11 Jul 2011 15:11:15 +0000 (09:11 -0600)
commiteb3143154e4ecedf3a97445b3b90bd135a564431
tree77724077bdc18310b767c73c318497396cbfb12b
parent8a8b45b889040a6c222e3265cbc2ac13ef559c91
Do not drop kernel cmdline for xen pv domains

Kernel cmdline args can be passed to xen pv domains even when a
bootloader is specified.  The current config-to-sxpr mapping
ignores cmdline when bootloader is present.

Since the xend sub-driver is used with many xen toolstack versions,
this patch takes conservative approach of adding an else block to
existing !def->os.bootloader, and only appends sxpr if def->os.cmdline
is non-NULL.

V2: Fix existing testcase broken by this patch and add new testcases
docs/schemas/domain.rng
src/xenxs/xen_sxpr.c
tests/sexpr2xmldata/sexpr2xml-pv-bootloader-cmdline.sexpr [new file with mode: 0644]
tests/sexpr2xmldata/sexpr2xml-pv-bootloader-cmdline.xml [new file with mode: 0644]
tests/sexpr2xmltest.c
tests/xml2sexprdata/xml2sexpr-disk-block-shareable.sexpr
tests/xml2sexprdata/xml2sexpr-pv-bootloader-cmdline.sexpr [new file with mode: 0644]
tests/xml2sexprdata/xml2sexpr-pv-bootloader-cmdline.xml [new file with mode: 0644]
tests/xml2sexprtest.c