]> git.proxmox.com Git - mirror_qemu.git/commit
i386: Use hv_build_cpuid_leaf() for HV_CPUID_NESTED_FEATURES
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 25 May 2022 11:59:44 +0000 (13:59 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 May 2022 19:26:35 +0000 (21:26 +0200)
commit7110fe56c1f69b9e1bdf838558fdcb75d1568964
treeefbe9d55f9b4c7794eb37f478f90b39a693610fb
parent758c925ee04ecd9d2d543a60f3c389e4e814c6aa
i386: Use hv_build_cpuid_leaf() for HV_CPUID_NESTED_FEATURES

Previously, HV_CPUID_NESTED_FEATURES.EAX CPUID leaf was handled differently
as it was only used to encode the supported eVMCS version range. In fact,
there are also feature (e.g. Enlightened MSR-Bitmap) bits there. In
preparation to adding these features, move HV_CPUID_NESTED_FEATURES leaf
handling to hv_build_cpuid_leaf() and drop now-unneeded 'hyperv_nested'.

No functional change intended.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20220525115949.1294004-2-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.h
target/i386/kvm/kvm.c