aboutsummaryrefslogtreecommitdiff
path: root/include/linux/virtio_ring.h
diff options
context:
space:
mode:
authorBandan Das <bsd@redhat.com>2015-06-11 02:05:33 -0400
committerMoyster <oysterized@gmail.com>2016-08-26 19:15:14 +0200
commit21d2acfd842365eb21161a9630fdf03d7cb09fa0 (patch)
tree8bd20f20928a2d459bc7014a6041bd89287869ac /include/linux/virtio_ring.h
parentce27f50a836e7763c3fb3565cb81e322c3e19a8c (diff)
KVM: nSVM: Check for NRIPS support before updating control field
commit f104765b4f81fd74d69e0eb161e89096deade2db upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
Diffstat (limited to 'include/linux/virtio_ring.h')
0 files changed, 0 insertions, 0 deletions