Re: Page alignment & memory regions expectations

2022-08-25 Thread Peter Maydell
On Thu, 25 Aug 2022 at 12:57, David Hildenbrand wrote: > > On 25.08.22 13:47, Peter Maydell wrote: > > On Thu, 25 Aug 2022 at 08:27, David Hildenbrand wrote: > >> On 24.08.22 21:55, Peter Maydell wrote: > >>> Lumps of memory can be any size you like and anywhere in > >>> memory you like. Sometime

Re: Page alignment & memory regions expectations

2022-08-25 Thread David Hildenbrand
On 25.08.22 13:47, Peter Maydell wrote: > On Thu, 25 Aug 2022 at 08:27, David Hildenbrand wrote: >> On 24.08.22 21:55, Peter Maydell wrote: >>> Lumps of memory can be any size you like and anywhere in >>> memory you like. Sometimes we are modelling real hardware >>> that has done something like th

Re: Page alignment & memory regions expectations

2022-08-25 Thread Peter Maydell
On Thu, 25 Aug 2022 at 08:27, David Hildenbrand wrote: > On 24.08.22 21:55, Peter Maydell wrote: > > Lumps of memory can be any size you like and anywhere in > > memory you like. Sometimes we are modelling real hardware > > that has done something like that. Sometimes it's just > > a convenient wa

Re: Page alignment & memory regions expectations

2022-08-25 Thread David Hildenbrand
On 24.08.22 21:55, Peter Maydell wrote: > On Wed, 24 Aug 2022 at 17:43, David Hildenbrand wrote: >> One idea is doing another pass over the list at the end (after possible >> merging of sections) and making sure everything is page-aligned. >> >> Another idea is specifying somehow that that memory

Re: Page alignment & memory regions expectations

2022-08-24 Thread Peter Maydell
On Wed, 24 Aug 2022 at 17:43, David Hildenbrand wrote: > One idea is doing another pass over the list at the end (after possible > merging of sections) and making sure everything is page-aligned. > > Another idea is specifying somehow that that memory region should simply > not be dumped ... > > >

Re: Page alignment & memory regions expectations

2022-08-24 Thread David Hildenbrand
On 24.08.22 14:43, Marc-André Lureau wrote: > Hi, Hi! > > tpm-crb creates a "tpm-crb-cmd" RAM memory region that is not page > aligned. Apparently, this is not a problem for QEMU in general. However, > it crashes kdump'ing in dump.c:get_next_page, as it expects I assume you mean "dumping in kdu