OSDN Git Service

kvm: i386: require KVM_CAP_ADJUST_CLOCK
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Oct 2023 12:30:44 +0000 (14:30 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 Oct 2023 17:53:38 +0000 (19:53 +0200)
commit700766ba602330a4fc907254a2f45773a6c694fa
treeb101f9a5e554519b0a489d664b5fccb4b0b17196
parent86f2438fc231666ad7fdf9560fc8f27eedd69252
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>
hw/i386/kvm/clock.c
target/i386/kvm/kvm.c
target/i386/kvm/kvm_i386.h