Skip to content

RFC KVM: SVM: Cgroup support for SVM SEV ASIDs

Vipin Sharma cgroups kvm kvm-ppc linux-doc linux-s390 lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: SVM: Create SEV cgroup controller.arch/x86/kvm/Makefile arch/x86/kvm/svm/sev.c arch/x86/kvm/svm/sev_cgroup.c +3 more+487 -16 replies
2/2KVM: SVM: SEV cgroup controller documentationDocumentation/admin-guide/cgroup-v1/sev.rst Documentation/admin-guide/cgroup-v2.rst+147 -30 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDavid RientjesDionna GlazeErdem Aktas
1/2R-b R-b R-b
2/2R-b 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.

Read the v1 thread

Cover letter [RFC Patch 0/2] KVM: SVM: Cgroup support for SVM SEV ASIDs

Hello,

This patch series adds a new SEV controller for tracking and limiting the usage of SEV ASIDs on the AMD SVM platform.

SEV ASIDs are used in creating encrypted VM and lightweight sandboxes but this resource is in very limited quantity on a host.

This limited quantity creates issues like SEV ASID starvation and unoptimized scheduling in the cloud infrastructure.

SEV controller provides SEV ASID tracking and resource control mechanisms.

Patch 1 - Overview, motivation, and implementation details of the SEV
controller.
Patch 2 - Kernel documentation of the SEV controller for both
cgroup v1 and v2.

Thanks

Vipin Sharma (2):
KVM: SVM: Create SEV cgroup controller.
KVM: SVM: SEV cgroup controller documentation

 Documentation/admin-guide/cgroup-v1/sev.rst |  94 +++++
 Documentation/admin-guide/cgroup-v2.rst     |  56 ++-
 arch/x86/kvm/Makefile                       |   1 +
 arch/x86/kvm/svm/sev.c                      |  16 +-
 arch/x86/kvm/svm/sev_cgroup.c               | 414 ++++++++++++++++++++
 arch/x86/kvm/svm/sev_cgroup.h               |  40 ++
 include/linux/cgroup_subsys.h               |   3 +
 init/Kconfig                                |  14 +
 8 files changed, 634 insertions(+), 4 deletions(-)
 create mode 100644 Documentation/admin-guide/cgroup-v1/sev.rst
 create mode 100644 arch/x86/kvm/svm/sev_cgroup.c
 create mode 100644 arch/x86/kvm/svm/sev_cgroup.h
Signature · 1 line
2.28.0.681.g6f77f65b4e-goog