[PATCH v2 1/2] x86/mm: add API for marking only part of a MMIO page read only

2023-05-05 Thread Marek Marczykowski-Górecki
In some cases, only few registers on a page needs to be write-protected. Examples include USB3 console (64 bytes worth of registers) or MSI-X's PBA table (which doesn't need to span the whole table either), although in the latter case the spec forbids placing other registers on the same page. Curre

Re: [PATCH v2 1/2] x86/mm: add API for marking only part of a MMIO page read only

2023-07-07 Thread Marek Marczykowski-Górecki
On Wed, Jul 05, 2023 at 10:23:53AM +0200, Jan Beulich wrote: > On 01.07.2023 00:28, Marek Marczykowski-Górecki wrote: > > On Tue, May 30, 2023 at 01:56:34PM +0200, Jan Beulich wrote: > >> On 05.05.2023 23:25, Marek Marczykowski-Górecki wrote: > >>> --- a/xen/arch/x86/hvm/hvm.c > >>> +++ b/xen/arch/

Re: [PATCH v2 1/2] x86/mm: add API for marking only part of a MMIO page read only

2023-07-10 Thread Jan Beulich
On 07.07.2023 13:02, Marek Marczykowski-Górecki wrote: > On Wed, Jul 05, 2023 at 10:23:53AM +0200, Jan Beulich wrote: >> On 01.07.2023 00:28, Marek Marczykowski-Górecki wrote: >>> On Tue, May 30, 2023 at 01:56:34PM +0200, Jan Beulich wrote: On 05.05.2023 23:25, Marek Marczykowski-Górecki wrote

Re: [PATCH v2 1/2] x86/mm: add API for marking only part of a MMIO page read only

2023-05-17 Thread Jason Andryuk
On Fri, May 5, 2023 at 5:26 PM Marek Marczykowski-Górecki wrote: > > In some cases, only few registers on a page needs to be write-protected. Maybe "In some cases, only part of a page needs to be write-protected"? > Examples include USB3 console (64 bytes worth of registers) or MSI-X's > PBA tab

Re: [PATCH v2 1/2] x86/mm: add API for marking only part of a MMIO page read only

2023-05-30 Thread Jan Beulich
On 05.05.2023 23:25, Marek Marczykowski-Górecki wrote: > In some cases, only few registers on a page needs to be write-protected. > Examples include USB3 console (64 bytes worth of registers) or MSI-X's > PBA table (which doesn't need to span the whole table either), although > in the latter case t

Re: [PATCH v2 1/2] x86/mm: add API for marking only part of a MMIO page read only

2023-06-30 Thread Marek Marczykowski-Górecki
On Tue, May 30, 2023 at 01:56:34PM +0200, Jan Beulich wrote: > On 05.05.2023 23:25, Marek Marczykowski-Górecki wrote: > > In some cases, only few registers on a page needs to be write-protected. > > Examples include USB3 console (64 bytes worth of registers) or MSI-X's > > PBA table (which doesn't

Re: [PATCH v2 1/2] x86/mm: add API for marking only part of a MMIO page read only

2023-07-05 Thread Jan Beulich
On 01.07.2023 00:28, Marek Marczykowski-Górecki wrote: > On Tue, May 30, 2023 at 01:56:34PM +0200, Jan Beulich wrote: >> On 05.05.2023 23:25, Marek Marczykowski-Górecki wrote: >>> In some cases, only few registers on a page needs to be write-protected. >>> Examples include USB3 console (64 bytes wo