diff options
author | Avi Kivity <avi@redhat.com> | 2009-12-29 11:43:06 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 10:35:50 -0500 |
commit | e8467fda83cdc9de53972fee0cd2e6916cf66f41 (patch) | |
tree | 3a1644bf9b26f29eee74614f70e9d9a82c079ea9 /arch/x86/kvm/svm.c | |
parent | 4d4ec0874583b127caac1d0f84033c8971b2fd2a (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/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index d3246ce70ae8..3899c2d19830 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -956,6 +956,10 @@ static void svm_set_gdt(struct kvm_vcpu *vcpu, struct descriptor_table *dt) | |||
956 | svm->vmcb->save.gdtr.base = dt->base ; | 956 | svm->vmcb->save.gdtr.base = dt->base ; |
957 | } | 957 | } |
958 | 958 | ||
959 | static void svm_decache_cr0_guest_bits(struct kvm_vcpu *vcpu) | ||
960 | { | ||
961 | } | ||
962 | |||
959 | static void svm_decache_cr4_guest_bits(struct kvm_vcpu *vcpu) | 963 | static void svm_decache_cr4_guest_bits(struct kvm_vcpu *vcpu) |
960 | { | 964 | { |
961 | } | 965 | } |
@@ -2948,6 +2952,7 @@ static struct kvm_x86_ops svm_x86_ops = { | |||
2948 | .set_segment = svm_set_segment, | 2952 | .set_segment = svm_set_segment, |
2949 | .get_cpl = svm_get_cpl, | 2953 | .get_cpl = svm_get_cpl, |
2950 | .get_cs_db_l_bits = kvm_get_cs_db_l_bits, | 2954 | .get_cs_db_l_bits = kvm_get_cs_db_l_bits, |
2955 | .decache_cr0_guest_bits = svm_decache_cr0_guest_bits, | ||
2951 | .decache_cr4_guest_bits = svm_decache_cr4_guest_bits, | 2956 | .decache_cr4_guest_bits = svm_decache_cr4_guest_bits, |
2952 | .set_cr0 = svm_set_cr0, | 2957 | .set_cr0 = svm_set_cr0, |
2953 | .set_cr3 = svm_set_cr3, | 2958 | .set_cr3 = svm_set_cr3, |