From patchwork Tue Jun 28 16:47:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vitaly Kuznetsov X-Patchwork-Id: 9203625 Return-Path: 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 37B306075F for ; Tue, 28 Jun 2016 16:49:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29A3C285FD for ; Tue, 28 Jun 2016 16:49:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E7882860E; Tue, 28 Jun 2016 16:49:37 +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 D7503285FD for ; 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 ) id 1bHwAy-0003jy-76; Tue, 28 Jun 2016 16:47:52 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHwAx-0003iq-Hc for xen-devel@lists.xenproject.org; Tue, 28 Jun 2016 16:47:51 +0000 Received: from [85.158.137.68] by server-16.bemta-3.messagelabs.com id B0/B8-23871-63AA2775; Tue, 28 Jun 2016 16:47:50 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHLMWRWlGSWpSXmKPExsVysWW7jK7ZqqJ wg/+HWC2+b5nM5MDocfjDFZYAxijWzLyk/IoE1oxTm/vZCo6wVRzbfpetgfEMaxcjF4eQwG4m ibttTUxdjJxAzhFGieN7ykBsNgEdie9PTzGD2CICShL3Vk1mAmlgFpjCLPF543ZWkISwgIvEh 8kLwJpZBFQldq9byQ5i8wo4ScxfvJQFxOYUcJb43L6NHWKBk8SJFfPYQGwJAW2J5xcms0PYfY wSpyfkTGDkWcDIsIpRvTi1qCy1SNdEL6koMz2jJDcxM0fX0MBYLze1uDgxPTUnMalYLzk/dxM j0O8MQLCDsfGL0yFGSQ4mJVHeb71F4UJ8SfkplRmJxRnxRaU5qcWHGGU4OJQkeOetAMoJFqWm p1akZeYAAxAmLcHBoyTC+wwkzVtckJhbnJkOkTrFqMux4MfttUxCLHn5ealS4rznQYoEQIoyS vPgRsCi4RKjrJQwLyPQUUI8BalFuZklqPKvGMU5GJWEeZeCTOHJzCuB2/QK6AgmoCNYq/NBji hJREhJNTAmHm57FWiVeofnyu+VlQs2fV+15dP/1t6Pfx5dX6p7rKVyoTe/3ETG5wIsH7i3sj2 bciBUrvNfzbYij7VZq9sOC6zb0fZ0+ZUnavdvvJU9zP9lS/96ftOmjPqPihZf2Q/YqrgGCjxw MmdZpL9errAoT+VBqIzQulMnT+xVCVNnim++ZbLVP8JLiaU4I9FQi7moOBEA2lFb9YECAAA= X-Env-Sender: vkuznets@redhat.com X-Msg-Ref: server-9.tower-31.messagelabs.com!1467132468!11116245!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 57384 invoked from network); 28 Jun 2016 16:47:49 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by server-9.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 28 Jun 2016 16:47:49 -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 29EF47F6A5; Tue, 28 Jun 2016 16:47:48 +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 u5SGlUIB004662; Tue, 28 Jun 2016 12:47:45 -0400 From: Vitaly Kuznetsov To: xen-devel@lists.xenproject.org Date: Tue, 28 Jun 2016 18:47:27 +0200 Message-Id: <1467132449-1030-7-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.25]); Tue, 28 Jun 2016 16:47:48 +0000 (UTC) Cc: Juergen Gross , Stefano Stabellini , x86@kernel.org, linux-kernel@vger.kernel.org, Julien Grall , Ingo Molnar , David Vrabel , "H. Peter Anvin" , Boris Ostrovsky , Thomas Gleixner Subject: [Xen-devel] [PATCH linux 6/8] 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 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/xen/events/events_fifo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/events/events_fifo.c b/drivers/xen/events/events_fifo.c index 9289a17..e3406cd 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 = per_cpu(xen_vcpu_id, cpu); return HYPERVISOR_event_channel_op(EVTCHNOP_init_control, &init_control); }