freebsd-dev/sys/amd64/vmm/io
Mark Johnston 4c812fe61b vlapic: Schedule callouts on the local CPU
The virtual LAPIC driver uses callouts to implement the LAPIC timer.
Callouts are armed using callout_reset_sbt(), which currently puts
everything on CPU 0.  On systems running many bhyve VMs this results in
a large amount of contention for CPU 0's callout lock.

Modify vlapic to schedule callouts on the local CPU instead.  This
allows timer interrupts to be scheduled more evenly among CPUs where
bhyve is running.

Reviewed by:	grehan, jhb
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D32559
2021-10-19 21:22:57 -04:00
..
iommu.c vmm: Make iommu ops tables const 2021-08-09 13:28:27 -04:00
iommu.h vmm: Make iommu ops tables const 2021-08-09 13:28:27 -04:00
ppt.c bhyve: support relocating fbuf and passthru data BARs 2021-03-19 11:04:36 +08:00
ppt.h bhyve: support relocating fbuf and passthru data BARs 2021-03-19 11:04:36 +08:00
vatpic.c amd64: clean up empty lines in .c and .h files 2020-09-01 21:16:54 +00:00
vatpic.h Initial support for bhyve save and restore. 2020-05-05 00:02:04 +00:00
vatpit.c amd64: clean up empty lines in .c and .h files 2020-09-01 21:16:54 +00:00
vatpit.h Initial support for bhyve save and restore. 2020-05-05 00:02:04 +00:00
vhpet.c Initial support for bhyve save and restore. 2020-05-05 00:02:04 +00:00
vhpet.h Initial support for bhyve save and restore. 2020-05-05 00:02:04 +00:00
vioapic.c bhyve/ioapic: improve the tracking of IRR bit 2021-02-02 09:47:00 +01:00
vioapic.h Initial support for bhyve save and restore. 2020-05-05 00:02:04 +00:00
vlapic_priv.h Simplify bhyve vlapic ESR logic. 2019-08-29 18:23:38 +00:00
vlapic.c vlapic: Schedule callouts on the local CPU 2021-10-19 21:22:57 -04:00
vlapic.h Initial support for bhyve save and restore. 2020-05-05 00:02:04 +00:00
vpmtmr.c Initial support for bhyve save and restore. 2020-05-05 00:02:04 +00:00
vpmtmr.h Initial support for bhyve save and restore. 2020-05-05 00:02:04 +00:00
vrtc.c Initial support for bhyve save and restore. 2020-05-05 00:02:04 +00:00
vrtc.h Initial support for bhyve save and restore. 2020-05-05 00:02:04 +00:00