KVM: X86: Don't report L2 emulation failures to user-space
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 29 Nov 2010 16:51:49 +0000 (17:51 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:30:07 +0000 (11:30 +0200)
commitfc3a9157d3148ab91039c75423da8ef97be3e105
treebd356d2ec06e34554691913419ac18cef1fcf3c9
parent2030753de70a8aed39543ed09c2360665b3af481
KVM: X86: Don't report L2 emulation failures to user-space

This patch prevents that emulation failures which result
from emulating an instruction for an L2-Guest results in
being reported to userspace.
Without this patch a malicious L2-Guest would be able to
kill the L1 by triggering a race-condition between an vmexit
and the instruction emulator.
With this patch the L2 will most likely only kill itself in
this situation.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c