summaryrefslogtreecommitdiff
path: root/virt/kvm/eventfd.c
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@amd.com>2011-03-31 18:58:49 +0400
committerAvi Kivity <avi@redhat.com>2011-04-06 14:15:56 +0400
commitbd22f5cfcfe8f68bf43b72daf4530cd7eedc9b7a (patch)
tree8f479fb862bd422e7cdbe8b240e1fdd4978f725b /virt/kvm/eventfd.c
parent20800bc940af671257abc97ad362abe3c21ddd50 (diff)
downloadlinux-bd22f5cfcfe8f68bf43b72daf4530cd7eedc9b7a.tar.xz
KVM: move and fix substitue search for missing CPUID entries
If KVM cannot find an exact match for a requested CPUID leaf, the code will try to find the closest match instead of simply confessing it's failure. The implementation was meant to satisfy the CPUID specification, but did not properly check for extended and standard leaves and also didn't account for the index subleaf. Beside that this rule only applies to CPUID intercepts, which is not the only user of the kvm_find_cpuid_entry() function. So fix this algorithm and call it from kvm_emulate_cpuid(). This fixes a crash of newer Linux kernels as KVM guests on AMD Bulldozer CPUs, where bogus values were returned in response to a CPUID intercept. Signed-off-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt/kvm/eventfd.c')
0 files changed, 0 insertions, 0 deletions