Date: Thu, 30 May 2019 16:42:58 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r348437 - stable/11/sys/amd64/vmm Message-ID: <201905301642.x4UGgwku072901@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Thu May 30 16:42:57 2019 New Revision: 348437 URL: https://svnweb.freebsd.org/changeset/base/348437 Log: MFC 347964: Expose the MD_CLEAR capability used by Intel MDS mitigations to guests. Approved by: re (gjb) Modified: stable/11/sys/amd64/vmm/x86.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/amd64/vmm/x86.c ============================================================================== --- stable/11/sys/amd64/vmm/x86.c Thu May 30 16:40:21 2019 (r348436) +++ stable/11/sys/amd64/vmm/x86.c Thu May 30 16:42:57 2019 (r348437) @@ -359,7 +359,7 @@ x86_emulate_cpuid(struct vm *vm, int vcpu_id, CPUID_STDEXT_AVX512ER | CPUID_STDEXT_AVX512CD); 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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905301642.x4UGgwku072901>