diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-05-03 09:29:07 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-05-03 09:29:07 +0100 |
commit | dea6904c01da7d78848c65aabee6988e90ac95cd (patch) | |
tree | 1be8baf5eb9ea698ef2b8d06958a9af8aae81f1d | |
parent | 5d93b6f1837d91fdd282cd34f81e4bcba2421955 (diff) | |
download | xen-dea6904c01da7d78848c65aabee6988e90ac95cd.tar.gz xen-dea6904c01da7d78848c65aabee6988e90ac95cd.tar.bz2 xen-dea6904c01da7d78848c65aabee6988e90ac95cd.zip |
Even though 3.1.0 won't have an implementation for it, reserve
VCPUOP_register_vcpu_info anyway so that we can start talking about
the interface on the guest side.
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
-rw-r--r-- | xen/include/public/vcpu.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/xen/include/public/vcpu.h b/xen/include/public/vcpu.h index 7252d0b793..845f7e2c05 100644 --- a/xen/include/public/vcpu.h +++ b/xen/include/public/vcpu.h @@ -161,6 +161,24 @@ DEFINE_XEN_GUEST_HANDLE(vcpu_set_singleshot_timer_t); #define _VCPU_SSHOTTMR_future (0) #define VCPU_SSHOTTMR_future (1U << _VCPU_SSHOTTMR_future) +/* + * Register a memory location in the guest address space for the + * vcpu_info structure. This allows the guest to place the vcpu_info + * structure in a convenient place, such as in a per-cpu data area. + * The pointer need not be page aligned, but the structure must not + * cross a page boundary. + * + * If the specified mfn is INVALID_MFN, then it reverts to using the + * vcpu_info structure in the shared_info page. + */ +#define VCPUOP_register_vcpu_info 10 /* arg == struct vcpu_info */ +struct vcpu_register_vcpu_info { + xen_pfn_t mfn; /* mfn of page to place vcpu_info */ + uint32_t offset; /* offset within page */ +}; +typedef struct vcpu_register_vcpu_info vcpu_register_vcpu_info_t; +DEFINE_XEN_GUEST_HANDLE(vcpu_register_vcpu_info_t); + #endif /* __XEN_PUBLIC_VCPU_H__ */ /* |