public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm-unit-test: disable syscall test in 32 bit mode
@ 2013-02-27 11:25 Michael S. Tsirkin
  2013-02-27 11:35 ` Gleb Natapov
  0 siblings, 1 reply; 2+ messages in thread
From: Michael S. Tsirkin @ 2013-02-27 11:25 UTC (permalink / raw)
  To: kvm; +Cc: gleb

Fix this error on 32 bit systems:
x86/msr.c:122:5: error: unknown register name ‘r11’ in ‘asm’

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 x86/msr.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/x86/msr.c b/x86/msr.c
index 307835d..de7573d 100644
--- a/x86/msr.c
+++ b/x86/msr.c
@@ -112,6 +112,7 @@ static void test_msr_rw(int msr_index, unsigned long long input, unsigned long l
 
 static void test_syscall_lazy_load(void)
 {
+#ifdef __x86_64__
     extern void syscall_target();
     u16 cs = read_cs(), ss = read_ss();
     ulong tmp;
@@ -123,6 +124,7 @@ static void test_syscall_lazy_load(void)
     write_ss(ss);
     // will crash horribly if broken
     report("MSR_*STAR eager loading", true);
+#endif
 }
 
 int main(int ac, char **av)
-- 
MST

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

end of thread, other threads:[~2013-02-27 11:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-27 11:25 [PATCH] kvm-unit-test: disable syscall test in 32 bit mode Michael S. Tsirkin
2013-02-27 11:35 ` Gleb Natapov

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