diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-06-19 16:15:05 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-06-19 16:15:05 +0100 |
commit | 50bddc93078cb4f3e757027fbe3b9a15659050c0 (patch) | |
tree | 260c0ca76854afa92c5536603c5a0361a378341b /tools/libxc/xc_core.c | |
parent | c385f786c2b062e79c92a760ca0973ef0d54371a (diff) | |
download | xen-50bddc93078cb4f3e757027fbe3b9a15659050c0.tar.gz xen-50bddc93078cb4f3e757027fbe3b9a15659050c0.tar.bz2 xen-50bddc93078cb4f3e757027fbe3b9a15659050c0.zip |
libxc: The following patch replace the libxc interface to use
vcpu_guest_context_any_t (which is both 32 and 64 bits) instead of
vcpu_guest_context_t.
Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xc_core.c')
-rw-r--r-- | tools/libxc/xc_core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/libxc/xc_core.c b/tools/libxc/xc_core.c index 864380d03d..9ee3981040 100644 --- a/tools/libxc/xc_core.c +++ b/tools/libxc/xc_core.c @@ -407,7 +407,7 @@ xc_domain_dumpcore_via_callback(int xc_handle, int nr_vcpus = 0; char *dump_mem, *dump_mem_start = NULL; - vcpu_guest_context_t ctxt[MAX_VIRT_CPUS]; + vcpu_guest_context_any_t ctxt[MAX_VIRT_CPUS]; struct xc_core_arch_context arch_ctxt; char dummy[PAGE_SIZE]; int dummy_len; @@ -581,10 +581,10 @@ xc_domain_dumpcore_via_callback(int xc_handle, PERROR("Could not get section header for .xen_prstatus"); goto out; } - filesz = sizeof(ctxt[0]) * nr_vcpus; + filesz = sizeof(ctxt[0].c) * nr_vcpus; sts = xc_core_shdr_set(shdr, strtab, XEN_DUMPCORE_SEC_PRSTATUS, SHT_PROGBITS, offset, filesz, - __alignof__(ctxt[0]), sizeof(ctxt[0])); + __alignof__(ctxt[0].c), sizeof(ctxt[0].c)); if ( sts != 0 ) goto out; offset += filesz; @@ -707,7 +707,7 @@ xc_domain_dumpcore_via_callback(int xc_handle, goto out; /* prstatus: .xen_prstatus */ - sts = dump_rtn(args, (char *)&ctxt, sizeof(ctxt[0]) * nr_vcpus); + sts = dump_rtn(args, (char *)&ctxt[0].c, sizeof(ctxt[0].c) * nr_vcpus); if ( sts != 0 ) goto out; |