Skip to content

Commit a6e1cfc

Browse files
tyhicksRezaT4795
authored andcommitted
Merge feature/dxgkrnl/5.15 into v5.15.59
* commit '9d4fe4f93bee536ee30db016067571fccdb88608': drivers:hv:dxgkrnl: Handle the new behavior of the VM bus channel where channel->max_pkt_size needs to be initialized. Allow killing a process waiting for a VM bus message reply drivers: hv: dxgkrnl: Implement support for mapping guest pages on the host. drivers: hv: dxgkrnl: Implement DXGSYNCFILE drivers: hv: dxgkrnl: Implementation of submit command, paging and hardware queue. drivers: hv: dxgkrnl: Seal the shared resource object when dxgk_share_objects is called. drivers: hv: dxgkrnl: Implement sharing resources and sync objects drivers: hv: dxgkrnl: Implement operations with GPU sync objects drivers: hv: dxgkrnl: Implement creation/destruction of GPU allocations/resources drivers: hv: dxgkrnl: Driver initialization and creation of dxgadapter
1 parent 54be8ef commit a6e1cfc

File tree

20 files changed

+16829
-0
lines changed

20 files changed

+16829
-0
lines changed

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8736,6 +8736,12 @@ F: Documentation/devicetree/bindings/mtd/ti,am654-hbmc.txt
87368736
F: drivers/mtd/hyperbus/
87378737
F: include/linux/mtd/hyperbus.h
87388738

8739+
Hyper-V vGPU DRIVER
8740+
M: Iouri Tarassov <iourit@microsoft.com>
8741+
L: linux-hyperv@vger.kernel.org
8742+
S: Supported
8743+
F: drivers/hv/dxgkrnl/
8744+
87398745
HYPERVISOR VIRTUAL CONSOLE DRIVER
87408746
L: linuxppc-dev@lists.ozlabs.org
87418747
S: Odd Fixes

drivers/hv/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ config HYPERV_BALLOON
2929
help
3030
Select this option to enable Hyper-V Balloon driver.
3131

32+
source "drivers/hv/dxgkrnl/Kconfig"
33+
3234
endmenu

drivers/hv/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
obj-$(CONFIG_HYPERV)+= hv_vmbus.o
33
obj-$(CONFIG_HYPERV_UTILS)+= hv_utils.o
44
obj-$(CONFIG_HYPERV_BALLOON)+= hv_balloon.o
5+
obj-$(CONFIG_DXGKRNL)+= dxgkrnl/
56

67
CFLAGS_hv_trace.o = -I$(src)
78
CFLAGS_hv_balloon.o = -I$(src)

drivers/hv/dxgkrnl/Kconfig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#
2+
# dxgkrnl configuration
3+
#
4+
5+
config DXGKRNL
6+
tristate "Microsoft Paravirtualized GPU support"
7+
depends on HYPERV
8+
depends on 64BIT || COMPILE_TEST
9+
select DMA_SHARED_BUFFER
10+
select SYNC_FILE
11+
help
12+
This driver supports paravirtualized virtual compute devices, exposed
13+
by Microsoft Hyper-V when Linux is running inside of a virtual machine
14+
hosted by Windows. The virtual machines needs to be configured to use
15+
host compute adapters. The driver name is dxgkrnl.
16+
17+
An example of such virtual machine is a Windows Subsystem for
18+
Linux container. When such container is instantiated, the Windows host
19+
assigns compatible host GPU adapters to the container. The corresponding
20+
virtual GPU devices appear on the PCI bus in the container. These
21+
devices are enumerated and accessed by this driver.
22+
23+
Communications with the driver are done by using the Microsoft libdxcore
24+
library, which translates the D3DKMT interface
25+
<https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/d3dkmthk/>
26+
to the driver IOCTLs. The virtual GPU devices are paravirtualized,
27+
which means that access to the hardware is done in the host. The driver
28+
communicates with the host using Hyper-V VM bus communication channels.

drivers/hv/dxgkrnl/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
# Makefile for the Linux video drivers.
3+
4+
obj-$(CONFIG_DXGKRNL)+= dxgkrnl.o
5+
dxgkrnl-y := dxgmodule.o hmgr.o misc.o dxgadapter.o ioctl.o dxgvmbus.o dxgprocess.o dxgsyncfile.o

0 commit comments

Comments
 (0)