diff options
author | Jim Mattson <jmattson@google.com> | 2019-09-25 11:17:14 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-09-26 12:31:30 +0200 |
commit | a1a640b8c0cd8a2a7f84ab694f04bc64dc6988af (patch) | |
tree | 369893c787df8ebb498a44ef98cb7f570c2d4dab /arch/x86/kvm/x86.c | |
parent | a0f0037e908c656573d165aadbfae6c05fc4dd75 (diff) | |
download | lwn-a1a640b8c0cd8a2a7f84ab694f04bc64dc6988af.tar.gz lwn-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/kvm/x86.c')
0 files changed, 0 insertions, 0 deletions