* [Qemu-devel] [PATCH] scripts/dump-guest-memory: Synchronize with guest_phys_blocks_region_add
@ 2018-10-29 13:50 Paolo Bonzini
2018-10-29 13:56 ` Marc-André Lureau
0 siblings, 1 reply; 2+ messages in thread
From: Paolo Bonzini @ 2018-10-29 13:50 UTC (permalink / raw)
To: qemu-devel; +Cc: lersek, Marc-André Lureau
Recent patches have removed ram_device and nonvolatile RAM
from dump-guest-memory's output. Do the same for dumps
that are extracted from a QEMU core file.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
scripts/dump-guest-memory.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/dump-guest-memory.py b/scripts/dump-guest-memory.py
index 5a857cebcf..f04697b1dd 100644
--- a/scripts/dump-guest-memory.py
+++ b/scripts/dump-guest-memory.py
@@ -417,7 +417,9 @@ def get_guest_phys_blocks():
memory_region = flat_range["mr"].dereference()
# we only care about RAM
- if not memory_region["ram"]:
+ if not memory_region["ram"] \
+ or memory_region["ram_device"] \
+ or memory_region["nonvolatile"]:
continue
section_size = int128_get64(flat_range["addr"]["size"])
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] scripts/dump-guest-memory: Synchronize with guest_phys_blocks_region_add
2018-10-29 13:50 [Qemu-devel] [PATCH] scripts/dump-guest-memory: Synchronize with guest_phys_blocks_region_add Paolo Bonzini
@ 2018-10-29 13:56 ` Marc-André Lureau
0 siblings, 0 replies; 2+ messages in thread
From: Marc-André Lureau @ 2018-10-29 13:56 UTC (permalink / raw)
To: Bonzini, Paolo; +Cc: qemu-devel, Laszlo Ersek
On Mon, Oct 29, 2018 at 5:50 PM Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> Recent patches have removed ram_device and nonvolatile RAM
> from dump-guest-memory's output. Do the same for dumps
> that are extracted from a QEMU core file.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> scripts/dump-guest-memory.py | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/dump-guest-memory.py b/scripts/dump-guest-memory.py
> index 5a857cebcf..f04697b1dd 100644
> --- a/scripts/dump-guest-memory.py
> +++ b/scripts/dump-guest-memory.py
> @@ -417,7 +417,9 @@ def get_guest_phys_blocks():
> memory_region = flat_range["mr"].dereference()
>
> # we only care about RAM
> - if not memory_region["ram"]:
> + if not memory_region["ram"] \
> + or memory_region["ram_device"] \
> + or memory_region["nonvolatile"]:
> continue
>
> section_size = int128_get64(flat_range["addr"]["size"])
> --
> 2.17.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-10-29 13:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-29 13:50 [Qemu-devel] [PATCH] scripts/dump-guest-memory: Synchronize with guest_phys_blocks_region_add Paolo Bonzini
2018-10-29 13:56 ` Marc-André Lureau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).