]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Support guest rdtscp and rdpid instructions on Intel VT-x
authorgrehan <grehan@FreeBSD.org>
Tue, 18 Aug 2020 07:23:47 +0000 (07:23 +0000)
committergrehan <grehan@FreeBSD.org>
Tue, 18 Aug 2020 07:23:47 +0000 (07:23 +0000)
commiteafcb40183f3fbfd3e5f902ea953b79d6c64312b
tree2d7c66ee6ca21883d31bd99dd240afdc68504d66
parentc15d218510777577da8061cb052b798399af5cfe
Support guest rdtscp and rdpid instructions on Intel VT-x

Enable any of rdtscp and/or rdpid for bhyve guests on Intel-based hosts
that support the "enable RDTSCP" VM-execution control.

Submitted by: adam_fenn.io
Reported by: chuck
Reviewed by: chuck, grehan, jhb
Approved by: jhb (bhyve), grehan
MFC after: 3 weeks
Relnotes: Yes
Differential Revision: https://reviews.freebsd.org/D26003
sys/amd64/include/vmm.h
sys/amd64/vmm/intel/vmx.c
sys/amd64/vmm/intel/vmx.h
sys/amd64/vmm/intel/vmx_msr.c
sys/amd64/vmm/intel/vmx_msr.h
sys/amd64/vmm/x86.c