Re: [PATCH v3 4/8] iommufd: Add iommufd fault object

2024-03-25 Thread Baolu Lu
On 3/23/24 1:22 AM, Jason Gunthorpe wrote: On Wed, Mar 20, 2024 at 04:18:05PM +, Shameerali Kolothum Thodi wrote: What I have noticed is that, -read interface works fine and I can receive struct tiommu_hwpt_pgfault data. -But once Guest handles the page faults and returns the page response,

Re: [PATCH v3 4/8] iommufd: Add iommufd fault object

2024-03-25 Thread Baolu Lu
On 3/25/24 11:26 AM, Baolu Lu wrote: On 3/23/24 1:22 AM, Jason Gunthorpe wrote: On Wed, Mar 20, 2024 at 04:18:05PM +, Shameerali Kolothum Thodi wrote: What I have noticed is that, -read interface works fine and I can receive struct tiommu_hwpt_pgfault data. -But once Guest handles the pag

Re: [PATCH v3 4/8] iommufd: Add iommufd fault object

2024-03-25 Thread Baolu Lu
On 2024/3/23 1:09, Jason Gunthorpe wrote: On Fri, Mar 15, 2024 at 09:46:06AM +0800, Baolu Lu wrote: On 3/9/24 2:03 AM, Jason Gunthorpe wrote: On Mon, Jan 22, 2024 at 03:38:59PM +0800, Lu Baolu wrote: --- /dev/null +++ b/drivers/iommu/iommufd/fault.c @@ -0,0 +1,255 @@ +// SPDX-License-Identifie

Re: [PATCH v3 4/8] iommufd: Add iommufd fault object

2024-03-22 Thread Jason Gunthorpe
On Wed, Mar 20, 2024 at 04:18:05PM +, Shameerali Kolothum Thodi wrote: > > What I have noticed is that, > -read interface works fine and I can receive struct tiommu_hwpt_pgfault data. > -But once Guest handles the page faults and returns the page response, > the write to fault fd never reache

Re: [PATCH v3 4/8] iommufd: Add iommufd fault object

2024-03-22 Thread Jason Gunthorpe
On Fri, Mar 15, 2024 at 09:46:06AM +0800, Baolu Lu wrote: > On 3/9/24 2:03 AM, Jason Gunthorpe wrote: > > On Mon, Jan 22, 2024 at 03:38:59PM +0800, Lu Baolu wrote: > > > --- /dev/null > > > +++ b/drivers/iommu/iommufd/fault.c > > > @@ -0,0 +1,255 @@ > > > +// SPDX-License-Identifier: GPL-2.0-only >

RE: [PATCH v3 4/8] iommufd: Add iommufd fault object

2024-03-20 Thread Shameerali Kolothum Thodi
s.linux.dev; virtualization@lists.linux-foundation.org; linux- > ker...@vger.kernel.org; Lu Baolu > Subject: [PATCH v3 4/8] iommufd: Add iommufd fault object > > An iommufd fault object provides an interface for delivering I/O page > faults to user space. These objects are created a

Re: [PATCH v3 4/8] iommufd: Add iommufd fault object

2024-03-14 Thread Baolu Lu
On 3/9/24 2:03 AM, Jason Gunthorpe wrote: On Mon, Jan 22, 2024 at 03:38:59PM +0800, Lu Baolu wrote: --- /dev/null +++ b/drivers/iommu/iommufd/fault.c @@ -0,0 +1,255 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* Copyright (C) 2024 Intel Corporation + */ +#define pr_fmt(fmt) "iommufd: " fmt + +

Re: [PATCH v3 4/8] iommufd: Add iommufd fault object

2024-03-08 Thread Jason Gunthorpe
On Mon, Jan 22, 2024 at 03:38:59PM +0800, Lu Baolu wrote: > --- /dev/null > +++ b/drivers/iommu/iommufd/fault.c > @@ -0,0 +1,255 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* Copyright (C) 2024 Intel Corporation > + */ > +#define pr_fmt(fmt) "iommufd: " fmt > + > +#include > +#include > +#

[PATCH v3 4/8] iommufd: Add iommufd fault object

2024-01-21 Thread Lu Baolu
An iommufd fault object provides an interface for delivering I/O page faults to user space. These objects are created and destroyed by user space, and they can be associated with or dissociated from hardware page table objects during page table allocation or destruction. User space interacts with