mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-01 11:55:25 +00:00
Microarchitectural Data Sampling (MDS) is a hardware vulnerability which allows unprivileged speculative access to data which is available in various CPU internal buffers. 1. Mitigation on ACRN: 1) Microcode update is required. 2) Clear CPU internal buffers (store buffer, load buffer and load port) if current CPU is affected by MDS, when VM entry to avoid any information leakage to guest thru above buffers. 3) Mitigation is not needed if ARCH_CAP_MDS_NO bit (bit5) is set in IA32_ARCH_CAPABILITIES MSR (10AH), in this case, current processor is no affected by MDS vulnerability, in other cases mitigation for MDS is required. 2. Methods to clear CPU buffers (microcode update is required): 1) L1D cache flush 2) VERW instruction Either of above operations will trigger clearing all CPU internal buffers if this CPU is affected by MDS. Above mechnism is enumerated by: CPUID.(EAX=7H, ECX=0):EDX[MD_CLEAR=10]. 3. Mitigation details on ACRN: if (processor is affected by MDS) if (processor is not affected by L1TF OR L1D flush is not launched on VM Entry) execute VERW instruction when VM entry. endif endif 4. Referrence: Deep Dive: Intel Analysis of Microarchitectural Data Sampling https://software.intel.com/security-software-guidance/insights/ deep-dive-intel-analysis-microarchitectural-data-sampling Deep Dive: CPUID Enumeration and Architectural MSRs https://software.intel.com/security-software-guidance/insights/ deep-dive-cpuid-enumeration-and-architectural-msrs Tracked-On: #3317 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Reviewed-by: Anthony Xu <anthony.xu@intel.com> Reviewed-by: Jason CJ Chen <jason.cj.chen@intel.com> |
||
---|---|---|
.. | ||
boot | ||
guest | ||
lib | ||
apicreg.h | ||
board.h | ||
cat.h | ||
cpu_caps.h | ||
cpu.h | ||
cpufeatures.h | ||
cpuid.h | ||
default_acpi_info.h | ||
e820.h | ||
gdt.h | ||
host_pm.h | ||
idt.h | ||
init.h | ||
io.h | ||
ioapic.h | ||
irq.h | ||
lapic.h | ||
mmu.h | ||
msr.h | ||
multiboot.h | ||
page.h | ||
per_cpu.h | ||
pgtable.h | ||
security.h | ||
seed.h | ||
sgx.h | ||
timer.h | ||
trampoline.h | ||
vm_config.h | ||
vmx.h | ||
vtd.h | ||
zeropage.h |