]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: Don't report guest userspace emulation error to userspace
authorNadav Amit <namit@cs.technion.ac.il>
Tue, 16 Sep 2014 23:50:50 +0000 (02:50 +0300)
committerJiri Slaby <jslaby@suse.cz>
Wed, 19 Nov 2014 17:38:26 +0000 (18:38 +0100)
commit7e1ebf020aff9b3e4c0d52e8ace6e3278e8f8762
treec091789da38e8788544683c4dec9512ccea13870
parent4ffc1f8b153b3b0e322fbac381ed4c240d1b7106
KVM: x86: Don't report guest userspace emulation error to userspace

commit a2b9e6c1a35afcc0973acb72e591c714e78885ff upstream.

Commit fc3a9157d314 ("KVM: X86: Don't report L2 emulation failures to
user-space") disabled the reporting of L2 (nested guest) emulation failures to
userspace due to race-condition between a vmexit and the instruction emulator.
The same rational applies also to userspace applications that are permitted by
the guest OS to access MMIO area or perform PIO.

This patch extends the current behavior - of injecting a #UD instead of
reporting it to userspace - also for guest userspace code.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/x86/kvm/x86.c