Skip to contentSkip to conversation

Documentation: KVM: SEV: Use the uapi structure names

PATCH Applied Karl Mehltretter 2 participants 2 messages Sep 5 – Oct 2

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: KVM: SEV: Use the uapi structure names

The document names struct kvm_sev_launch_update,
struct kvm_sev_attestation, struct kvm_sev_launch_send_update_data and struct kvm_sev_launch_receive_update_data. None of them exists in arch/x86/include/uapi/asm/kvm.h; the structures are kvm_sev_launch_update_data, kvm_sev_attestation_report, kvm_sev_send_update_data and kvm_sev_receive_update_data.

Use the uapi names.

Fixes dc48bae01e5a ("KVM: Define SEV key management command id")
Fixes 2c07ded06427 ("KVM/SVM: add support for SEV attestation command")
Fixes d3d1af85e2c7 ("KVM: SVM: Add KVM_SEND_UPDATE_DATA command")
Fixes 15fb7de1a7f5 ("KVM: SVM: Add KVM_SEV_RECEIVE_UPDATE_DATA command")
Assisted-by LLM
---
 Documentation/virt/kvm/x86/amd-memory-encryption.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
Documentation/virt/kvm/x86/amd-memory-encryption.rst +4 -4
index bd04a908a8db..9ebd99aa1d0b 100644
@@ -170,7 +170,7 @@ Returns: 0 on success, -negative on error
 
 ::
 
-        struct kvm_sev_launch_update {
+        struct kvm_sev_launch_update_data {
                 __u64 uaddr;    /* userspace address to be encrypted (must be 16-byte aligned) */
                 __u32 len;      /* length of the data to be encrypted (must be 16-byte aligned) */
         };
@@ -316,7 +316,7 @@ used by the guest owner with the KVM_SEV_LAUNCH_MEASURE.
 If len is zero on entry, the measurement blob length is written to len and
 uaddr is unused.
 
-Parameters (in): struct kvm_sev_attestation
+Parameters (in): struct kvm_sev_attestation_report
 
 Returns: 0 on success, -negative on error
 
@@ -377,7 +377,7 @@ Returns: 0 on success, -negative on error
 
 ::
 
-        struct kvm_sev_launch_send_update_data {
+        struct kvm_sev_send_update_data {
                 __u64 hdr_uaddr;        /* userspace address containing the packet header */
                 __u32 hdr_len;
 
@@ -447,7 +447,7 @@ Returns: 0 on success, -negative on error
 
 ::
 
-        struct kvm_sev_launch_receive_update_data {
+        struct kvm_sev_receive_update_data {
                 __u64 hdr_uaddr;        /* userspace address containing the packet header */
                 __u32 hdr_len;
 
Signature · 1 line
2.53.0
reviewer Applied
#1 lore raw
Quoted 8 lines · Karl Mehltretter

The document names struct kvm_sev_launch_update,
struct kvm_sev_attestation, struct kvm_sev_launch_send_update_data and struct kvm_sev_launch_receive_update_data. None of them exists in arch/x86/include/uapi/asm/kvm.h; the structures are kvm_sev_launch_update_data, kvm_sev_attestation_report, kvm_sev_send_update_data and kvm_sev_receive_update_data.

[...]

Applied to kvm-x86 misc, thanks!

[1/1] Documentation: KVM: SEV: Use the uapi structure names

      https://github.com/kvm-x86/linux/commit/fe02f37155c8

--
https://github.com/kvm-x86/linux/tree/next