~/talk

Taming the Incoherent Cache Issue in Confidential VMs

Talkat Linux Plumbers Conference 2023 · 2023-11-13..11-15· [security]
links:none on file
slides:none on file

AMD's SME_COHERENT hardware flag does not cover device DMA, so confidential guest pages can leave dirty CPU caches and later corrupt host memory (CVE-2022-0171). Upstream currently flushes caches whenever guest mappings are removed, causing large performance regressions on SEV-SNP workloads. Two concrete paths are explored: SME_COHERENT lacks CPU-device DMA coherence; use mmu_notifier "reason" filtering to flush only on true deallocation, and/or replace wbinvd with VMPAGE_FLUSH MSR to avoid machine-wide flushes. A mmu_notifier-based patch reduces unnecessary flushes but hits overloaded notifier reasons, so adding finer-grained reasons is necessary.

AI-written summary · about

  1. 0:00Introduction to cache incoherence
  2. 3:30AMD hardware fixes and gaps
  3. 6:18MMU notifier solution approach
  4. 11:13Performance and security trade-offs
  5. 15:00Q&A and future considerations
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.