public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 0/2] fix lapic_timer_advance_ns guest triggerable unlimited delays
@ 2016-06-21  1:28 Marcelo Tosatti
  2016-06-21  1:28 ` [patch 1/2] KVM: x86: move nsec_to_cycles from x86.c to x86.h Marcelo Tosatti
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Marcelo Tosatti @ 2016-06-21  1:28 UTC (permalink / raw)
  To: kvm; +Cc: Paolo Bonzini, Radim Krcmar, Alan Jenkins

The host timer which emulates the guest LAPIC TSC deadline
timer has its expiration diminished by lapic_timer_advance_ns
nanoseconds. Therefore if, at wait_lapic_expire, a difference
larger than lapic_timer_advance_ns is encountered, delay at most
lapic_timer_advance_ns.

This fixes a problem where the guest can cause the host
to delay for large amounts of time.

Thanks to Alan Jenkins for reporting.




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-06-21 12:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-21  1:28 [patch 0/2] fix lapic_timer_advance_ns guest triggerable unlimited delays Marcelo Tosatti
2016-06-21  1:28 ` [patch 1/2] KVM: x86: move nsec_to_cycles from x86.c to x86.h Marcelo Tosatti
2016-06-21  1:28 ` [patch 2/2] KVM: LAPIC: cap __delay at lapic_timer_advance_ns Marcelo Tosatti
2016-06-21  1:33   ` [patch 2/2 V2] " Marcelo Tosatti
2016-06-21 12:13     ` Alan Jenkins
2016-06-21  7:53 ` [patch 0/2] fix lapic_timer_advance_ns guest triggerable unlimited delays Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox