Skip to contentSkip to conversation

kvm-unit-test: disable syscall test in 32 bit mode

PATCH Applied Michael S. Tsirkin 2 participants 2 messages Feb 27, 2013 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm-unit-test: disable syscall test in 32 bit mode

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

---
 x86/msr.c | 2 ++
 1 file changed, 2 insertions(+)
x86/msr.c +2 -0
index 307835d..de7573d 100644
@@ -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)
Signature · 1 line
MST
Applied
#1 lore raw
Quoted 4 lines · Michael S. Tsirkin

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

Applied, thanks.

Quoted 26 lines
---
 x86/msr.c | 2 ++
 1 file changed, 2 insertions(+)
x86/msr.c +2 -0
index 307835d..de7573d 100644
@@ -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)
Signature · 1 line
MST

--
Gleb.