Re: [PATCH v1 9/9] drivers: hv: dxgkrnl: Implement DXGSYNCFILE

From: Iouri Tarassov
Date: Fri Jan 14 2022 - 17:26:40 EST


On 1/12/2022 11:41 PM, Greg KH wrote:
On Wed, Jan 12, 2022 at 11:55:14AM -0800, Iouri Tarassov wrote:
> Implement the LX_DXCREATESYNCFILE IOCTL (D3DKMTCreateSyncFile).

Your subject line does not describe what this is doing at all, as we
have no clue what DXGSYNCFILE is.

Hi Greg,

I do not understand this comment. The full description is:
"
drivers: hv: dxgkrnl: Implement DXGSYNCFILE

Implement the LX_DXCREATESYNCFILE IOCTL (D3DKMTCreateSyncFile).

dxgsyncfile is built on top of the Linux sync_file object and
provides a way for the user mode to synchronize with the execution
of the device DMA packets.

The IOCTL creates a dxgsyncfile object for the given GPU synchronization
object and a fence value. A sync_object file descriptor is returned to
the caller. The caller could wait for the object by using poll().
When the GPU synchronization object is signaled on the host, the host
sends a message to the virtual machine and the sync_file object is
signaled.
"
Is this not enough?

Thanks
Iouri