Re: [PATCH] xen-mapcache: Avoid entry->lock overflow

2022-01-21 Thread Stefano Stabellini
On Fri, 21 Jan 2022, Ross Lagerwall wrote: > In some cases, a particular mapcache entry may be mapped 256 times > causing the lock field to wrap to 0. For example, this may happen when > using emulated NVME and the guest submits a large scatter-gather write. > At this point, the entry map be remapp

[PATCH] xen-mapcache: Avoid entry->lock overflow

2022-01-21 Thread Ross Lagerwall via
In some cases, a particular mapcache entry may be mapped 256 times causing the lock field to wrap to 0. For example, this may happen when using emulated NVME and the guest submits a large scatter-gather write. At this point, the entry map be remapped causing QEMU to write the wrong data or crash (s