Skip to contentSkip to conversation

struct xen_add_to_physmap UNION

DISCUSSION Mukesh Rathor 2 participants 2 messages Oct 11, 2012 – Oct 12, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

What's the latest on the union of size/foreign_domid. I don't see it checked in xen unstable. Final decision is to unionize it, right? It doesn't matter for PVH either way.

+++ b/xen/include/public/memory.h Thu Oct 11 16:24:47 2012 -0700

@@ -208,14 +208,19 @@ struct xen_add_to_physmap {
     /* Which domain to change the mapping for. */
     domid_t domid;
-    /* Number of pages to go through for gmfn_range */
-    uint16_t    size;
+    union {
+        /* Number of pages to go through for gmfn_range */
+        uint16_t    size;
+        /* IFF XENMAPSPACE_gmfn_foreign */
+        domid_t foreign_domid;

+ } u;

thanks,
Mukesh

#1 lore raw
Quoted 5 lines · Mukesh Rathor

Hi,

What's the latest on the union of size/foreign_domid. I don't see it checked in xen unstable. Final decision is to unionize it, right? It doesn't matter for PVH either way.

I think the final decision is to go with XENMEM_add_to_physmap_range, see <[email protected]>.

Ian.

Quoted 18 lines

+++ b/xen/include/public/memory.h Thu Oct 11 16:24:47 2012 -0700

(quoted diff) +6 -2
@@ -208,14 +208,19 @@ struct xen_add_to_physmap {
     /* Which domain to change the mapping for. */
     domid_t domid;
 
-    /* Number of pages to go through for gmfn_range */
-    uint16_t    size;
+    union {
+        /* Number of pages to go through for gmfn_range */
+        uint16_t    size;
+        /* IFF XENMAPSPACE_gmfn_foreign */
+        domid_t foreign_domid;
+    } u;
 
 
 thanks,

Mukesh