commit | 8b2fc445a7619fec55740d0a5785aae4bd1058f3 | [log] [tgz] |
---|---|---|
author | Sean Christopherson <sean.j.christopherson@intel.com> | Mon Mar 02 15:56:12 2020 -0800 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Mon Mar 16 17:58:00 2020 +0100 |
tree | 71f120538f6901ee759364ab5ee05506e34503cd | |
parent | 91001d403ad39b9c800a3b805bf48c5b027ecac5 [diff] |
KVM: x86: Refactor CPUID 0xD.N sub-leaf entry creation Increment the number of CPUID entries immediately after do_host_cpuid() in preparation for moving the logic into do_host_cpuid(). Handle the rare/impossible case of encountering a bogus sub-leaf by decrementing the number entries on failure. Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>