diff options
author | Anton Romanov <[email protected]> | 2022-02-16 18:26:54 +0000 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-02-17 09:52:50 -0500 |
commit | 3a55f729240a686aa8af00af436306c0cd532522 (patch) | |
tree | f56b89a48e29f69dcb97e64a97e2eca3a1b2beed /net/switchdev/switchdev.c | |
parent | 4cb9a998b1ce25fad74a82f5a5c45a4ef40de337 (diff) |
kvm: x86: Disable KVM_HC_CLOCK_PAIRING if tsc is in always catchup mode
If vcpu has tsc_always_catchup set each request updates pvclock data.
KVM_HC_CLOCK_PAIRING consumers such as ptp_kvm_x86 rely on tsc read on
host's side and do hypercall inside pvclock_read_retry loop leading to
infinite loop in such situation.
v3:
Removed warn
Changed return code to KVM_EFAULT
v2:
Added warn
Signed-off-by: Anton Romanov <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions