WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [PATCH V4 5/6] libxc, save/restore, Save the HVM_PARAM_A

To: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH V4 5/6] libxc, save/restore, Save the HVM_PARAM_ACPI_IOPORTS_LOCATION
From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
Date: Fri, 29 Oct 2010 18:11:57 +0100 (BST)
Delivery-date: Fri, 29 Oct 2010 10:12:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1288366780-10174-6-git-send-email-anthony.perard@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1288366780-10174-1-git-send-email-anthony.perard@xxxxxxxxxx> <1288366780-10174-6-git-send-email-anthony.perard@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 1.10 (DEB 962 2008-03-14)
On Fri, 29 Oct 2010, Anthony Perard wrote:

> From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> ---
>  tools/libxc/xc_domain_restore.c |   20 ++++++++++++++++++++
>  tools/libxc/xc_domain_save.c    |   10 ++++++++++
>  tools/libxc/xg_save_restore.h   |    1 +
>  3 files changed, 31 insertions(+), 0 deletions(-)
>
> diff --git a/tools/libxc/xc_domain_save.c b/tools/libxc/xc_domain_save.c
> index 47f8a79..dbc4abb 100644
> --- a/tools/libxc/xc_domain_save.c
> +++ b/tools/libxc/xc_domain_save.c
> @@ -1618,6 +1618,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(int)))

I have to fix this, the data size to write is no longer an int.

> +        {
> +            PERROR("Error when writing the firmware ioport version");
> +            goto out;
> +        }
>      }
>
>      if ( !callbacks->checkpoint )

-- 
Anthony PERARD

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel