freebsd-dev/sys/dev/xen
Roger Pau Monné 04423b622a xen/x86: don't lose event interrupts
On slow platforms with unreliable TSC, such as QEMU emulated machines,
it is possible for the FreeBSD kernel to request the next event in the
past. In that case, in the current implementation of
xentimer_vcpu_start_timer, we simply return -ETIME. To be precise Xen
returns -ETIME and we pass it on. As a consequence we need to loop
around to function to make sure that the timer is properly set.

Instead it is better to always ask the hypervisor for a timer event,
even if the timeout is past. To do that, remove the VCPU_SSHOTTMR_future
flag.

Submitted by:	Stefano Stabellini <sstabellini@kernel.org>
Reviewed by:	royger
MFC after:	2 weeks
2016-05-02 16:13:11 +00:00
..
balloon xen: Code cleanup and small bug fixes 2015-10-21 10:44:07 +00:00
blkback xen: Code cleanup and small bug fixes 2015-10-21 10:44:07 +00:00
blkfront Pass through some new block device features. 2016-04-03 11:18:20 +00:00
console xen/console: Introduce a new console driver for Xen guest 2015-10-08 16:39:43 +00:00
control Remove a redundant check. 2016-04-05 00:10:07 +00:00
debug xen: add a handler for the debug interrupt 2015-03-30 07:09:07 +00:00
evtchn xen: import a proper event channel user-space device 2014-10-22 16:57:11 +00:00
grant_table sys/dev: extend use of the howmany() macro when available. 2016-04-26 15:03:15 +00:00
netback sys/dev: extend use of the howmany() macro when available. 2016-04-26 15:03:15 +00:00
netfront tcp/lro: Use tcp_lro_flush_all in device drivers to avoid code duplication 2016-04-01 06:28:33 +00:00
pci Associate device_t objects with ACPI handles via PCI_CHILD_ADDED(). 2016-04-07 17:15:16 +00:00
pcifront Add domain support to PCI bus allocation 2015-09-16 23:34:51 +00:00
privcmd xen: introduce a newbus function to allocate unused memory 2015-05-08 14:48:40 +00:00
pvcpu xen: add missing files 2014-06-16 08:54:04 +00:00
timer xen/x86: don't lose event interrupts 2016-05-02 16:13:11 +00:00
xenpci xen: Code cleanup and small bug fixes 2015-10-21 10:44:07 +00:00
xenstore xen: Code cleanup and small bug fixes 2015-10-21 10:44:07 +00:00