mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 16:28:02 -06:00
target-i386: Introduce x86_cpu_compat_disable_kvm_features()
Instead of the feature-specific disable_kvm_pv_eoi() function, create a more general function that can be used to disable other feature bits in machine-type compat code. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
5fcca9ff3b
commit
8fb4f821e9
3 changed files with 7 additions and 7 deletions
|
@ -371,9 +371,9 @@ static uint32_t kvm_default_features[FEATURE_WORDS] = {
|
|||
(1 << KVM_FEATURE_CLOCKSOURCE_STABLE_BIT),
|
||||
};
|
||||
|
||||
void disable_kvm_pv_eoi(void)
|
||||
void x86_cpu_compat_disable_kvm_features(FeatureWord w, uint32_t features)
|
||||
{
|
||||
kvm_default_features[FEAT_KVM] &= ~(1UL << KVM_FEATURE_PV_EOI);
|
||||
kvm_default_features[w] &= ~features;
|
||||
}
|
||||
|
||||
void host_cpuid(uint32_t function, uint32_t count,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue