diff options
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index fdb8cb63a6c0..94b7d15db3fc 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -202,6 +202,7 @@ module_param(npt, int, S_IRUGO); | |||
202 | static int nested = true; | 202 | static int nested = true; |
203 | module_param(nested, int, S_IRUGO); | 203 | module_param(nested, int, S_IRUGO); |
204 | 204 | ||
205 | static void svm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0); | ||
205 | static void svm_flush_tlb(struct kvm_vcpu *vcpu); | 206 | static void svm_flush_tlb(struct kvm_vcpu *vcpu); |
206 | static void svm_complete_interrupts(struct vcpu_svm *svm); | 207 | static void svm_complete_interrupts(struct vcpu_svm *svm); |
207 | 208 | ||
@@ -1263,7 +1264,8 @@ static void init_vmcb(struct vcpu_svm *svm, bool init_event) | |||
1263 | * svm_set_cr0() sets PG and WP and clears NW and CD on save->cr0. | 1264 | * svm_set_cr0() sets PG and WP and clears NW and CD on save->cr0. |
1264 | * It also updates the guest-visible cr0 value. | 1265 | * It also updates the guest-visible cr0 value. |
1265 | */ | 1266 | */ |
1266 | (void)kvm_set_cr0(&svm->vcpu, X86_CR0_NW | X86_CR0_CD | X86_CR0_ET); | 1267 | svm_set_cr0(&svm->vcpu, X86_CR0_NW | X86_CR0_CD | X86_CR0_ET); |
1268 | kvm_mmu_reset_context(&svm->vcpu); | ||
1267 | 1269 | ||
1268 | save->cr4 = X86_CR4_PAE; | 1270 | save->cr4 = X86_CR4_PAE; |
1269 | /* rdx = ?? */ | 1271 | /* rdx = ?? */ |