aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-06-30 18:23:19 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-06-30 18:23:19 +0100
commit1e266c4886bb939b6e4d442f352cb9e660b5de34 (patch)
tree010b2bf9ca3b964edc6a99f9c3a7012ccfeb5e93
parent898eb6cca5d9d4e5212c649a97094508d4c739e3 (diff)
downloadxen-1e266c4886bb939b6e4d442f352cb9e660b5de34.tar.gz
xen-1e266c4886bb939b6e4d442f352cb9e660b5de34.tar.bz2
xen-1e266c4886bb939b6e4d442f352cb9e660b5de34.zip
Use fixed-width types in the memory event interface
Set the types in the public memory_event header file to use fixed-sized and self-aligned fields rather than "unsigned long". AIUI this feature only works with 64-bit hypervisors but I think this change will be necessary to use 32-on-64 dom0 tools. This breaks compatibility with older builds of the tools, but I can't see any way to avoid it short of __attribute__((__packed__)). Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com> Acked-by: Patrick Colp <pjcolp@cs.ubc.ca> xen-unstable changeset: 21694:2a3a5979e3f1 xen-unstable date: Tue Jun 29 18:17:44 2010 +0100
-rw-r--r--xen/include/public/mem_event.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/xen/include/public/mem_event.h b/xen/include/public/mem_event.h
index db0acf58f0..fcac5dccb1 100644
--- a/xen/include/public/mem_event.h
+++ b/xen/include/public/mem_event.h
@@ -40,14 +40,14 @@
typedef struct mem_event_shared_page {
- int port;
+ uint32_t port;
} mem_event_shared_page_t;
typedef struct mem_event_st {
- unsigned long gfn;
- unsigned long offset;
- unsigned long p2mt;
- int vcpu_id;
+ uint64_t gfn;
+ uint64_t offset;
+ uint32_t p2mt;
+ int32_t vcpu_id;
uint64_t flags;
} mem_event_request_t, mem_event_response_t;