Re: [PATCH v2] x86emul: de-duplicate scatters to the same linear address

2021-10-18 Thread Roger Pau Monné
On Mon, Oct 18, 2021 at 02:17:39PM +0200, Jan Beulich wrote: > On 18.10.2021 13:19, Roger Pau Monné wrote: > > On Thu, May 20, 2021 at 03:34:28PM +0200, Jan Beulich wrote: > >> The SDM specifically allows for earlier writes to fully overlapping > >> ranges to be dropped. If a guest did so, hvmemul_

Re: [PATCH v2] x86emul: de-duplicate scatters to the same linear address

2021-10-18 Thread Jan Beulich
On 18.10.2021 13:19, Roger Pau Monné wrote: > On Thu, May 20, 2021 at 03:34:28PM +0200, Jan Beulich wrote: >> The SDM specifically allows for earlier writes to fully overlapping >> ranges to be dropped. If a guest did so, hvmemul_phys_mmio_access() >> would crash it if varying data was written to t

Re: [PATCH v2] x86emul: de-duplicate scatters to the same linear address

2021-10-18 Thread Roger Pau Monné
On Thu, May 20, 2021 at 03:34:28PM +0200, Jan Beulich wrote: > The SDM specifically allows for earlier writes to fully overlapping > ranges to be dropped. If a guest did so, hvmemul_phys_mmio_access() > would crash it if varying data was written to the same address. Detect > overlaps early, as doin

Ping²: [PATCH v2] x86emul: de-duplicate scatters to the same linear address

2021-10-18 Thread Jan Beulich
On 28.06.2021 14:13, Jan Beulich wrote: > On 20.05.2021 15:34, Jan Beulich wrote: >> The SDM specifically allows for earlier writes to fully overlapping >> ranges to be dropped. If a guest did so, hvmemul_phys_mmio_access() >> would crash it if varying data was written to the same address. Detect >

Ping: [PATCH v2] x86emul: de-duplicate scatters to the same linear address

2021-06-28 Thread Jan Beulich
On 20.05.2021 15:34, Jan Beulich wrote: > The SDM specifically allows for earlier writes to fully overlapping > ranges to be dropped. If a guest did so, hvmemul_phys_mmio_access() > would crash it if varying data was written to the same address. Detect > overlaps early, as doing so in hvmemul_{line

[PATCH v2] x86emul: de-duplicate scatters to the same linear address

2021-05-20 Thread Jan Beulich
The SDM specifically allows for earlier writes to fully overlapping ranges to be dropped. If a guest did so, hvmemul_phys_mmio_access() would crash it if varying data was written to the same address. Detect overlaps early, as doing so in hvmemul_{linear,phys}_mmio_access() would be quite a bit more