Message ID | 1467132449-1030-8-git-send-email-vkuznets@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <xen-devel-bounces@lists.xen.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 906866075F for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 28 Jun 2016 16:49:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81893285FD for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 28 Jun 2016 16:49:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7648F2860E; Tue, 28 Jun 2016 16:49:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1B012285FD for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 28 Jun 2016 16:49:36 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <xen-devel-bounces@lists.xen.org>) id 1bHwB0-0003mI-Fj; Tue, 28 Jun 2016 16:47:54 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <vkuznets@redhat.com>) id 1bHwAy-0003iq-UT for xen-devel@lists.xenproject.org; Tue, 28 Jun 2016 16:47:53 +0000 Received: from [85.158.137.68] by server-16.bemta-3.messagelabs.com id 5C/B8-23871-83AA2775; Tue, 28 Jun 2016 16:47:52 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPLMWRWlGSWpSXmKPExsVysWW7jK7FqqJ wg9UzJSy+b5nM5MDocfjDFZYAxijWzLyk/IoE1owZ53+zFDSxVqydfIGlgXEmSxcjF4eQwB4m ifVbl7NDOEcYJabu3wGU4eRgE9CR+P70FDOILSKgJHFv1WQmkCJmgSnMEp83bmcFSQgL2Eksm HQBqJuDg0VAVeLzVV+QMK+Ak0TXrelMIDangLPE5/Zt7CC2EFD8xIp5bCC2hIC2xPMLk8EWSw j0MUpcm9PONIGRZwEjwypG9eLUorLUIl1DvaSizPSMktzEzBxdQwNjvdzU4uLE9NScxKRiveT 83E2MQM8zAMEOxuUfnQ4xSnIwKYnyfustChfiS8pPqcxILM6ILyrNSS0+xCjDwaEkwdu+Eign WJSanlqRlpkDDEGYtAQHj5II7xGQNG9xQWJucWY6ROoUoy7Hgh+31zIJseTl56VKifMeBSkSA CnKKM2DGwGLh0uMslLCvIxARwnxFKQW5WaWoMq/YhTnYFQS5p0GMoUnM68EbtMroCOYgI5grc 4HOaIkESEl1cDIJZS1TnKu5dI6b4ngmG2Lpq0SyNdPubBCnzPrYoy0DNNn80WyAnJOmZ+2frV f+O5g30FhnZ8X1n0zerQv5lOMdc/Mm36//K48Zoxef9Wbe1/k9QsWv7lUvga2zqmvTQv+9Klo 9znmlPCjF/x5I5YxTP3SVvyQUVWQgVX0uV7v4RtKB78US8YosRRnJBpqMRcVJwIAKSgWLIICA AA= X-Env-Sender: vkuznets@redhat.com X-Msg-Ref: server-7.tower-31.messagelabs.com!1467132470!40256038!1 X-Originating-IP: [209.132.183.28] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMjA5LjEzMi4xODMuMjggPT4gNTQwNjQ=\n X-StarScan-Received: X-StarScan-Version: 8.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 48809 invoked from network); 28 Jun 2016 16:47:52 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by server-7.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 28 Jun 2016 16:47:52 -0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 95847163E66; Tue, 28 Jun 2016 16:47:50 +0000 (UTC) Received: from vitty.brq.redhat.com (vitty.brq.redhat.com [10.34.26.3]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u5SGlUIC004662; Tue, 28 Jun 2016 12:47:48 -0400 From: Vitaly Kuznetsov <vkuznets@redhat.com> To: xen-devel@lists.xenproject.org Date: Tue, 28 Jun 2016 18:47:28 +0200 Message-Id: <1467132449-1030-8-git-send-email-vkuznets@redhat.com> In-Reply-To: <1467132449-1030-1-git-send-email-vkuznets@redhat.com> References: <1467132449-1030-1-git-send-email-vkuznets@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 28 Jun 2016 16:47:50 +0000 (UTC) Cc: Juergen Gross <jgross@suse.com>, Stefano Stabellini <sstabellini@kernel.org>, x86@kernel.org, linux-kernel@vger.kernel.org, Julien Grall <julien.grall@citrix.com>, Ingo Molnar <mingo@redhat.com>, David Vrabel <david.vrabel@citrix.com>, "H. Peter Anvin" <hpa@zytor.com>, Boris Ostrovsky <boris.ostrovsky@oracle.com>, Thomas Gleixner <tglx@linutronix.de> Subject: [Xen-devel] [PATCH linux 7/8] xen/evtchn: use xen_vcpu_id mapping X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion <xen-devel.lists.xen.org> List-Unsubscribe: <http://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <http://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" <xen-devel-bounces@lists.xen.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/xen/evtchn.c b/drivers/xen/evtchn.c index f4edd6df..0fc6be4 100644 --- a/drivers/xen/evtchn.c +++ b/drivers/xen/evtchn.c @@ -448,7 +448,7 @@ static long evtchn_ioctl(struct file *file, break; bind_virq.virq = bind.virq; - bind_virq.vcpu = 0; + bind_virq.vcpu = per_cpu(xen_vcpu_id, 0); rc = HYPERVISOR_event_channel_op(EVTCHNOP_bind_virq, &bind_virq); if (rc != 0)
Use the newly introduced xen_vcpu_id mapping to get Xen's idea of vCPU id for CPU0. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> --- drivers/xen/evtchn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)