kvm: vmx: Raise #UD on unsupported RDSEED
authorJim Mattson <jmattson@google.com>
Wed, 23 Aug 2017 23:32:03 +0000 (16:32 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Aug 2017 13:35:46 +0000 (15:35 +0200)
commit75f4fc8da9bd3b56f08ff8ba4113e5c57a85c24c
tree042a8e67487e6ca825cd758bbefcaa8d79d48e3f
parent45ec368c9addbbf3fb25fc33d3f22f838ec91714
kvm: vmx: Raise #UD on unsupported RDSEED

A guest may not be configured to support RDSEED, even when the host
does. If the guest does not support RDSEED, intercept the instruction
and synthesize #UD. Also clear the "allowed-1" bit for RDSEED 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