aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-12-29 11:43:06 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 10:35:50 -0500
commite8467fda83cdc9de53972fee0cd2e6916cf66f41 (patch)
tree3a1644bf9b26f29eee74614f70e9d9a82c079ea9 /arch/x86/include/asm/kvm_host.h
parent4d4ec0874583b127caac1d0f84033c8971b2fd2a (diff)
KVM: VMX: Allow the guest to own some cr0 bits
We will use this later to give the guest ownership of cr0.ts. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r--arch/x86/include/asm/kvm_host.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index a4de557ad733..693046a7a12d 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -269,6 +269,7 @@ struct kvm_vcpu_arch {
269 u32 regs_dirty; 269 u32 regs_dirty;
270 270
271 unsigned long cr0; 271 unsigned long cr0;
272 unsigned long cr0_guest_owned_bits;
272 unsigned long cr2; 273 unsigned long cr2;
273 unsigned long cr3; 274 unsigned long cr3;
274 unsigned long cr4; 275 unsigned long cr4;
@@ -489,6 +490,7 @@ struct kvm_x86_ops {
489 void (*set_segment)(struct kvm_vcpu *vcpu, 490 void (*set_segment)(struct kvm_vcpu *vcpu,
490 struct kvm_segment *var, int seg); 491 struct kvm_segment *var, int seg);
491 void (*get_cs_db_l_bits)(struct kvm_vcpu *vcpu, int *db, int *l); 492 void (*get_cs_db_l_bits)(struct kvm_vcpu *vcpu, int *db, int *l);
493 void (*decache_cr0_guest_bits)(struct kvm_vcpu *vcpu);
492 void (*decache_cr4_guest_bits)(struct kvm_vcpu *vcpu); 494 void (*decache_cr4_guest_bits)(struct kvm_vcpu *vcpu);
493 void (*set_cr0)(struct kvm_vcpu *vcpu, unsigned long cr0); 495 void (*set_cr0)(struct kvm_vcpu *vcpu, unsigned long cr0);
494 void (*set_cr3)(struct kvm_vcpu *vcpu, unsigned long cr3); 496 void (*set_cr3)(struct kvm_vcpu *vcpu, unsigned long cr3);