From b4923c7d99ef7093b8c2ff1e90bea61a92c23288 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 7 Aug 2007 17:30:09 +0100 Subject: hvm: Clean up control-register and EFER handling. No semantic changes. :-) Signed-off-by: Keir Fraser --- xen/include/asm-x86/hvm/vcpu.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'xen/include/asm-x86/hvm/vcpu.h') diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h index a6a762ef36..ff62684a58 100644 --- a/xen/include/asm-x86/hvm/vcpu.h +++ b/xen/include/asm-x86/hvm/vcpu.h @@ -29,7 +29,17 @@ #define HVM_VCPU_INIT_SIPI_SIPI_STATE_WAIT_SIPI 1 struct hvm_vcpu { - unsigned long hw_cr3; /* value we give to HW to use */ + /* Guest control-register and EFER values, just as the guest sees them. */ + unsigned long guest_cr[5]; + unsigned long guest_efer; + + /* + * Processor-visible CR0-4 while guest executes. + * Only CR3 is guaranteed to be valid: all other array entries are private + * to the specific HVM implementation (e.g., VMX, SVM). + */ + unsigned long hw_cr[5]; + struct hvm_io_op io_op; struct vlapic vlapic; s64 cache_tsc_offset; -- cgit v1.2.3