Skip to content

Commit b8a33fc

Browse files
committed
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
Pull KVM fix from Paolo Bonzini: "This single patch fixes a regression caused by one of the optimizations introduced in 3.11, which is generally visible only on AMD processors" * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: KVM: MMU: avoid fast page fault fixing mmio page fault
2 parents b7356ab + 1c118b8 commit b8a33fc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arch/x86/kvm/mmu.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2810,6 +2810,13 @@ static bool handle_abnormal_pfn(struct kvm_vcpu *vcpu, gva_t gva, gfn_t gfn,
28102810

28112811
static bool page_fault_can_be_fast(struct kvm_vcpu *vcpu, u32 error_code)
28122812
{
2813+
/*
2814+
* Do not fix the mmio spte with invalid generation number which
2815+
* need to be updated by slow page fault path.
2816+
*/
2817+
if (unlikely(error_code & PFERR_RSVD_MASK))
2818+
return false;
2819+
28132820
/*
28142821
* #PF can be fast only if the shadow page table is present and it
28152822
* is caused by write-protect, that means we just need change the

0 commit comments

Comments
 (0)