]> xenbits.xensource.com Git - xenclient/kernel.git/commitdiff
Sync Xen public headers with xen-unstable.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 1 Sep 2008 09:46:19 +0000 (10:46 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 1 Sep 2008 09:46:19 +0000 (10:46 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
include/xen/interface/memory.h
include/xen/interface/platform.h

index ccf73fa43c13c03578e546ae74c1a6fe7b6ae257..d7b9fff97216346a200e6455baa7d6c6e2304165 100644 (file)
@@ -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.
index 3f4fbfb661956877d98d7c164f069a84e5bb8d0d..742c0fc1c217e94e8c3a0dcad7bea2c4834a6e84 100644 (file)
@@ -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;