Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp576590pxv; Fri, 9 Jul 2021 04:44:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGS6bkhAxGLnscBJ/lO34PgYtMYrWVnz1swAbSGu8EJs4MJFG9JtM+HsuGOwAauPI3XQ7F X-Received: by 2002:a6b:c707:: with SMTP id x7mr27758853iof.160.1625831069169; Fri, 09 Jul 2021 04:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625831069; cv=none; d=google.com; s=arc-20160816; b=U5/95kLPrqEGlv20HspGhTN8dXTb5j8CKZeJ25JnBYMusXcuEObA6L8CnoLDBQbYib rQtdpts0mnl7KXRfTJ7rUc+kgAKbjNAxRjZ2peXYO50tPiGY+lQRWlx8apVdhLT/EyNA mXia95MlSakFrQpGksGmY05cmuhv33ZfsGTIOm+3B4dUP+xMyc19GVRKNXUZeqmnRmLV PK2xBnhfOZo6aZfGRmx4qRhK28Tq8yF5TMgmZga8ild4/p3kUhuj/cV2d+V0FKX5oTHX biP8QOf9BVvfPhzBpfg01TBTrr3MANwgG5ykMVYKANr+3Fz5nZj2UbfOn6ec2jekDQ62 fjkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=DLB71UQBhut/O7gbRyUf1JJbAPy0a4dWNhnwwecYDec=; b=K3ZfoRrqIUq17jyURED6JuG4FjtzNv3J5RrPa/5dlJCqP7LR3U+brx2L2POC5JEy4w MbaIh8gCrmNVbwVKjfXSlq9BN79csJ/7gS02BIh+5O5bKIYVJClkerhSsqVwecIUEbYZ 9pLhr0Vrhe4sQ6+ILdlXJpcV7R+ePl6c0vY870rDGXlK8wpoi0d9A4eXFyKwRHWLY9fq o6IbJoVeMuQSF6ImNv3fYwVIDVLE0Sf9qBqEh6NbXG4doIZ/ctoJ5aV53E0Lv+kwJz0G GCwXMik1O0zVMj+9C+/C488glmgP7lcUMV0t4iB90ShdhYOm3hJ7lcCI2uiZWP0+zUvh 1p8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r10si6886347ill.10.2021.07.09.04.44.16; Fri, 09 Jul 2021 04:44:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230501AbhGILq3 (ORCPT + 99 others); Fri, 9 Jul 2021 07:46:29 -0400 Received: from mail-wr1-f42.google.com ([209.85.221.42]:33603 "EHLO mail-wr1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230024AbhGILq2 (ORCPT ); Fri, 9 Jul 2021 07:46:28 -0400 Received: by mail-wr1-f42.google.com with SMTP id d2so11825056wrn.0; Fri, 09 Jul 2021 04:43:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DLB71UQBhut/O7gbRyUf1JJbAPy0a4dWNhnwwecYDec=; b=c05Xd4VShegm1FJxbz/fSdELnVfTgSqpfj+RXfVjKt4Lf9QL+DBF6KpKLdYqmnit9L mSkG1M2Q+vwR106O3ZK+ZD+cRSJa3oxCzAh4F2Ud6EcYaFKhCaPcj+aR9kx7dqRSJDai 4FR+hEB07gKo5+UjKv+cJuzCTu3D/qhENSGUuCyhpHKLbb62AoGd3YyuQ3U+ZeniAT8L 1G/3njZ9qRaZeA8f2x2JP3WS5shqyqnWBgsF5SJw8nU47joNATyClUioXjNkawk1BvUa 5XI6LjVU0Mj6IEOERDwDXbe+80A4gieH0bpDkQF9kyJDRFGF6SexT0fBLZ3sbEgsVtLn GH9w== X-Gm-Message-State: AOAM5308oGz/sMAYJnwPKi2pxm9U0CWxpf3ScMHW7FsdizKvU1hFmZbu 3nDtF4qQt+LO0rj2HNIbzdUZUzrlfrY= X-Received: by 2002:a5d:66d1:: with SMTP id k17mr14365349wrw.110.1625831024563; Fri, 09 Jul 2021 04:43:44 -0700 (PDT) Received: from liuwe-devbox-debian-v2.j3c5onc20sse1dnehy4noqpfcg.zx.internal.cloudapp.net ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id z12sm4896849wrs.39.2021.07.09.04.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jul 2021 04:43:44 -0700 (PDT) From: Wei Liu To: Linux on Hyper-V List Cc: virtualization@lists.linux-foundation.org, Linux Kernel List , Michael Kelley , Vineeth Pillai , Sunil Muthuswamy , Nuno Das Neves , kumarpraveen@linux.microsoft.com, pasha.tatashin@soleen.com, Wei Liu , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Dexuan Cui , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org (maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)), "H. Peter Anvin" Subject: [RFC v1 1/8] x86/hyperv: export hv_build_pci_dev_id Date: Fri, 9 Jul 2021 11:43:32 +0000 Message-Id: <20210709114339.3467637-2-wei.liu@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210709114339.3467637-1-wei.liu@kernel.org> References: <20210709114339.3467637-1-wei.liu@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Wei Liu --- arch/x86/hyperv/irqdomain.c | 3 ++- arch/x86/include/asm/mshyperv.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/hyperv/irqdomain.c b/arch/x86/hyperv/irqdomain.c index 514fc64e23d5..5ea7a5145ea9 100644 --- a/arch/x86/hyperv/irqdomain.c +++ b/arch/x86/hyperv/irqdomain.c @@ -110,7 +110,7 @@ static int get_rid_cb(struct pci_dev *pdev, u16 alias, void *data) return 0; } -static union hv_device_id hv_build_pci_dev_id(struct pci_dev *dev) +union hv_device_id hv_build_pci_dev_id(struct pci_dev *dev) { union hv_device_id dev_id; struct rid_data data = { @@ -168,6 +168,7 @@ static union hv_device_id hv_build_pci_dev_id(struct pci_dev *dev) return dev_id; } +EXPORT_SYMBOL_GPL(hv_build_pci_dev_id); static int hv_map_msi_interrupt(struct pci_dev *dev, int cpu, int vector, struct hv_interrupt_entry *entry) diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h index 21edef600729..b8f6b21e1fa5 100644 --- a/arch/x86/include/asm/mshyperv.h +++ b/arch/x86/include/asm/mshyperv.h @@ -196,6 +196,7 @@ struct irq_domain *hv_create_pci_msi_domain(void); int hv_map_ioapic_interrupt(int ioapic_id, bool level, int vcpu, int vector, struct hv_interrupt_entry *entry); int hv_unmap_ioapic_interrupt(int ioapic_id, struct hv_interrupt_entry *entry); +union hv_device_id hv_build_pci_dev_id(struct pci_dev *dev); #else /* CONFIG_HYPERV */ static inline void hyperv_init(void) {} -- 2.30.2