This is a follow-up on the RFC sent a few months back[1]. Changes since the RFC: - Move to drivers/hv/ - Address comments from Greg KH - Misc device initialization - Remove typedefs/variable defines - Use the kernel's ioctl declarations - Clean up random code bugs. [1] https://lore.kernel.org/lkml/20200519163234.226513-1-sashal@xxxxxxxxxx/ Sasha Levin (4): drivers: hv: dxgkrnl: core code drivers: hv: dxgkrnl: hook up dxgkrnl drivers: hv: vmbus: hook up dxgkrnl drivers: hv: dxgkrnl: create a MAINTAINERS entry MAINTAINERS | 7 + drivers/hv/Kconfig | 2 + drivers/hv/Makefile | 1 + drivers/hv/dxgkrnl/Kconfig | 10 + drivers/hv/dxgkrnl/Makefile | 12 + drivers/hv/dxgkrnl/d3dkmthk.h | 1636 ++++++++++ drivers/hv/dxgkrnl/dxgadapter.c | 1406 ++++++++ drivers/hv/dxgkrnl/dxgkrnl.h | 927 ++++++ drivers/hv/dxgkrnl/dxgmodule.c | 656 ++++ drivers/hv/dxgkrnl/dxgprocess.c | 357 ++ drivers/hv/dxgkrnl/dxgvmbus.c | 3084 ++++++++++++++++++ drivers/hv/dxgkrnl/dxgvmbus.h | 873 +++++ drivers/hv/dxgkrnl/hmgr.c | 604 ++++ drivers/hv/dxgkrnl/hmgr.h | 112 + drivers/hv/dxgkrnl/ioctl.c | 5413 +++++++++++++++++++++++++++++++ drivers/hv/dxgkrnl/misc.c | 279 ++ drivers/hv/dxgkrnl/misc.h | 309 ++ include/linux/hyperv.h | 16 + 18 files changed, 15704 insertions(+) create mode 100644 drivers/hv/dxgkrnl/Kconfig create mode 100644 drivers/hv/dxgkrnl/Makefile create mode 100644 drivers/hv/dxgkrnl/d3dkmthk.h create mode 100644 drivers/hv/dxgkrnl/dxgadapter.c create mode 100644 drivers/hv/dxgkrnl/dxgkrnl.h create mode 100644 drivers/hv/dxgkrnl/dxgmodule.c create mode 100644 drivers/hv/dxgkrnl/dxgprocess.c create mode 100644 drivers/hv/dxgkrnl/dxgvmbus.c create mode 100644 drivers/hv/dxgkrnl/dxgvmbus.h create mode 100644 drivers/hv/dxgkrnl/hmgr.c create mode 100644 drivers/hv/dxgkrnl/hmgr.h create mode 100644 drivers/hv/dxgkrnl/ioctl.c create mode 100644 drivers/hv/dxgkrnl/misc.c create mode 100644 drivers/hv/dxgkrnl/misc.h -- 2.25.1