public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] SEV-SNP guest policy bit support updates
@ 2025-10-27 19:33 Tom Lendacky
  2025-10-27 19:33 ` [PATCH v4 1/4] KVM: SEV: Consolidate the SEV policy bits in a single header file Tom Lendacky
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Tom Lendacky @ 2025-10-27 19:33 UTC (permalink / raw)
  To: kvm, linux-kernel, x86, linux-crypto
  Cc: Paolo Bonzini, Sean Christopherson, Borislav Petkov, Dave Hansen,
	Ingo Molnar, Thomas Gleixner, Michael Roth, Ashish Kalra,
	Herbert Xu, David Miller

This series aims to allow more flexibility in specifying SEV-SNP policy
bits by improving discoverability of supported policy bits from userspace
and enabling support for newer policy bits.

- The first patch consolidates the policy definitions into a single header
  file.

- The second patch adds a CCP driver API to return the supported policy
  bits. Policy bit support is dependent on the version of SEV firmware.

- The third patch adds a new KVM_X86_GRP_SEV attribute group,
  KVM_X86_SNP_POLICY_BITS, that can be used to return the supported
  SEV-SNP policy bits. The initial support for this attribute will use
  the new CCP driver API to return the firmware supported policy bits
  ANDed with the KVM supported policy bits.

- The fourth patch expands the number of policy bits that KVM supports.

The series is based off of:
  git://git.kernel.org/pub/scm/virt/kvm/kvm.git master

---

Changes for v4:
  - Swizzle the patch order in order to preserve ABI.
  - Use the new CCP API from the start for the KVM_X86_SNP_POLICY_BITS
    attribute.

Changes for v3:
  - Remove RFC tag.

Changes for v2:
  - Marked the KVM supported policy bits as read-only after init.

Tom Lendacky (4):
  KVM: SEV: Consolidate the SEV policy bits in a single header file
  crypto: ccp - Add an API to return the supported SEV-SNP policy bits
  KVM: SEV: Publish supported SEV-SNP policy bits
  KVM: SEV: Add known supported SEV-SNP policy bits

 arch/x86/include/uapi/asm/kvm.h |  1 +
 arch/x86/kvm/svm/sev.c          | 45 ++++++++++++++++++++-------------
 arch/x86/kvm/svm/svm.h          |  3 ---
 drivers/crypto/ccp/sev-dev.c    | 37 +++++++++++++++++++++++++++
 include/linux/psp-sev.h         | 39 ++++++++++++++++++++++++++++
 5 files changed, 105 insertions(+), 20 deletions(-)


base-commit: 4361f5aa8bfcecbab3fc8db987482b9e08115a6a
-- 
2.51.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-11-18 23:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-27 19:33 [PATCH v4 0/4] SEV-SNP guest policy bit support updates Tom Lendacky
2025-10-27 19:33 ` [PATCH v4 1/4] KVM: SEV: Consolidate the SEV policy bits in a single header file Tom Lendacky
2025-10-27 19:33 ` [PATCH v4 2/4] crypto: ccp - Add an API to return the supported SEV-SNP policy bits Tom Lendacky
2025-11-13 18:52   ` Sean Christopherson
2025-11-13 18:58     ` Tom Lendacky
2025-11-13 21:15       ` Sean Christopherson
2025-11-14  9:37   ` Herbert Xu
2025-10-27 19:33 ` [PATCH v4 3/4] KVM: SEV: Publish " Tom Lendacky
2025-10-27 19:33 ` [PATCH v4 4/4] KVM: SEV: Add known " Tom Lendacky
2025-11-13 18:54 ` [PATCH v4 0/4] SEV-SNP guest policy bit support updates Sean Christopherson
2025-11-18 23:27 ` Sean Christopherson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox