diff options
author | Radim Krčmář <rkrcmar@redhat.com> | 2014-10-10 19:15:09 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-11-03 12:07:28 +0100 |
commit | 1e0ad70cc1957b9050368e433b1061a2cd1ce543 (patch) | |
tree | 2f88c9acdcdd689170e5f144eff815652b75ddd0 /Documentation/rtc.txt | |
parent | 5d87db711937019cb8eba1137c37573d7a604be8 (diff) | |
download | linux-1e0ad70cc1957b9050368e433b1061a2cd1ce543.tar.gz linux-1e0ad70cc1957b9050368e433b1061a2cd1ce543.tar.bz2 linux-1e0ad70cc1957b9050368e433b1061a2cd1ce543.zip |
KVM: x86: fix deadline tsc interrupt injection
The check in kvm_set_lapic_tscdeadline_msr() was trying to prevent a
situation where we lose a pending deadline timer in a MSR write.
Losing it is fine, because it effectively occurs before the timer fired,
so we should be able to cancel or postpone it.
Another problem comes from interaction with QEMU, or other userspace
that can set deadline MSR without a good reason, when timer is already
pending: one guest's deadline request results in more than one
interrupt because one is injected immediately on MSR write from
userspace and one through hrtimer later.
The solution is to remove the injection when replacing a pending timer
and to improve the usual QEMU path, we inject without a hrtimer when the
deadline has already passed.
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Reported-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'Documentation/rtc.txt')
0 files changed, 0 insertions, 0 deletions