commit | 09c7431ed31f3cc71aba2c35a6d11a742db47b2a | [log] [tgz] |
---|---|---|
author | Sean Christopherson <sean.j.christopherson@intel.com> | Wed Mar 04 17:34:36 2020 -0800 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Mon Mar 16 17:58:49 2020 +0100 |
tree | cde0fb68ae95792090d01d42e57a87d51ccae285 | |
parent | 8d8923115f1bc8f10b3309b9245cc3a7f39b5aa7 [diff] |
KVM: x86: Refactor out-of-range logic to contain the madness Move all of the out-of-range logic into a single helper, get_out_of_range_cpuid_entry(), to avoid an extra lookup of CPUID.0.0 and to provide a single location for documenting the out-of-range behavior. No functional change intended. Cc: Jim Mattson <jmattson@google.com> Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>