From 8db5bf0da2c95c458a1a44effccf660cc0098a88 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 1 Sep 2008 10:46:19 +0100 Subject: [PATCH] Sync Xen public headers with xen-unstable. Signed-off-by: Keir Fraser --- include/xen/interface/memory.h | 17 +++++++++++++++++ include/xen/interface/platform.h | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/include/xen/interface/memory.h b/include/xen/interface/memory.h index ccf73fa4..d7b9fff9 100644 --- a/include/xen/interface/memory.h +++ b/include/xen/interface/memory.h @@ -204,6 +204,7 @@ struct xen_add_to_physmap { /* Source mapping space. */ #define XENMAPSPACE_shared_info 0 /* shared info page */ #define XENMAPSPACE_grant_table 1 /* grant table page */ +#define XENMAPSPACE_mfn 2 /* usual MFN */ unsigned int space; /* Index into source mapping space. */ @@ -215,6 +216,22 @@ struct xen_add_to_physmap { typedef struct xen_add_to_physmap xen_add_to_physmap_t; DEFINE_XEN_GUEST_HANDLE(xen_add_to_physmap_t); +/* + * Unmaps the page appearing at a particular GPFN from the specified guest's + * pseudophysical address space. + * arg == addr of xen_remove_from_physmap_t. + */ +#define XENMEM_remove_from_physmap 15 +struct xen_remove_from_physmap { + /* Which domain to change the mapping for. */ + domid_t domid; + + /* GPFN of the current mapping of the page. */ + xen_pfn_t gpfn; +}; +typedef struct xen_remove_from_physmap xen_remove_from_physmap_t; +DEFINE_XEN_GUEST_HANDLE(xen_remove_from_physmap_t); + /* * Translates a list of domain-specific GPFNs into MFNs. Returns a -ve error * code on failure. This call only works for auto-translated guests. diff --git a/include/xen/interface/platform.h b/include/xen/interface/platform.h index 3f4fbfb6..742c0fc1 100644 --- a/include/xen/interface/platform.h +++ b/include/xen/interface/platform.h @@ -97,7 +97,7 @@ DEFINE_XEN_GUEST_HANDLE(xenpf_read_memtype_t); #define XENPF_microcode_update 35 struct xenpf_microcode_update { /* IN variables. */ - XEN_GUEST_HANDLE(void) data; /* Pointer to microcode data */ + XEN_GUEST_HANDLE(const_void) data;/* Pointer to microcode data */ uint32_t length; /* Length of microcode data. */ }; typedef struct xenpf_microcode_update xenpf_microcode_update_t; -- 2.39.5