Protected KVM on Arm64: A Technical Deep Dive - Quentin Perret, Google
Channel:The Linux Foundation · Length:50:06 · Published:2022-10-08 · Views:6018
Summary
Quentin Perret of Google gives a technical deep dive into protected KVM (pKVM) on Arm64, a confidential computing approach for CPUs without hardware extensions. It explains how the nVHE hypervisor manages stage-2 MMU access control to protect guest memory.
Why HN recommends it
Used as a primary source for pKVM architecture in threads on Android virtualization and isolated VMs.
A modern virtualization architecture can be found in the OSS pKVM L0 nested hypervisor for Android Virtualization Framework — HN, 2024
Operating systems & kernels · Security & hacking · Computer architecture & CPUs
Subtitles (excerpt)
okay hello everyone my name is konta I'm welcome for Google I'm part of the Android virtualization team and today today I want to talk about the work we've done on protected KVM on non-64. so pkvm as we as we call it is uh you know has been mentioned I think several times during the conference so hopefully by now most of you should have at least the rough ID of what pkvm is about but if you don't the idea of pkvm is it's basically an extension of KVM for arm64. that provides confidential Computing features even on CPUs that don't necessarily have additional fancy Hardware support for it so pkvm is is to some degree comparable with with TDX or SUV for instance in terms of what it tries to achieve it's all about protecting guest memory from the host but it's quite different from from from TDX or icv in how it achieves that and it's precisely the how we made that happen that I want to talk about today so why talk about pkvm so first of all I think it's I think it's pretty cool it is a slice slightly biased opinion obviously so I'll let you decide but it's also the first birthday of the code so it felt like a good time to look back and and see all the things we've done over the last year I'm
On Hacker News
> Separation from the hypervisor kernel? Not really. Separation from (type 1) hypervisor (or rather distrust of the host [0]) requires hardware support; ex: ARM CCA / AMD SEV-SNP / Intel TDX. For separation from the supervisor, Android developed a peculiar approach in "pKVM" for ARM where the host (supervisor) is partitioned away from the guest [1]. Both those "separations" is not something Toro … — ignoramous, 2025-12
A modern virtualization architecture can be found in the OSS pKVM L0 nested hypervisor for Android Virtualization Framework, which has some architectural overlap with HP/Bromium AX L0 + [Hyper-V | KVM | Xen] L1 + uXen L2 micro-VMs with copy-on-write memory. A Bromium demo circa 2014 was a web browser where every tab was an isolated VM, and every HTTP request was an isolated VM. Hundreds of VMs co… — stacktrust, 2024-07
The architecture pattern is similar to Bromium/HP AX + Type 2 μXen on x86, [LINK] (2018), which ships on HP business PCs. Bare metal runs a tiny L0 hypervisor making use of hardware support for nested virtualization. In turn, the L0 can run an L1 hypervisor, e.g. KVM or "host" OS, or minimal L1 VMs that are peers to the L1 "host"-guest of L0. Google pKVM-for-Arm tech talk (2022), hopefully x86 wi… — transpute, 2023-12
Related videos
- The Tragedy of systemd · linux.conf.au · 47:18
- 8-bit computer update · Ben Eater · 6:53
- Light Years Ahead | The 1969 Apollo Guidance Computer · TNMoC · 1:21:22
- “Hello, world” from scratch on a 6502 — Part 1 · Ben Eater · 27:24
- Behind the Scenes of iOS Security · Black Hat · 51:31
- Why Electronic Voting Is Still A Bad Idea · Tom Scott · 12:00
- Finding the Missing Memristor - R. Stanley Williams · The Qualcomm Institute · 47:52
- The Ultimate Game Boy Talk (33c3) · media.ccc.de · 1:01:06
- USENIX Security '18-Q: Why Do Keynote Speakers Keep Suggesting That Improving Security Is Possible? · USENIX · 51:22
- Defcon 18 Changing threats to privacy Moxie Marlinspike Part · killab66661 · 42:50
- The Thirty Million Line Problem · Molly Rocket · 1:48:55
- VCF East: Ken Thompson interviewed by Brian Kernighan · Vintage Computer Federation · 1:03:51
- LISA11 - Fork Yeah! The Rise and Development of illumos · USENIX · 1:04:03
- USENIX ATC '21/OSDI '21 Joint Keynote Address-It's Time for Operating Systems to Rediscover Hardware · USENIX · 1:06:19
- 28c3: The Science of Insecurity · 28c3 · 59:23
- Jim Keller: Moore's Law, Microprocessors, and First Principles | Lex Fridman Podcast #70 · Lex Fridman · 1:34:43