kvm: vmx: handle invvpid vm exit gracefully

commit a642fc3050 upstream.

On systems with invvpid instruction support (corresponding bit in
IA32_VMX_EPT_VPID_CAP MSR is set) guest invocation of invvpid
causes vm exit, which is currently not handled and results in
propagation of unknown exit to userspace.

Fix this by installing an invvpid vm exit handler.

This is CVE-2014-3646.

Signed-off-by: Petr Matousek <pmatouse@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
Petr Matousek 2014-09-23 20:22:30 +02:00 • committed by Luis Henriques
commit 67fe3bc3d2
2 changed files with 10 additions and 1 deletions