~/talk

Unmapped Private Memory for Confidential Guests

Talkat Linux Plumbers Conference 2022 · 2022-09-12..09-14· [security]
name:Chow Ping
links:none on file
slides:none on file

Unmapped Private Memory (UPM) introduces a new private mem slot backed by a memfd-style MFD so KVM can program nested page tables from private guest pages without exposing host mappings; conversions use a KVM exit memory fault or a batched vmg-exit and require the VMM to allocate pages in the MFD and ioctl KVM to flip xarray state. Problems demonstrated: potential 2x memory accounting, a reported 3x slowdown for frequent flip/dealloc, and the need to split/restore the kernel direct map and handle racing host kernel accesses.

AI-written summary · about

  1. 0:00Introduction to UPM
  2. 1:48Normal KVM slot recap
  3. 3:10Private memory slot implementation
  4. 5:17Implicit page state conversions
  5. 6:21Explicit page state conversions
  6. 7:08Pros and cons of UPM
  7. 8:33Memory allocation concerns
  8. 11:28Kernel direct map handling
  9. 13:58Batching page state changes
  10. 15:46Host access to shared memory
  11. 17:11Discussion on race conditions
  12. 19:44Q&A and closing
~/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.