aboutsummaryrefslogtreecommitdiff
path: root/softmmu/dma-helpers.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-09-05 16:06:21 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-10-06 19:31:54 +0400
commit94d788408d2d5a6474c99b2c9cf06913b9db7c58 (patch)
tree2ca9756252558c1ca0a40cb8b07401117ed398b3 /softmmu/dma-helpers.c
parent08df343874fcddd260021a04ce3c5a34f2c48164 (diff)
dump: fix kdump to work over non-aligned blocks
Rewrite get_next_page() to work over non-aligned blocks. When it encounters non aligned addresses, it will try to fill a page provided by the caller. This solves a kdump crash with "tpm-crb-cmd" RAM memory region, qemu-kvm: ../dump/dump.c:1162: _Bool get_next_page(GuestPhysBlock **, uint64_t *, uint8_t **, DumpState *): Assertion `(block->target_start & ~target_page_mask) == 0' failed. because: guest_phys_block_add_section: target_start=00000000fed40080 target_end=00000000fed41000: added (count: 4) Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2120480 Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'softmmu/dma-helpers.c')
0 files changed, 0 insertions, 0 deletions