diff options
author | Anthony Perard <anthony.perard@citrix.com> | 2010-11-08 17:25:54 +0000 |
---|---|---|
committer | Anthony Perard <anthony.perard@citrix.com> | 2010-11-08 17:25:54 +0000 |
commit | a6aa655723f797b98fe8186eee59d0af7a143d40 (patch) | |
tree | 85d2819553b24f18254a6ea5ed9f8295b32f8c33 /tools/libxc/xc_domain_save.c | |
parent | d32628fe3753a0e70def6db3d0f56428e5721b3d (diff) | |
download | xen-a6aa655723f797b98fe8186eee59d0af7a143d40.tar.gz xen-a6aa655723f797b98fe8186eee59d0af7a143d40.tar.bz2 xen-a6aa655723f797b98fe8186eee59d0af7a143d40.zip |
libxc: Save the HVM_PARAM_ACPI_IOPORTS_LOCATION
This will save the acpi_ioport_location hvm_param in the checkpoint file
and set the parameter in Xen at restore.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xc_domain_save.c')
-rw-r--r-- | tools/libxc/xc_domain_save.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/libxc/xc_domain_save.c b/tools/libxc/xc_domain_save.c index 27b38a6239..675611b15d 100644 --- a/tools/libxc/xc_domain_save.c +++ b/tools/libxc/xc_domain_save.c @@ -1628,6 +1628,16 @@ int xc_domain_save(xc_interface *xch, int io_fd, uint32_t dom, uint32_t max_iter PERROR("Error when writing the console pfn for guest"); goto out; } + + chunk.id = XC_SAVE_ID_HVM_ACPI_IOPORTS_LOCATION; + xc_get_hvm_param(xch, dom, HVM_PARAM_ACPI_IOPORTS_LOCATION, + (unsigned long *)&chunk.data); + + if ((chunk.data != 0) && wrexact(io_fd, &chunk, sizeof(chunk))) + { + PERROR("Error when writing the firmware ioport version"); + goto out; + } } if ( !callbacks->checkpoint ) |