diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-08-08 17:28:13 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-08-08 17:28:13 +0100 |
commit | ba2a198fc70dc65dcb7f3a54cd82084da0e2dfa6 (patch) | |
tree | 9c7cc1df5a34df549ff061f50d124dad74af4a00 /xen/include/asm-x86/hvm/vcpu.h | |
parent | d2b8c776792ecbb0384effc0f99204d41726eebb (diff) | |
download | xen-ba2a198fc70dc65dcb7f3a54cd82084da0e2dfa6.tar.gz xen-ba2a198fc70dc65dcb7f3a54cd82084da0e2dfa6.tar.bz2 xen-ba2a198fc70dc65dcb7f3a54cd82084da0e2dfa6.zip |
hvm: Handle hw_cr[] array a bit more sanely.
SVM for the most part does not need to use it at all, and this makes
the code clearer.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/hvm/vcpu.h')
-rw-r--r-- | xen/include/asm-x86/hvm/vcpu.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h index 990792e14a..c4ea85c189 100644 --- a/xen/include/asm-x86/hvm/vcpu.h +++ b/xen/include/asm-x86/hvm/vcpu.h @@ -33,7 +33,12 @@ struct hvm_vcpu { unsigned long guest_cr[5]; unsigned long guest_efer; - /* Processor-visible control-register values, while guest executes. */ + /* + * Processor-visible control-register values, while guest executes. + * CR0, CR4: Used as a cache of VMCS contents by VMX only. + * CR1, CR2: Never used (guest_cr[2] is always processor-visible CR2). + * CR3: Always used and kept up to date by paging subsystem. + */ unsigned long hw_cr[5]; struct hvm_io_op io_op; |