]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow more VMCB fields to be cached:
authorneel <neel@FreeBSD.org>
Sun, 21 Sep 2014 23:42:54 +0000 (23:42 +0000)
committerneel <neel@FreeBSD.org>
Sun, 21 Sep 2014 23:42:54 +0000 (23:42 +0000)
commit35aaa3ac113338232102818daa6ebcaae3dbbd16
treed1523fbce83d9baf9a14159713d000d097db2854
parent583427618712564b12b1ceb2c8bd3f9dfaae93f0
Allow more VMCB fields to be cached:
- CR2
- CR0, CR3, CR4 and EFER
- GDT/IDT base/limit fields
- CS/DS/ES/SS selector/base/limit/attrib fields

The caching can be further restricted via the tunable 'hw.vmm.svm.vmcb_clean'.

Restructure the code such that the fields above are only modified in a single
place. This makes it easy to invalidate the VMCB cache when any of these fields
is modified.
sys/amd64/vmm/amd/svm.c
sys/amd64/vmm/amd/svm.h
sys/amd64/vmm/amd/svm_softc.h
sys/amd64/vmm/amd/vmcb.c
sys/amd64/vmm/amd/vmcb.h