Re: [PATCH v2 00/11] memory: Forbid mapping AddressSpace root MemoryRegion

2021-04-20 Thread Peter Xu
On Sat, Apr 17, 2021 at 12:30:17PM +0200, Philippe Mathieu-Daudé wrote: > AddressSpace are physical address view and shouldn't be using > non-zero base address. The correct way to map a MR used as AS > root is to use a MR alias. Today when I rethink this, I figured another way (maybe easier?) to f

Re: [PATCH v2 00/11] memory: Forbid mapping AddressSpace root MemoryRegion

2021-04-19 Thread Philippe Mathieu-Daudé
On 4/19/21 9:17 AM, Cédric Le Goater wrote: > On 4/17/21 12:30 PM, Philippe Mathieu-Daudé wrote: >> This series is the result of a long thread with Peter: >> https://www.mail-archive.com/qemu-devel@nongnu.org/msg788366.html >> and IRC chats... >> >> AddressSpace are physical address view and should

Re: [PATCH v2 00/11] memory: Forbid mapping AddressSpace root MemoryRegion

2021-04-19 Thread Cédric Le Goater
Hello, On 4/17/21 12:30 PM, Philippe Mathieu-Daudé wrote: > Hi, > > This series is the result of a long thread with Peter: > https://www.mail-archive.com/qemu-devel@nongnu.org/msg788366.html > and IRC chats... > > AddressSpace are physical address view and shouldn't be using > non-zero base addr

[PATCH v2 00/11] memory: Forbid mapping AddressSpace root MemoryRegion

2021-04-17 Thread Philippe Mathieu-Daudé
Hi, This series is the result of a long thread with Peter: https://www.mail-archive.com/qemu-devel@nongnu.org/msg788366.html and IRC chats... AddressSpace are physical address view and shouldn't be using non-zero base address. The correct way to map a MR used as AS root is to use a MR alias. Fix