summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/sclp.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2012-05-14 17:07:56 +0200
committerMarcelo Tosatti <mtosatti@redhat.com>2012-05-16 23:09:26 +0200
commitd8368af8b46b904def42a0f341d2f4f29001fa77 (patch)
tree00ae5723342936821b855356544bef08ac967b3d /arch/s390/include/asm/sclp.h
parentKVM: MMU: Don't use RCU for lockless shadow walking (diff)
downloadlinux-d8368af8b46b904def42a0f341d2f4f29001fa77.tar.xz
linux-d8368af8b46b904def42a0f341d2f4f29001fa77.zip
KVM: Fix mmu_reload() clash with nested vmx event injection
Currently the inject_pending_event() call during guest entry happens after kvm_mmu_reload(). This is for historical reasons - we used to inject_pending_event() in atomic context, while kvm_mmu_reload() needs task context. A problem is that nested vmx can cause the mmu context to be reset, if event injection is intercepted and causes a #VMEXIT instead (the #VMEXIT resets CR0/CR3/CR4). If this happens, we end up with invalid root_hpa, and since kvm_mmu_reload() has already run, no one will fix it and we end up entering the guest this way. Fix by reordering event injection to be before kvm_mmu_reload(). Use ->cancel_injection() to undo if kvm_mmu_reload() fails. https://bugzilla.kernel.org/show_bug.cgi?id=42980 Reported-by: Luke-Jr <luke-jr+linuxbugs@utopios.org> Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/s390/include/asm/sclp.h')
0 files changed, 0 insertions, 0 deletions