Marcelo Tosatti b606f189c7 KVM: LAPIC: cap __delay at lapic_timer_advance_ns
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.

Reported-by: Alan Jenkins <alan.christopher.jenkins@gmail.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-06-27 15:30:41 +02:00
..
2016-03-22 16:38:17 +01:00
2015-12-16 18:49:45 +01:00
2016-04-18 11:23:24 +02:00
2015-10-01 15:06:52 +02:00
2016-05-18 18:04:29 +02:00
2016-01-15 17:56:32 -08:00
2016-06-02 17:38:50 +02:00
2016-04-10 21:53:49 +02:00
2016-05-18 18:04:32 +02:00
2016-04-10 21:53:49 +02:00
2016-05-19 11:27:09 -07:00