From patchwork Tue Mar 21 15:41:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 9636985 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 541DC602CC for ; Tue, 21 Mar 2017 15:43:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48DFD28338 for ; Tue, 21 Mar 2017 15:43:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3DC4C28343; Tue, 21 Mar 2017 15:43:27 +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 C01B328338 for ; Tue, 21 Mar 2017 15:43:26 +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 1cqLuN-0001d3-FJ; Tue, 21 Mar 2017 15:41:15 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cqLuM-0001cv-T8 for xen-devel@lists.xenproject.org; Tue, 21 Mar 2017 15:41:14 +0000 Received: from [193.109.254.147] by server-9.bemta-6.messagelabs.com id BA/B6-14382-A9941D85; Tue, 21 Mar 2017 15:41:14 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjkeJIrShJLcpLzFFi42LZKekooTvT82K EweddZhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8aLhYuZCu5wV1xrO8DUwPiQs4uRk0NCwE9i 38cjrCA2m4COxMW5O9m6GDk4RARUJG7vNQAxmQXKJWbciAepEBYIk5hzqYcJxGYRUJWYOOstC 4jNK2ApsXL9WyaIifISizbNgIoLSpyc+QTMZhbQlGjd/psdwpaXaN46mxnEFhJQlOif94ANoj ddYuKzHpYJjLyzkLTPQtI+C0n7AkbmVYzqxalFZalFumZ6SUWZ6RkluYmZObqGBmZ6uanFxYn pqTmJScV6yfm5mxiB4cQABDsY553wP8QoycGkJMqb6HQxQogvKT+lMiOxOCO+qDQntfgQowwH h5IEb48HUE6wKDU9tSItMwcY2DBpCQ4eJRFedpA0b3FBYm5xZjpE6hSjopQ472KQhABIIqM0D 64NFk2XGGWlhHkZgQ4R4ilILcrNLEGVf8UozsGoJMw7A2QKT2ZeCdz0V0CLmYAWl+25ALK4JB EhJdXAKHAjYyFDT8hU3h8Clk/ubLov7WkuMUNs0Y2uywbHX4nNWLg05d4fLVaZm+U+VVXsng+ jgpuPm56TvpevFyYk/vdPulDRzRc7X05JMfYJPOU6Z/eF6XsmcOnkfZ/AM2Wh4V/pbO5/eWFX EgSrJ0++d+HMYkPVkHdhew591Vs2v+GhSMnKhea7EpVYijMSDbWYi4oTAfZyHAGhAgAA X-Env-Sender: prvs=24690a329=roger.pau@citrix.com X-Msg-Ref: server-14.tower-27.messagelabs.com!1490110873!80523395!1 X-Originating-IP: [185.25.65.24] X-SpamReason: No, hits=0.0 required=7.0 tests=received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.2.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 18553 invoked from network); 21 Mar 2017 15:41:13 -0000 Received: from smtp.eu.citrix.com (HELO SMTP.EU.CITRIX.COM) (185.25.65.24) by server-14.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 21 Mar 2017 15:41:13 -0000 X-IronPort-AV: E=Sophos;i="5.36,198,1486425600"; d="scan'208";a="42853926" From: Roger Pau Monne To: Date: Tue, 21 Mar 2017 15:41:07 +0000 Message-ID: <20170321154107.57073-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.12.0 MIME-Version: 1.0 X-ClientProxiedBy: AMSPEX02CAS02.citrite.net (10.69.22.113) To AMSPEX02CL02.citrite.net (10.69.22.126) Cc: Andrew Cooper , Jan Beulich , Roger Pau Monne Subject: [Xen-devel] [PATCH] x86/hvm: switch some open-coded dpci access to use the provided macro 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: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP No functional change. Signed-off-by: Roger Pau Monné --- Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/hvm/hvm.c | 2 +- xen/drivers/passthrough/io.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 0282986738..0d8c574f4d 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -457,7 +457,7 @@ void hvm_migrate_pirqs(struct vcpu *v) { struct domain *d = v->domain; - if ( !iommu_enabled || !d->arch.hvm_domain.irq.dpci ) + if ( !iommu_enabled || !domain_get_irq_dpci(d) ) return; spin_lock(&d->event_lock); diff --git a/xen/drivers/passthrough/io.c b/xen/drivers/passthrough/io.c index 080183ea31..ce5c9b90d2 100644 --- a/xen/drivers/passthrough/io.c +++ b/xen/drivers/passthrough/io.c @@ -788,7 +788,7 @@ static int _hvm_dpci_msi_eoi(struct domain *d, void hvm_dpci_msi_eoi(struct domain *d, int vector) { - if ( !iommu_enabled || !d->arch.hvm_domain.irq.dpci ) + if ( !iommu_enabled || !domain_get_irq_dpci(d) ) return; spin_lock(&d->event_lock); @@ -798,7 +798,7 @@ void hvm_dpci_msi_eoi(struct domain *d, int vector) static void hvm_dirq_assist(struct domain *d, struct hvm_pirq_dpci *pirq_dpci) { - if ( unlikely(!d->arch.hvm_domain.irq.dpci) ) + if ( unlikely(!domain_get_irq_dpci(d)) ) { ASSERT_UNREACHABLE(); return;