public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: kvm@vger.kernel.org
Cc: gleb@redhat.com
Subject: [PATCH] kvm-unit-test: disable syscall test in 32 bit mode
Date: Wed, 27 Feb 2013 13:25:49 +0200	[thread overview]
Message-ID: <20130227112549.GA14849@redhat.com> (raw)

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

             reply	other threads:[~2013-02-27 11:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-27 11:25 Michael S. Tsirkin [this message]
2013-02-27 11:35 ` [PATCH] kvm-unit-test: disable syscall test in 32 bit mode Gleb Natapov

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=20130227112549.GA14849@redhat.com \
    --to=mst@redhat.com \
    --cc=gleb@redhat.com \
    --cc=kvm@vger.kernel.org \
    /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