Message ID | 1469536228-29932-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 6149C607D8 for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 26 Jul 2016 12:33:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 52FA82624C for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 26 Jul 2016 12:33:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 473DC272AA; Tue, 26 Jul 2016 12:33:28 +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 0856E2624C for <patchwork-xen-devel@patchwork.kernel.org>; Tue, 26 Jul 2016 12:33:27 +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 1bS1Vi-00025y-6s; Tue, 26 Jul 2016 12:30:58 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <vkuznets@redhat.com>) id 1bS1Vg-00024p-Hz for xen-devel@lists.xenproject.org; Tue, 26 Jul 2016 12:30:56 +0000 Received: from [85.158.139.211] by server-6.bemta-5.messagelabs.com id 2D/4F-29022-FF757975; Tue, 26 Jul 2016 12:30:55 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPLMWRWlGSWpSXmKPExsVysWW7jO7/8On hBjfXCll83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBnff6gU/GareP2vl6WB8RdrFyMXh5DAbiaJ lbMnskA4Rxglul8dBnI4OdgEdCS+Pz3FDGKLCChJ3Fs1mQmkiFngPbPEhQdHGEESwgLuEvu3b 2QDsVkEVCV6300Ga+YVcJbomnoMqIGDg1PAReLBIyeQsBBQeNKyLlYQW0JAW+Jswy92kJkSAn 2MEodunmecwMizgJFhFaNGcWpRWWqRrqGFXlJRZnpGSW5iZo6uoYGpXm5qcXFiempOYlKxXnJ +7iZGoOcZgGAHY9N2z0OMkhxMSqK8TBOmhQvxJeWnVGYkFmfEF5XmpBYfYpTh4FCS4JUABpKQ YFFqempFWmYOMARh0hIcPEoivFvDgNK8xQWJucWZ6RCpU4y6HAt+3F7LJMSSl5+XKiXOOxmkS ACkKKM0D24ELB4uMcpKCfMyAh0lxFOQWpSbWYIq/4pRnINRSZj3EcgUnsy8ErhNr4COYAI6Yg HPZJAjShIRUlINjIbXhdbd/Kq7adPRzWrcs3tXvj+keNFdK7nl/6Fgt/0rFymseldiF/J17qE 846fP9d/VP9985M4Mm9NJOg9b8q9c33VtUbr/o7dvN/xy7inwDBFq6NrHIamvG5t4LWTjlXee +2/oX+Isnv1BukjdZ0N+bkPslu5w4UMHbZ5Lvf082Xetxi2xxyJKLMUZiYZazEXFiQClyFbdg gIAAA== X-Env-Sender: vkuznets@redhat.com X-Msg-Ref: server-12.tower-206.messagelabs.com!1469536253!15043995!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.77; banners=-,-,- X-VirusChecked: Checked Received: (qmail 63713 invoked from network); 26 Jul 2016 12:30:55 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by server-12.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 26 Jul 2016 12:30:55 -0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (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 6E21346295; Tue, 26 Jul 2016 12:30:53 +0000 (UTC) Received: from vitty.brq.redhat.com (vitty.brq.redhat.com [10.34.26.3]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6QCUUA1015915; Tue, 26 Jul 2016 08:30:50 -0400 From: Vitaly Kuznetsov <vkuznets@redhat.com> To: xen-devel@lists.xenproject.org Date: Tue, 26 Jul 2016 14:30:26 +0200 Message-Id: <1469536228-29932-8-git-send-email-vkuznets@redhat.com> In-Reply-To: <1469536228-29932-1-git-send-email-vkuznets@redhat.com> References: <1469536228-29932-1-git-send-email-vkuznets@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 26 Jul 2016 12:30:53 +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, Julien Grall <julien.grall@arm.com>, 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 v3 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: <https://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: <https://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(-)