Message ID | 1467302203-22399-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 D44C960752 for <patchwork-xen-devel@patchwork.kernel.org>; Thu, 30 Jun 2016 15:59:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C61BC20649 for <patchwork-xen-devel@patchwork.kernel.org>; Thu, 30 Jun 2016 15:59:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BAEAB284CC; Thu, 30 Jun 2016 15:59:12 +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 7057E20649 for <patchwork-xen-devel@patchwork.kernel.org>; Thu, 30 Jun 2016 15:59:12 +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 1bIeL3-0006pE-NC; Thu, 30 Jun 2016 15:57:13 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <vkuznets@redhat.com>) id 1bIeL2-0006nr-Dx for xen-devel@lists.xenproject.org; Thu, 30 Jun 2016 15:57:12 +0000 Received: from [85.158.143.35] by server-2.bemta-6.messagelabs.com id 8B/16-11548-75145775; Thu, 30 Jun 2016 15:57:11 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrALMWRWlGSWpSXmKPExsVysWW7jG64Y2m 4wat2CYvvWyYzOTB6HP5whSWAMYo1My8pvyKBNePhjQ9MBb/ZKs5MXMvewPiLtYuRi0NIYC+T xJwb05khnCOMElsXtAFlODnYBHQkvj89xQxiiwgoSdxbNZkJpIhZ4BCzxLFDLxhBEsIC7hLdf TuZQGwWAVWJFRs2soPYvALOEvvfQ9icAi4Sdw8+ZAOxhYDi00+uBotLCGhLPL8wmR1kqIRAH6 PEx7un2CYw8ixgZFjFqF6cWlSWWqRrpJdUlJmeUZKbmJmja2hgppebWlycmJ6ak5hUrJecn7u JEeh7BiDYwbjsr9MhRkkOJiVR3oWPS8KF+JLyUyozEosz4otKc1KLDzHKcHAoSfA6OJSGCwkW paanVqRl5gCDECYtwcGjJMLrApLmLS5IzC3OTIdInWLU5Vjw4/ZaJiGWvPy8VClx3gqQIgGQo ozSPLgRsIi4xCgrJczLCHSUEE9BalFuZgmq/CtGcQ5GJWHeQJApPJl5JXCbXgEdwQR0BHNpMc gRJYkIKakGxmnGxxMbF5/Xs/3+7lIh46pbDBMYel4XKZf5RrVo7uAtOSqy93fUAftU+burXR+ /9WOfes/99vHLl+0lpnXW9e6++fCsdd+BrJdvCgTvbw2ZeKWqO83dZ6XZY/XbxTGrqyIq3umE ZioGf7n2Z63Es5lfJuV17png5x0wJWHdQ4FHfztXb5GXEFBiKc5INNRiLipOBACuSdBHgwIAA A== X-Env-Sender: vkuznets@redhat.com X-Msg-Ref: server-4.tower-21.messagelabs.com!1467302230!15608987!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 19368 invoked from network); 30 Jun 2016 15:57:11 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by server-4.tower-21.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 30 Jun 2016 15:57:11 -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 A9B99C06C9D4; Thu, 30 Jun 2016 15:57:06 +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 u5UFuiDZ008048; Thu, 30 Jun 2016 11:57:04 -0400 From: Vitaly Kuznetsov <vkuznets@redhat.com> To: xen-devel@lists.xenproject.org Date: Thu, 30 Jun 2016 17:56:41 +0200 Message-Id: <1467302203-22399-8-git-send-email-vkuznets@redhat.com> In-Reply-To: <1467302203-22399-1-git-send-email-vkuznets@redhat.com> References: <1467302203-22399-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.32]); Thu, 30 Jun 2016 15:57:06 +0000 (UTC) Cc: Juergen Gross <jgross@suse.com>, Stefano Stabellini <sstabellini@kernel.org>, Andrew Cooper <andrew.cooper3@citrix.com>, x86@kernel.org, linux-kernel@vger.kernel.org, Ingo Molnar <mingo@redhat.com>, David Vrabel <david.vrabel@citrix.com>, Jan Beulich <JBeulich@suse.com>, "H. Peter Anvin" <hpa@zytor.com>, Boris Ostrovsky <boris.ostrovsky@oracle.com>, Thomas Gleixner <tglx@linutronix.de> Subject: [Xen-devel] [PATCH linux v2 7/9] xen/events: fifo: 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/events/events_fifo.c b/drivers/xen/events/events_fifo.c index 9289a17..266c2c7 100644 --- a/drivers/xen/events/events_fifo.c +++ b/drivers/xen/events/events_fifo.c @@ -113,7 +113,7 @@ static int init_control_block(int cpu, init_control.control_gfn = virt_to_gfn(control_block); init_control.offset = 0; - init_control.vcpu = cpu; + init_control.vcpu = xen_vcpu_nr(cpu); return HYPERVISOR_event_channel_op(EVTCHNOP_init_control, &init_control); }
EVTCHNOP_init_control has vCPU id as a parameter and Xen's idea of vCPU id should be used. Use the newly introduced xen_vcpu_id mapping to convert it from Linux's id. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> --- Changes since v1: - Use xen_vcpu_nr() helper [David Vrabel] --- drivers/xen/events/events_fifo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)