freebsd-nq/sys/amd64/vmm/io
Michael Reifenberger 1bc51bad2b Untangle TPR shadowing and APIC virtualization.
This speeds up Windows guests tremendously.

The patch does:
Add a new tuneable 'hw.vmm.vmx.use_tpr_shadowing' to disable TLP shadowing.
Also add 'hw.vmm.vmx.cap.tpr_shadowing' to be able to query if TPR shadowing is used.

Detach the initialization of TPR shadowing from the initialization of APIC virtualization.
APIC virtualization still needs TPR shadowing, but not vice versa.
Any CPU that supports APIC virtualization should also support TPR shadowing.

When TPR shadowing is used, the APIC page of each vCPU is written to the VMCS_VIRTUAL_APIC field of the VMCS
so that the CPU can write directly to the page without intercept.

On vm exit, vlapic_update_ppr() is called to update the PPR.

Submitted by:	Yamagi Burmeister
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D22942
2020-03-10 16:53:49 +00:00
..
iommu.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (4 of many) 2020-02-15 18:57:49 +00:00
iommu.h sys/amd64: further adoption of SPDX licensing ID tags. 2017-11-27 15:03:07 +00:00
ppt.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (4 of many) 2020-02-15 18:57:49 +00:00
ppt.h vmx: use C99 bool, not boolean_t 2019-08-01 02:16:48 +00:00
vatpic.c Add SPDX tags to vmm(4). 2018-06-13 07:02:58 +00:00
vatpic.h
vatpit.c Improve the precision of bhyve's vPIT. 2019-07-20 15:59:49 +00:00
vatpit.h Add SPDX tags to vmm(4). 2018-06-13 07:02:58 +00:00
vhpet.c sys/amd64: further adoption of SPDX licensing ID tags. 2017-11-27 15:03:07 +00:00
vhpet.h sys/amd64: further adoption of SPDX licensing ID tags. 2017-11-27 15:03:07 +00:00
vioapic.c bhyve: terminate waiting loops if thread suspension is requested. 2020-01-02 22:37:04 +00:00
vioapic.h sys/amd64: further adoption of SPDX licensing ID tags. 2017-11-27 15:03:07 +00:00
vlapic_priv.h Simplify bhyve vlapic ESR logic. 2019-08-29 18:23:38 +00:00
vlapic.c Untangle TPR shadowing and APIC virtualization. 2020-03-10 16:53:49 +00:00
vlapic.h Untangle TPR shadowing and APIC virtualization. 2020-03-10 16:53:49 +00:00
vpmtmr.c Add SPDX tags to vmm(4). 2018-06-13 07:02:58 +00:00
vpmtmr.h Add SPDX tags to vmm(4). 2018-06-13 07:02:58 +00:00
vrtc.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (4 of many) 2020-02-15 18:57:49 +00:00
vrtc.h Add SPDX tags to vmm(4). 2018-06-13 07:02:58 +00:00