diff options
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 9b875ff05410..c673e726fbdb 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -6168,7 +6168,8 @@ void kvm_arch_async_page_ready(struct kvm_vcpu *vcpu, struct kvm_async_pf *work) | |||
6168 | { | 6168 | { |
6169 | int r; | 6169 | int r; |
6170 | 6170 | ||
6171 | if (!vcpu->arch.mmu.direct_map || is_error_page(work->page)) | 6171 | if (!vcpu->arch.mmu.direct_map || !work->arch.direct_map || |
6172 | is_error_page(work->page)) | ||
6172 | return; | 6173 | return; |
6173 | 6174 | ||
6174 | r = kvm_mmu_reload(vcpu); | 6175 | r = kvm_mmu_reload(vcpu); |