diff options
author | Jim Mattson <jmattson@google.com> | 2019-09-25 20:17:14 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-09-26 12:31:30 +0200 |
commit | a1a640b8c0cd8a2a7f84ab694f04bc64dc6988af (patch) | |
tree | 369893c787df8ebb498a44ef98cb7f570c2d4dab /arch/x86/pci/amd_bus.c | |
parent | KVM: LAPIC: Loosen filter for adaptive tuning of lapic_timer_advance_ns (diff) | |
download | linux-a1a640b8c0cd8a2a7f84ab694f04bc64dc6988af.tar.xz linux-a1a640b8c0cd8a2a7f84ab694f04bc64dc6988af.zip |
kvm: x86: Fix a spurious -E2BIG in __do_cpuid_func
Don't return -E2BIG from __do_cpuid_func when processing function 0BH
or 1FH and the last interesting subleaf occupies the last allocated
entry in the result array.
Cc: Paolo Bonzini <pbonzini@redhat.com>
Fixes: 831bf664e9c1fc ("KVM: Refactor and simplify kvm_dev_ioctl_get_supported_cpuid")
Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Peter Shier <pshier@google.com>
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/pci/amd_bus.c')
0 files changed, 0 insertions, 0 deletions