KVM MMU: check pending exception before injecting APF
authorHaozhong Zhang <[email protected]>
Wed, 10 Jan 2018 13:44:42 +0000 (21:44 +0800)
committerPaolo Bonzini <[email protected]>
Thu, 11 Jan 2018 13:05:19 +0000 (14:05 +0100)
commit2a266f23550be997d783f27e704b9b40c4010292
tree0fdc42fed9efdae46af0004f451b5dc7d499e834
parentb2cd1df66037e7c4697c7e40496bf7e4a5e16a2d
KVM MMU: check pending exception before injecting APF

For example, when two APF's for page ready happen after one exit and
the first one becomes pending, the second one will result in #DF.
Instead, just handle the second page fault synchronously.

Reported-by: Ross Zwisler <[email protected]>
Message-ID: <CAOxpaSUBf8QoOZQ1p4KfUp0jq76OKfGY4Uxs-Gg8ngReD99xww@mail.gmail.com>
Reported-by: Alec Blayne <[email protected]>
Signed-off-by: Haozhong Zhang <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
arch/x86/kvm/mmu.c