Commit:     e00154891137e3b0659556b877d45a16cabd700c
Parent:     46fd906131bfae831b56a1e64dd94956626fc07c
Author:     Herbert Xu <[EMAIL PROTECTED]>
AuthorDate: Tue Jan 23 14:10:00 2007 +1100
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon Jan 22 19:27:02 2007 -0800

    [PATCH] vmx: Fix register constraint in launch code
    Both "=r" and "=g" breaks my build on i386:
      $ make
        CC [M]  drivers/kvm/vmx.o
      {standard input}: Assembler messages:
      {standard input}:3318: Error: bad register name `%sil'
      make[1]: *** [drivers/kvm/vmx.o] Error 1
      make: *** [_module_drivers/kvm] Error 2
    The reason is that setbe requires an 8-bit register but "=r" does not
    constrain the target register to be one that has an 8-bit version on
    According to
    the correct constraint is "=q".
    Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 drivers/kvm/vmx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index ce219e3..0aa2659 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -1824,7 +1824,7 @@ again:
                "setbe %0 \n\t"
                "popf \n\t"
-             : "=g" (fail)
+             : "=q" (fail)
              : "r"(vcpu->launched), "d"((unsigned long)HOST_RSP),
                [rax]"i"(offsetof(struct kvm_vcpu, regs[VCPU_REGS_RAX])),
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to