drivers:hv: Define the channel type for Hyper-V PCI Express pass-through
authorJake Oshins <jakeo@microsoft.com>
Tue, 15 Dec 2015 00:01:41 +0000 (16:01 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Dec 2015 03:12:21 +0000 (19:12 -0800)
This defines the channel type for PCI front-ends in Hyper-V VMs.

Signed-off-by: Jake Oshins <jakeo@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel_mgmt.c
include/linux/hyperv.h

index 652afd11a9efdceb545add8bad4980b41f698340..a77646b4fcc8b11be2af122209518e314a20c8ea 100644 (file)
@@ -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, },
 };
 
 
index 24d0b656e6e7b457b31205d6b3fe1f558da0012f..c9a9eed89af29d5805d460dd42049be547dc538f 100644 (file)
@@ -1140,6 +1140,17 @@ u64 hv_do_hypercall(u64 control, void *input, void *output);
                        0xab, 0x99, 0xbd, 0x1f, 0x1c, 0x86, 0xb5, 0x01 \
                }
 
+/*
+ * 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
  */