diff options
author | Tim Deegan <Tim.Deegan@xensource.com> | 2007-01-31 17:22:00 +0000 |
---|---|---|
committer | Tim Deegan <Tim.Deegan@xensource.com> | 2007-01-31 17:22:00 +0000 |
commit | 782821bcb0e1a7e8db090401b775a7b4622fd623 (patch) | |
tree | 9240d0e42ebf05d77b45aafb16dca383b9f6ce52 /xen/include/asm-x86/hvm/support.h | |
parent | 3f44314932402b0361a245c86597889a7a402054 (diff) | |
download | xen-782821bcb0e1a7e8db090401b775a7b4622fd623.tar.gz xen-782821bcb0e1a7e8db090401b775a7b4622fd623.tar.bz2 xen-782821bcb0e1a7e8db090401b775a7b4622fd623.zip |
[HVM] Save/restore: clean up the new hypercall interface
Pass a buffer and size through instead of fixed-size structure.
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/hvm/support.h')
-rw-r--r-- | xen/include/asm-x86/hvm/support.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xen/include/asm-x86/hvm/support.h b/xen/include/asm-x86/hvm/support.h index 066fba87d0..6d57140fae 100644 --- a/xen/include/asm-x86/hvm/support.h +++ b/xen/include/asm-x86/hvm/support.h @@ -123,6 +123,13 @@ extern unsigned int opt_hvm_debug_level; * Save/restore support */ +/* Marshalling and unmarshalling uses a buffer with size and cursor. */ +typedef struct hvm_domain_context { + uint32_t cur; + uint32_t size; + uint8_t *data; +} hvm_domain_context_t; + /* Marshalling an entry: check space and fill in the header */ static inline int _hvm_init_entry(struct hvm_domain_context *h, uint16_t tc, uint16_t inst, uint32_t len) |