RFC VBS/VSM-on-KVM: QEMU support for the secure VM plane
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest5 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | kvm: add userspace handlers for VM planes and VBS VTL callsaccel/ include/ include/ +2 more | +817 | 0 replies | |
| 2/5 | vm_planes: Add VBS VTL call handling and plane memory sealinglinux-headers/ | +13 | 0 replies | |
| 3/5 | linux-headers: sync kvm_para.h VBS VTL hypercallsinclude/ | +2 | 0 replies | |
| 4/5 | target/i386/kvm: run the secure plane in-kernel (Option B)include/ target/ | +157 | 0 replies | |
| 5/5 | target/i386/kvm: read plane config via address_space APIinclude/ target/ | +17 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH v1 0/5] VBS/VSM-on-KVM: QEMU support for the secure VM plane
This RFC adds the QEMU support needed to run a Virtualization-Based Security (VBS), or Hyper-V VSM-style, secure environment using KVM VM Planes. It is the QEMU counterpart to the Linux VBS/VSM-on-KVM series.
The five patches in this mail series are authored by me and add:
- userspace handlers for VM Plane and VBS VTL-call exits from KVM;
- the VBS VTL hypercall definitions from the Linux UAPI;
- loading and running the secure-plane kernel in-kernel; and
- plane configuration access through the QEMU address-space API.
This series depends on the QEMU VM Planes infrastructure from Joerg Roedel and related prerequisite work. Those patches are not duplicated in this mail series. The integrated QEMU branch linked below contains the complete tree, including Joerg's patches and the other prerequisites, used for development and testing.
The complete implementation is available in three repositories under the safe-tee organization:
QEMU support and complete integrated tree:
https://github.com/safe-tee/qemu/tree/qemu-planes-v11.1.0-rc1
Linux and KVM support:
https://github.com/safe-tee/linux/tree/kvm-planes-v7.2-rc5
Build, test, and integration tooling:
https://github.com/safe-tee/lvbs
Current build and run instructions are maintained in the lvbs repository:
https://github.com/safe-tee/lvbs/blob/main/docs/how-to/how-to-build.md
This is prototype code and is not yet intended for production use. Feedback on the QEMU integration, VTL-call handling, and division of responsibility between QEMU and the in-kernel VM Plane implementation would be appreciated.
Acknowledgments
===============
This work stands on top of, and is indebted to, several prior efforts:
- Joerg Roedel, whose QEMU and KVM VM Planes work provides the infrastructure that the VBS/VSM secure plane relies on.
- Paolo Bonzini, whose "[RFC PATCH 00/29] KVM: VM planes" introduced the VM Plane concept to KVM as a common in-kernel model for AMD VMPLs, Intel TDX partitions, Hyper-V VTLs, and Arm CCA planes.
https://lwn.net/Articles/1016113/
- James Bottomley and James Morris, for their ongoing VSM-on-KVM work, which informed the design and direction of this series.
Sriram Nambakam (5):
kvm: add userspace handlers for VM planes and VBS VTL calls
vm_planes: Add VBS VTL call handling and plane memory sealing
linux-headers: sync kvm_para.h VBS VTL hypercalls target/i386/kvm: run the secure plane in-kernel (Option B) target/i386/kvm: read plane config via address_space API
accel/kvm/kvm-all.c | 18 + include/standard-headers/linux/kvm_para.h | 7 +- include/system/kvm_int.h | 18 + linux-headers/linux/kvm.h | 16 + target/i386/kvm/kvm.c | 561 ++++++++++++++++++++++ 5 files changed, 619 insertions(+), 1 deletion(-)
Signature · 1 line
2.55.0