diff options
author | John Baldwin <jhb@FreeBSD.org> | 2019-05-18 21:20:38 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2019-05-18 21:20:38 +0000 |
commit | e519cee307c799925c5d014ef041bdf0f9e775e0 (patch) | |
tree | 7f3fcc881cc7c9b26d70ab5dcb3d20c3def2d927 /sys/amd64 | |
parent | ffda67901eae8e304935d30c26ccaa0f46afc851 (diff) | |
download | src-e519cee307c799925c5d014ef041bdf0f9e775e0.tar.gz src-e519cee307c799925c5d014ef041bdf0f9e775e0.zip |
Expose the MD_CLEAR capability used by Intel MDS mitigations to guests.
Submitted by: Patrick Mooney <pmooney@pfmooney.com>
Reviewed by: kib
Tested by: Patrick on SmartOS with Linux and Windows guests
Obtained from: Joyent
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D20296
Notes
Notes:
svn path=/head/; revision=347964
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/vmm/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/vmm/x86.c b/sys/amd64/vmm/x86.c index 6e4026aeb9a7..3164a07174d9 100644 --- a/sys/amd64/vmm/x86.c +++ b/sys/amd64/vmm/x86.c @@ -437,7 +437,7 @@ x86_emulate_cpuid(struct vm *vm, int vcpu_id, CPUID_STDEXT_AVX512ER | CPUID_STDEXT_AVX512CD | CPUID_STDEXT_SHA); regs[2] = 0; - regs[3] = 0; + regs[3] &= CPUID_STDEXT3_MD_CLEAR; /* Advertise INVPCID if it is enabled. */ error = vm_get_capability(vm, vcpu_id, |