All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: kvm@vger.kernel.org
Cc: Glauber Costa <glommer@gmail.com>,
	Jochen Roth <jroth@linux.vnet.ibm.com>,
	Avi Kivity <avi@redhat.com>,
	Anthony Liguori <aliguori@us.ibm.com>
Subject: [PATCH 02/17] kvm: testsuite: compile fix - avoid raw string literal
Date: Sun, 17 May 2009 10:43:03 -0500	[thread overview]
Message-ID: <1242574999-20887-3-git-send-email-aliguori@us.ibm.com> (raw)
In-Reply-To: <1242574999-20887-1-git-send-email-aliguori@us.ibm.com>

From: Jochen Roth <jroth@linux.vnet.ibm.com>

This patch fixes compilation problems of kvm-userspace on current gcc
4.4 compilers which implement the following standard:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2442.htm

Signed-off-by: Jochen Roth <jroth@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

diff --git a/kvm/user/test/x86/apic.c b/kvm/user/test/x86/apic.c
index 9c6205b..7794615 100644
--- a/kvm/user/test/x86/apic.c
+++ b/kvm/user/test/x86/apic.c
@@ -54,14 +54,14 @@ asm (
     "push %r9  \n\t"
     "push %r8  \n\t"
 #endif
-    "push %"R"di \n\t"
-    "push %"R"si \n\t"
-    "push %"R"bp \n\t"
-    "push %"R"sp \n\t"
-    "push %"R"bx \n\t"
-    "push %"R"dx \n\t"
-    "push %"R"cx \n\t"
-    "push %"R"ax \n\t"
+    "push %"R "di \n\t"
+    "push %"R "si \n\t"
+    "push %"R "bp \n\t"
+    "push %"R "sp \n\t"
+    "push %"R "bx \n\t"
+    "push %"R "dx \n\t"
+    "push %"R "cx \n\t"
+    "push %"R "ax \n\t"
 #ifdef __x86_64__
     "mov %rsp, %rdi \n\t"
     "callq *8*16(%rsp) \n\t"
@@ -70,14 +70,14 @@ asm (
     "calll *4+4*8(%esp) \n\t"
     "add $4, %esp \n\t"
 #endif
-    "pop %"R"ax \n\t"
-    "pop %"R"cx \n\t"
-    "pop %"R"dx \n\t"
-    "pop %"R"bx \n\t"
-    "pop %"R"bp \n\t"
-    "pop %"R"bp \n\t"
-    "pop %"R"si \n\t"
-    "pop %"R"di \n\t"
+    "pop %"R "ax \n\t"
+    "pop %"R "cx \n\t"
+    "pop %"R "dx \n\t"
+    "pop %"R "bx \n\t"
+    "pop %"R "bp \n\t"
+    "pop %"R "bp \n\t"
+    "pop %"R "si \n\t"
+    "pop %"R "di \n\t"
 #ifdef __x86_64__
     "pop %r8  \n\t"
     "pop %r9  \n\t"
diff --git a/kvm/user/test/x86/vmexit.c b/kvm/user/test/x86/vmexit.c
index bd57bfa..981d6c1 100644
--- a/kvm/user/test/x86/vmexit.c
+++ b/kvm/user/test/x86/vmexit.c
@@ -31,7 +31,7 @@ int main()
 
 	t1 = rdtsc();
 	for (i = 0; i < N; ++i)
-		asm volatile ("push %%"R"bx; cpuid; pop %%"R"bx"
+		asm volatile ("push %%"R "bx; cpuid; pop %%"R "bx"
 			      : : : "eax", "ecx", "edx");
 	t2 = rdtsc();
 	printf("vmexit latency: %d\n", (int)((t2 - t1) / N));
-- 
1.6.0.6


  parent reply	other threads:[~2009-05-17 15:43 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-17 15:43 [PATCH 0/17][REVIEW] Backport candidates for stable-0.10 Anthony Liguori
2009-05-17 15:43 ` [PATCH 01/17] kvm: libkvm: protect irq injection status code with KVM_CAP_IRQ_INJECT_STATUS Anthony Liguori
2009-05-17 16:57   ` Avi Kivity
2009-05-17 15:43 ` Anthony Liguori [this message]
2009-05-17 15:43 ` [PATCH 03/17] Fix build breakage on non-device-deassignment capable host kernels Anthony Liguori
2009-05-17 16:58   ` Avi Kivity
2009-05-17 15:43 ` [PATCH 04/17] kvm: extboot: Update number of HDs reported by BIOS Anthony Liguori
2009-05-17 15:43 ` [PATCH 05/17] Stop/start cpus before/after devices Anthony Liguori
2009-05-17 16:59   ` Avi Kivity
2009-05-18 13:58     ` Marcelo Tosatti
2009-05-18 14:26       ` Anthony Liguori
2009-05-18 14:46         ` Avi Kivity
2009-05-18 14:47         ` Marcelo Tosatti
2009-05-18 14:55           ` Avi Kivity
2009-05-17 15:43 ` [PATCH 06/17] Use statfs to determine size of huge pages Anthony Liguori
2009-05-17 17:00   ` Avi Kivity
2009-05-18  9:02     ` Joerg Roedel
2009-05-18 13:10       ` Anthony Liguori
2009-05-18 13:22         ` Joerg Roedel
2009-05-17 15:43 ` [PATCH 07/17] Fixup 4GB+ memslot large page alignment Anthony Liguori
2009-05-17 15:43 ` [PATCH 08/17] Clear tap features on initialization Anthony Liguori
2009-05-17 15:43 ` [PATCH 09/17] Propagate errors on failed migration Anthony Liguori
2009-05-17 15:43 ` [PATCH 10/17] Support unregistering memory regions larger than a slot Anthony Liguori
2009-05-17 17:03   ` Avi Kivity
2009-05-18 14:23     ` Jan Kiszka
2009-05-17 15:43 ` [PATCH 11/17] net: drop packet from tap device if all NICs are down Anthony Liguori
2009-05-19 17:52   ` Mark McLoughlin
2009-05-17 15:43 ` Anthony Liguori
2009-05-17 15:43 ` [PATCH 12/17] Increment virtio-net savevm version to avoid conflict with upstream QEMU Anthony Liguori
2009-05-17 17:04   ` Avi Kivity
2009-05-17 23:33     ` Anthony Liguori
2009-05-17 23:41       ` Avi Kivity
2009-05-17 15:43 ` [PATCH 13/17] Increment version id for CPU save state Anthony Liguori
2009-05-17 17:06   ` Avi Kivity
2009-05-17 15:43 ` [PATCH 14/17] Fix build when objdir != srcdir Anthony Liguori
2009-05-17 15:43 ` [PATCH 15/17] Fix loading extboot option rom Anthony Liguori
2009-05-17 17:06   ` Avi Kivity
2009-05-17 15:43 ` [PATCH 16/17] virtio-net: Make save/load format independent of build options Anthony Liguori
2009-05-17 15:43 ` [PATCH 17/17] virtio-net: Refuse loading if the source requires vnet header and the host doesn't support it Anthony Liguori
2009-05-17 16:56 ` [PATCH 0/17][REVIEW] Backport candidates for stable-0.10 Avi Kivity
2009-05-17 23:32   ` Anthony Liguori
2009-05-17 17:10 ` Avi Kivity
2009-05-17 23:36   ` Anthony Liguori
2009-05-17 23:46     ` Avi Kivity
2009-05-21  9:06 ` Avi Kivity

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=1242574999-20887-3-git-send-email-aliguori@us.ibm.com \
    --to=aliguori@us.ibm.com \
    --cc=avi@redhat.com \
    --cc=glommer@gmail.com \
    --cc=jroth@linux.vnet.ibm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.