mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
kvm: i386: require KVM_CAP_ADJUST_CLOCK
This was introduced in KVM in Linux 2.6.33, we can require it unconditionally. KVM_CLOCK_TSC_STABLE was only added in Linux 4.9, for now do not require it (though it would allow the removal of some pretty yucky code). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
86f2438fc2
commit
700766ba60
3 changed files with 1 additions and 10 deletions
|
@ -333,10 +333,6 @@ void kvmclock_create(bool create_always)
|
|||
X86CPU *cpu = X86_CPU(first_cpu);
|
||||
|
||||
assert(kvm_enabled());
|
||||
if (!kvm_has_adjust_clock()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (create_always ||
|
||||
cpu->env.features[FEAT_KVM] & ((1ULL << KVM_FEATURE_CLOCKSOURCE) |
|
||||
(1ULL << KVM_FEATURE_CLOCKSOURCE2))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue