From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933057AbbLNWgl (ORCPT ); Mon, 14 Dec 2015 17:36:41 -0500 Received: from p3plsmtps2ded03.prod.phx3.secureserver.net ([208.109.80.60]:55356 "EHLO p3plsmtps2ded03.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753612AbbLNW2X (ORCPT ); Mon, 14 Dec 2015 17:28:23 -0500 x-originating-ip: 72.167.245.219 From: "K. Y. Srinivasan" To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com Cc: Jake Oshins , "K. Y. Srinivasan" Subject: [PATCH RESEND 10/27] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through Date: Mon, 14 Dec 2015 16:01:41 -0800 Message-Id: <1450137718-26366-10-git-send-email-kys@microsoft.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1450137718-26366-1-git-send-email-kys@microsoft.com> References: <1450137698-26327-1-git-send-email-kys@microsoft.com> <1450137718-26366-1-git-send-email-kys@microsoft.com> X-CMAE-Envelope: MS4wfKWS+k/TzIRqqUgOZajQz4GeoVM+oEN+UwL+BfVsGJqlcf6laA94VDr/XsqfuzCgAnOuqec7lTWXJBtHSgka4oDlLbaabkXAiuFYG42TdfFawgPdHkfF Wt0ZjYGBxnWrj21KOeBXlH8IXo6C67QQszwxI7nl1lVtnIiJ4C0UAx5XFj/ElBV4XZDx3vdWq0GKOJ2B6ITviDTcaQs99A7aYbDcr8yc+dLGiDXj+llOQOBY vJqlTPt9fFviOlQm9+2trPu7eMEjDRuePU7H7Ns1h26VfXZt+tfdsUtZbBL/RaFPjEGL7gwkul6UxKYF2nxvVmkI3kOjLJwHjr7B8s+UFQ77wW+kmTWA0SdV 8ZJDVFZ/Rhs4eVjQfK5c6qo/9AZ5RpExAtJoGO0c6zGsi/o/vN6MHwvfDmQ452i8p8PBPX2lGRh60nadzth18lxf1pUcYg== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jake Oshins This defines the channel type for PCI front-ends in Hyper-V VMs. Signed-off-by: Jake Oshins Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 3 +++ include/linux/hyperv.h | 11 +++++++++++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 652afd1..a77646b 100644 --- a/drivers/hv/channel_mgmt.c +++ b/drivers/hv/channel_mgmt.c @@ -358,6 +358,7 @@ enum { SCSI, NIC, ND_NIC, + PCIE, MAX_PERF_CHN, }; @@ -375,6 +376,8 @@ static const struct hv_vmbus_device_id hp_devs[] = { { HV_NIC_GUID, }, /* NetworkDirect Guest RDMA */ { HV_ND_GUID, }, + /* PCI Express Pass Through */ + { HV_PCIE_GUID, }, }; diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 24d0b65..c9a9eed 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -1141,6 +1141,17 @@ u64 hv_do_hypercall(u64 control, void *input, void *output); } /* + * PCI Express Pass Through + * {44C4F61D-4444-4400-9D52-802E27EDE19F} + */ + +#define HV_PCIE_GUID \ + .guid = { \ + 0x1D, 0xF6, 0xC4, 0x44, 0x44, 0x44, 0x00, 0x44, \ + 0x9D, 0x52, 0x80, 0x2E, 0x27, 0xED, 0xE1, 0x9F \ + } + +/* * Common header for Hyper-V ICs */ -- 1.7.4.1