<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:PMingLiU;
panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
@font-face
{font-family:"\@PMingLiU";
panose-1:2 1 6 1 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:10.0pt;
font-family:"Aptos",sans-serif;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi Jason,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks, I remove this line in patch 7/7.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Maybe I should squash 7/7 and 4/7.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">William<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Jason Gunthorpe <jgg@nvidia.com><br>
<b>Date: </b>Friday, September 6, 2024 at 6:53 AM<br>
<b>To: </b>William Tu <witu@nvidia.com><br>
<b>Cc: </b>kernel-team@lists.ubuntu.com <kernel-team@lists.ubuntu.com>, Vladimir Sokolovsky <vlad@nvidia.com>, Bodong Wang <bodong@nvidia.com>, Sergey Gorenko <sergeygo@nvidia.com>, Ziv Waksman <zwaksman@nvidia.com><br>
<b>Subject: </b>Re: [SRU][J:linux-bluefield][PATCH v2 4/7] UBUNTU: SAUCE: vfio/pci: Allow MMIO regions to be exported through dma-buf<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">On Fri, Sep 06, 2024 at 12:40:35AM +0000, William Tu wrote:<br>
<br>
> +/**<br>
> + * Upon VFIO_DEVICE_FEATURE_GET create a dma_buf fd for the<br>
> + * region selected.<br>
> + *<br>
> + * open_flags are the typical flags passed to open(2), eg O_RDWR, O_CLOEXEC,<br>
> + * etc. offset/length specify a slice of the region to create the dmabuf from.<br>
> + * If both are 0 then the whole region is used.<br>
> + *<br>
> + * Return: The fd number on success, -1 and errno is set on failure.<br>
> + */<br>
> +struct vfio_device_feature_dma_buf {<br>
> + __u32 region_index;<br>
> + __u32 open_flags;<br>
> + __u32 offset;<br>
> + __u64 length;<br>
> +};<br>
> +#define VFIO_DEVICE_FEATURE_DMA_BUF 3 // FIXME numbers wrong<br>
<br>
This still can't be like this<br>
<br>
Jason<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>