cgroup: KVM: New Encryption IDs cgroup controller
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest2 patches 2 repliesIn review
- v42 patches 22 repliesSuperseded
- v32 patches 7 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 2 patches | 1 reply | Superseded |
Changes in v5 from the cover letter
- Changed controller filenames from encryption_ids.*.* to encids.*.*
- Documentation of cgroup v1 now points to cgroup v2.
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | cgroup: svm: Add Encryption ID controllerarch/ include/ include/ +4 more | +556 | 0 replies | |
| 2/2 | cgroup: svm: Encryption IDs cgroup documentation.Documentation/ Documentation/ | +77 | 2 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | David Rientjes | Dionna Glaze | Brijesh Singh |
|---|---|---|---|
| 1/2 | R-b | R-b | A-b |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [Patch v5 0/2] cgroup: KVM: New Encryption IDs cgroup controller
Hello,
This patch adds a new cgroup controller, Encryption IDs, to track and limit the usage of encryption IDs on a host.
AMD provides Secure Encrypted Virtualization (SEV) and SEV with Encrypted State (SEV-ES) to encrypt the guest OS's memory using limited number of Address Space Identifiers (ASIDs).
This limited number of ASIDs creates issues like SEV ASID starvation and unoptimized scheduling in the cloud infrastucture.
In the RFC patch v1, I provided only SEV cgroup controller but based on the feedback and discussion it became clear that this cgroup controller can be extended to be used by Intel's Trusted Domain Extension (TDX) and s390's protected virtualization Secure Execution IDs (SEID)
This patch series provides a generic Encryption IDs controller with tracking support of the SEV and SEV-ES ASIDs.
Changes in v5:
- Changed controller filenames from encryption_ids.*.* to encids.*.*
- Documentation of cgroup v1 now points to cgroup v2.
Changes in v4:
- The max value can be set lower than the current.
- Added SEV-ES support.
Changes in v3:
- Fixes a build error when CONFIG_CGROUP is disabled.
Changes in v2:
- Changed cgroup name from sev to encryption_ids.
- Replaced SEV specific names in APIs and documentations with generic encryption IDs.
- Providing 3 cgroup files per encryption ID type. For example in SEV,
- encryption_ids.sev.stat (only in the root cgroup directory).
- encryption_ids.sev.max
- encryption_ids.sev.current
[1] https://lore.kernel.org/lkml/[email protected]/
[2] https://lore.kernel.org/lkml/[email protected]/
[3] https://lore.kernel.org/lkml/[email protected]/
[4] https://lore.kernel.org/lkml/[email protected]/
Vipin Sharma (2):
cgroup: svm: Add Encryption ID controller
cgroup: svm: Encryption IDs cgroup documentation.
.../admin-guide/cgroup-v1/encryption_ids.rst | 1 + Documentation/admin-guide/cgroup-v2.rst | 78 +++- arch/x86/kvm/svm/sev.c | 52 ++- include/linux/cgroup_subsys.h | 4 + include/linux/encryption_ids_cgroup.h | 72 +++ include/linux/kvm_host.h | 4 + init/Kconfig | 14 + kernel/cgroup/Makefile | 1 + kernel/cgroup/encryption_ids.c | 421 ++++++++++++++++++ 9 files changed, 633 insertions(+), 14 deletions(-) create mode 100644 Documentation/admin-guide/cgroup-v1/encryption_ids.rst create mode 100644 include/linux/encryption_ids_cgroup.h create mode 100644 kernel/cgroup/encryption_ids.c
Signature · 1 line
2.30.0.284.gd98b1dd5eaa7-goog