public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Martin Doucha <mdoucha@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 01/10] kvm_read_sregs(): Read the TR segment register
Date: Tue, 21 Jan 2025 17:44:15 +0100	[thread overview]
Message-ID: <20250121164426.27977-2-mdoucha@suse.cz> (raw)
In-Reply-To: <20250121164426.27977-1-mdoucha@suse.cz>

Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
 testcases/kernel/kvm/bootstrap_x86.S    | 2 ++
 testcases/kernel/kvm/bootstrap_x86_64.S | 2 ++
 testcases/kernel/kvm/include/kvm_x86.h  | 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/testcases/kernel/kvm/bootstrap_x86.S b/testcases/kernel/kvm/bootstrap_x86.S
index a39c6bea7..79d2218d3 100644
--- a/testcases/kernel/kvm/bootstrap_x86.S
+++ b/testcases/kernel/kvm/bootstrap_x86.S
@@ -215,6 +215,8 @@ kvm_read_sregs:
 	movw %ax, 8(%edi)
 	mov %ss, %ax
 	movw %ax, 10(%edi)
+	str %ax
+	movw %ax, 12(%edi)
 	pop %edi
 	ret
 
diff --git a/testcases/kernel/kvm/bootstrap_x86_64.S b/testcases/kernel/kvm/bootstrap_x86_64.S
index b02dd4d92..32170f7c9 100644
--- a/testcases/kernel/kvm/bootstrap_x86_64.S
+++ b/testcases/kernel/kvm/bootstrap_x86_64.S
@@ -319,6 +319,8 @@ kvm_read_sregs:
 	movw %ax, 8(%rdi)
 	mov %ss, %ax
 	movw %ax, 10(%rdi)
+	str %ax
+	movw %ax, 12(%rdi)
 	retq
 
 handle_interrupt:
diff --git a/testcases/kernel/kvm/include/kvm_x86.h b/testcases/kernel/kvm/include/kvm_x86.h
index 08d3f6759..f99fedbca 100644
--- a/testcases/kernel/kvm/include/kvm_x86.h
+++ b/testcases/kernel/kvm/include/kvm_x86.h
@@ -178,7 +178,7 @@ struct kvm_cregs {
 };
 
 struct kvm_sregs {
-	uint16_t cs, ds, es, fs, gs, ss;
+	uint16_t cs, ds, es, fs, gs, ss, tr;
 };
 
 struct kvm_regs64 {
-- 
2.47.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2025-01-21 16:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-21 16:44 [LTP] [PATCH 00/10] Basic KVM test for Intel VMX Martin Doucha
2025-01-21 16:44 ` Martin Doucha [this message]
2025-01-21 16:44 ` [LTP] [PATCH 02/10] kvm_svm_vmrun(): Simplify VM state save/load with macros Martin Doucha
2025-01-21 16:44 ` [LTP] [PATCH 03/10] kvm_x86: Define CR0 flags and additional CPUID/MSR constants Martin Doucha
2025-01-21 16:44 ` [LTP] [PATCH 04/10] KVM: Implement helper functions for setting x86 control registers Martin Doucha
2025-01-21 16:44 ` [LTP] [PATCH 05/10] KVM: Add memcmp() helper function Martin Doucha
2025-01-21 16:44 ` [LTP] [PATCH 06/10] KVM: Add helper functions for nested Intel VMX virtualization Martin Doucha
2025-01-21 16:44 ` [LTP] [PATCH 07/10] lib: Add helper function for reloading kernel modules Martin Doucha
2025-01-21 16:44 ` [LTP] [PATCH 08/10] lib: Add helper function for reading boolean sysconf files Martin Doucha
2025-01-21 16:44 ` [LTP] [PATCH 09/10] kvm_pagefault01: Use library functions to reload KVM modules Martin Doucha
2025-01-21 16:44 ` [LTP] [PATCH 10/10] KVM: Add functional test for emulated VMREAD/VMWRITE instructions Martin Doucha
2025-01-31  7:40   ` Petr Vorel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250121164426.27977-2-mdoucha@suse.cz \
    --to=mdoucha@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox