]> xenbits.xensource.com Git - xen.git/commit
xl: add "device_model_args" to pass arbitrary extra arguments to device model
authorIan Campbell <ian.campbell@citrix.com>
Thu, 3 Mar 2011 17:07:40 +0000 (17:07 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 3 Mar 2011 17:07:40 +0000 (17:07 +0000)
commitbaae0f2bceb661804de10ec428d2d175fa2ec632
treed1eed5d1ed215b127d4772b7695b9160621b65af
parentdc55dcd8f1c3c6f134ae12917d099c84bb84c618
xl: add "device_model_args" to pass arbitrary extra arguments to device model

The libxl support was already in place so simply plumb it through.
This allows for passing debug options to the device model and provides
a method to work around missing toolstack functionality.

e.g. xl does not current support floppy disks but adding:
     device_model_args = [ "-fda", "/scratch/fdboot.img" ]
allowed me to boot FreeDOS from a floppy image.

I was unable to find any equivalent functionality in xend so this is a
new xl feature.

Moved xmalloc/xrealloc earlier to allow use from parse_config_data.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c