Re: [PATCH 1/3] memory: add a sparse memory device

2021-03-11 Thread Alexander Bulekov
On 210311 1525, Philippe Mathieu-Daudé wrote: > On 3/11/21 6:36 AM, Alexander Bulekov wrote: > > For testing, it can be useful to simulate an enormous amount of memory > > (e.g. 2^64 RAM). This adds an MMIO device that acts as sparse memory. > > When something writes a nonzero value to a sparse-mem

Re: [PATCH 1/3] memory: add a sparse memory device

2021-03-11 Thread Philippe Mathieu-Daudé
On 3/11/21 6:36 AM, Alexander Bulekov wrote: > For testing, it can be useful to simulate an enormous amount of memory > (e.g. 2^64 RAM). This adds an MMIO device that acts as sparse memory. > When something writes a nonzero value to a sparse-mem address, we > allocate a block of memory. This block

[PATCH 1/3] memory: add a sparse memory device

2021-03-10 Thread Alexander Bulekov
For testing, it can be useful to simulate an enormous amount of memory (e.g. 2^64 RAM). This adds an MMIO device that acts as sparse memory. When something writes a nonzero value to a sparse-mem address, we allocate a block of memory. This block is kept around, until all of the bytes within the blo