public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: SVM: Fix reserved fields of struct sev_es_save_area
@ 2022-10-04 14:05 Carlos Bilbao
  2022-10-04 14:28 ` Carlos Bilbao
  0 siblings, 1 reply; 8+ messages in thread
From: Carlos Bilbao @ 2022-10-04 14:05 UTC (permalink / raw)
  To: tglx, bp, mingo, dave.hansen, x86, hpa, venu.busireddy, kvm,
	linux-kernel
  Cc: Lendacky, Thomas, bilbao

Reserved fields of struct sev_es_save_area are named by their order of
appearance, but right now they jump from reserved_5 to reserved_7. Rename
them with the correct order.

Fixes: 6d3b3d34e39eb ("KVM: SVM: Update the SEV-ES save area mapping")

Signed-off-by: Carlos Bilbao <carlos.bilbao@amd.com>
---
  arch/x86/include/asm/svm.h | 12 ++++++------
  1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/x86/include/asm/svm.h b/arch/x86/include/asm/svm.h
index 0361626841bc..6ab45a0389dc 100644
--- a/arch/x86/include/asm/svm.h
+++ b/arch/x86/include/asm/svm.h
@@ -393,14 +393,14 @@ struct sev_es_save_area {
      u64 br_to;
      u64 last_excp_from;
      u64 last_excp_to;
-    u8 reserved_7[80];
+    u8 reserved_6[80];
      u32 pkru;
-    u8 reserved_8[20];
-    u64 reserved_9;        /* rax already available at 0x01f8 */
+    u8 reserved_7[20];
+    u64 reserved_8;        /* rax already available at 0x01f8 */
      u64 rcx;
      u64 rdx;
      u64 rbx;
-    u64 reserved_10;    /* rsp already available at 0x01d8 */
+    u64 reserved_9;    /* rsp already available at 0x01d8 */
      u64 rbp;
      u64 rsi;
      u64 rdi;
@@ -412,7 +412,7 @@ struct sev_es_save_area {
      u64 r13;
      u64 r14;
      u64 r15;
-    u8 reserved_11[16];
+    u8 reserved_10[16];
      u64 guest_exit_info_1;
      u64 guest_exit_info_2;
      u64 guest_exit_int_info;
@@ -425,7 +425,7 @@ struct sev_es_save_area {
      u64 pcpu_id;
      u64 event_inj;
      u64 xcr0;
-    u8 reserved_12[16];
+    u8 reserved_11[16];

      /* Floating point area */
      u64 x87_dp;
-- 
2.37.0 (Apple Git-136)


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

end of thread, other threads:[~2022-10-24 18:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-04 14:05 [PATCH] KVM: SVM: Fix reserved fields of struct sev_es_save_area Carlos Bilbao
2022-10-04 14:28 ` Carlos Bilbao
2022-10-04 16:29   ` Sean Christopherson
2022-10-04 17:12     ` Carlos Bilbao
2022-10-04 18:51       ` Sean Christopherson
2022-10-04 19:06         ` Carlos Bilbao
2022-10-22  7:46     ` Paolo Bonzini
2022-10-24 16:35       ` Carlos Bilbao

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