summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorBandan Das <bsd@redhat.com>2015-06-11 02:05:33 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2015-06-19 17:16:26 +0200
commitf104765b4f81fd74d69e0eb161e89096deade2db (patch)
tree25e36bd9849498c5a939277cd6d31176bf525203 /arch/x86/kvm/x86.c
parent0b8ba4a2b65860ac1fcd5be6cfca5d3b27a5b170 (diff)
downloadlinux-f104765b4f81fd74d69e0eb161e89096deade2db.tar.bz2
KVM: nSVM: Check for NRIPS support before updating control field
If hardware doesn't support DecodeAssist - a feature that provides more information about the intercept in the VMCB, KVM decodes the instruction and then updates the next_rip vmcb control field. However, NRIP support itself depends on cpuid Fn8000_000A_EDX[NRIPS]. Since skip_emulated_instruction() doesn't verify nrip support before accepting control.next_rip as valid, avoid writing this field if support isn't present. Signed-off-by: Bandan Das <bsd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
0 files changed, 0 insertions, 0 deletions