diff options
author | Ross Philipson <ross.philipson@citrix.com> | 2013-02-15 13:32:16 +0000 |
---|---|---|
committer | Ross Philipson <ross.philipson@citrix.com> | 2013-02-15 13:32:16 +0000 |
commit | dcd468855afed1fd205278beb60a4e3df21b3289 (patch) | |
tree | 715db917fd8d01be83f1761d63ae18fef894733a /tools/libxl/xl_cmdimpl.c | |
parent | a234675150adfca751ed36c0ef68712160ff1ab9 (diff) | |
download | xen-dcd468855afed1fd205278beb60a4e3df21b3289.tar.gz xen-dcd468855afed1fd205278beb60a4e3df21b3289.tar.bz2 xen-dcd468855afed1fd205278beb60a4e3df21b3289.zip |
libxl: HVM firmware passthrough support
This patch introduces support for two new parameters in libxl:
smbios_firmware=<path_to_smbios_structures_file>
acpi_firmware=<path_to_acpi_tables_file>
The changes are primarily in the domain building code where the firmware files
are read and passed to libxc for loading into the new guest. After the domain
building call to libxc, the addresses for the loaded blobs are returned and
written to xenstore.
LIBXL_HAVE_FIRMWARE_PASSTHROUGH is defined in libxl.h to allow users to
determine if the feature is present.
This patch also updates the xl.cfg man page with descriptions of the two new
parameters for firmware passthrough.
Signed-off-by: Ross Philipson <ross.philipson@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/xl_cmdimpl.c')
-rw-r--r-- | tools/libxl/xl_cmdimpl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index bdd1865bf6..9c554ba040 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -882,6 +882,11 @@ static void parse_config_data(const char *config_source, } xlu_cfg_get_defbool(config, "nestedhvm", &b_info->u.hvm.nested_hvm, 0); + + xlu_cfg_replace_string(config, "smbios_firmware", + &b_info->u.hvm.smbios_firmware, 0); + xlu_cfg_replace_string(config, "acpi_firmware", + &b_info->u.hvm.acpi_firmware, 0); break; case LIBXL_DOMAIN_TYPE_PV: { |