]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: vmx: Raise #UD on unsupported RDRAND
authorJim Mattson <jmattson@google.com>
Wed, 23 Aug 2017 23:32:04 +0000 (16:32 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Aug 2017 13:35:37 +0000 (15:35 +0200)
commit0fe04f2d9375639cec7787e0416b20b22c292722
treeca48d9f27cbd06a07fa0ddc0527a08bc95d60b42
parent127d6378ffed53dd53bc4b86d15ae65804ee645b
kvm: vmx: Raise #UD on unsupported RDRAND

A guest may not be configured to support RDRAND, even when the host
does. If the guest does not support RDRAND, intercept the instruction
and synthesize #UD. Also clear the "allowed-1" bit for RDRAND exiting
in the IA32_VMX_PROCBASED_CTLS2 MSR.

Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c