KVM: cpuid: set struct kvm_cpuid_entry2 flags in do_cpuid_1_ent
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jul 2019 10:20:48 +0000 (12:20 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Jul 2019 11:48:44 +0000 (13:48 +0200)
commitd9aadaf689928ba896529cb684729923b21c2de5
treee0b4fa55fdfc0c1ef828edf8823860f36266366d
parent54d360d41211006437bebf97513394693bd32623
KVM: cpuid: set struct kvm_cpuid_entry2 flags in do_cpuid_1_ent

do_cpuid_1_ent is typically called in two places by __do_cpuid_func
for CPUID functions that have subleafs.  Both places have to set
the KVM_CPUID_FLAG_SIGNIFCANT_INDEX.  Set that flag, and
KVM_CPUID_FLAG_STATEFUL_FUNC as well, directly in do_cpuid_1_ent.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c