KVM: x86: Add callback to let modules decide over some supported cpuid bits
This patch adds the get_supported_cpuid callback to kvm_x86_ops. It will be used in do_cpuid_ent to delegate the decission about some supported cpuid bits to the architecture modules. Cc: stable@kernel.org Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
@@ -1960,6 +1960,9 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
|
||||
entry->ecx &= kvm_supported_word6_x86_features;
|
||||
break;
|
||||
}
|
||||
|
||||
kvm_x86_ops->set_supported_cpuid(function, entry);
|
||||
|
||||
put_cpu();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user