RE: [EXT] Re: vfio-pci: protect remap_pfn_range() from simultaneous calls

2021-03-07 Thread Bharat Bhushan
> >> Cc: alex.william...@redhat.com; ankur.a.ar...@oracle.com; linux- > >> ker...@vger.kernel.org; Sunil Kovvuri Goutham ; > >> termi...@gmail.com > >> Subject: [EXT] Re: vfio-pci: protect remap_pfn_range() from > >> simultaneous calls > >> > >> Ext

Re: [EXT] Re: vfio-pci: protect remap_pfn_range() from simultaneous calls

2021-03-07 Thread Ankur Arora
Subject: [EXT] Re: vfio-pci: protect remap_pfn_range() from simultaneous calls External Email -- Hi Bharat, Can you test the patch below to see if it works for you? Sorry for late reply, I actually missed this email

RE: [EXT] Re: vfio-pci: protect remap_pfn_range() from simultaneous calls

2021-03-02 Thread Bharat Bhushan
ject: [EXT] Re: vfio-pci: protect remap_pfn_range() from simultaneous calls > > External Email > > -- > Hi Bharat, > > Can you test the patch below to see if it works for you? Sorry for late reply, I actually mis

Re: vfio-pci: protect remap_pfn_range() from simultaneous calls

2021-02-25 Thread Ankur Arora
Hi Bharat, Can you test the patch below to see if it works for you? Also could you add some more detail to your earlier description of the bug? In particular, AFAICS you are using ODP (-DPDK?) with multiple threads touching this region. From your stack, it looks like the fault was user-space gene

Re: vfio-pci: protect remap_pfn_range() from simultaneous calls

2021-01-20 Thread Ankur Arora
Hi Bharat, So I don't have a final patch for you, but can you test the one below the scissors mark? (The patch is correct, but I'm not happy that it introduces a new lock.) Ankur -- >8 -- Date: Thu, 21 Jan 2021 00:04:36 + Subject: vfio-pci: protect io_remap_pfn_range() from simultaneous cal

RE: [EXT] Re: vfio-pci: protect remap_pfn_range() from simultaneous calls

2021-01-19 Thread Bharat Bhushan
Hi Ankur, > -Original Message- > From: Ankur Arora > Sent: Wednesday, January 6, 2021 11:44 PM > To: Bharat Bhushan ; alex.william...@redhat.com > Cc: linux-kernel@vger.kernel.org; Sunil Kovvuri Goutham > > Subject: [EXT] Re: vfio-pci: protect remap_pfn_range() fr

RE: [EXT] Re: vfio-pci: protect remap_pfn_range() from simultaneous calls

2021-01-06 Thread Bharat Bhushan
> -Original Message- > From: Ankur Arora > Sent: Wednesday, January 6, 2021 11:44 PM > To: Bharat Bhushan ; alex.william...@redhat.com > Cc: linux-kernel@vger.kernel.org; Sunil Kovvuri Goutham > > Subject: [EXT] Re: vfio-pci: protect remap_pfn_range() fr

Re: vfio-pci: protect remap_pfn_range() from simultaneous calls

2021-01-06 Thread Ankur Arora
On 2021-01-06 8:17 a.m., Bharat Bhushan wrote: Hi Ankur, We are observing below BUG_ON() with latest kernel [10011.321645] [ cut here ] [10011.322262] kernel BUG at mm/memory.c:1816! [10011.323793] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP [10011.326