]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/VmgExitLib: Check for an explicit DR7 cached value
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 7 Jan 2021 18:48:19 +0000 (12:48 -0600)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 7 Jan 2021 19:34:39 +0000 (19:34 +0000)
commit31f5ebd6db0805cdcafb1312a91b60d14ff1ac24
tree996d42cb4d12db9f8474ba536049ca936ea448b3
parent84cddd70820f35e8bd0f169078765548eab3d3ca
OvmfPkg/VmgExitLib: Check for an explicit DR7 cached value

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3108

Check the DR7 cached indicator against a specific value. This makes it
harder for a hypervisor to just write random data into that field in an
attempt to use an invalid DR7 value.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <65157c1155a9c058c43678400dfc0b486e327a3e.1610045305.git.thomas.lendacky@amd.com>
OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c