From patchwork Mon Nov 11 16:59:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 3168491 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5AE74C045B for ; Mon, 11 Nov 2013 17:00:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CD19F2037A for ; Mon, 11 Nov 2013 17:00:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F3D37203AD for ; Mon, 11 Nov 2013 17:00:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754949Ab3KKQ75 (ORCPT ); Mon, 11 Nov 2013 11:59:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52524 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754941Ab3KKQ7y (ORCPT ); Mon, 11 Nov 2013 11:59:54 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rABGxqvO014684 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 11 Nov 2013 11:59:53 -0500 Received: from dhcp-1-237.tlv.redhat.com (dhcp-4-228.tlv.redhat.com [10.35.4.228]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id rABGxpKP009416; Mon, 11 Nov 2013 11:59:52 -0500 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 489D818D477; Mon, 11 Nov 2013 18:59:51 +0200 (IST) Date: Mon, 11 Nov 2013 18:59:51 +0200 From: Gleb Natapov To: "Michael S. Tsirkin" Cc: kvm@vger.kernel.org Subject: Re: kvm unit test fails to build on 32 bit systems Message-ID: <20131111165951.GA15084@redhat.com> References: <20131111163400.GA21040@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20131111163400.GA21040@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Mon, Nov 11, 2013 at 06:34:01PM +0200, Michael S. Tsirkin wrote: > x86/eventinj.c: Assembler messages: > x86/eventinj.c:151: Error: bad register name `%rsp' > x86/eventinj.c:152: Error: bad register name `%rsp' > How about that? Tested-by: Michael S. Tsirkin Signed-off-by: Gleb Natapov --- Gleb. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/x86/eventinj.c b/x86/eventinj.c index 3d36b37..9d4392c 100644 --- a/x86/eventinj.c +++ b/x86/eventinj.c @@ -148,8 +148,8 @@ static void nmi_iret_isr(struct ex_regs *r) s[2] = read_rflags(); s[1] = read_cs(); s[0] = after_iret_addr = (unsigned long)&&after_iret; - asm ("mov %%rsp, %0\n\t" - "mov %1, %%rsp\n\t" + asm ("mov %%" R "sp, %0\n\t" + "mov %1, %%" R "sp\n\t" "outl %2, $0xe4\n\t" /* flush stack page */ #ifdef __x86_64__ "iretq\n\t"