mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
memory_mapping: Improve qemu_get_guest_memory_mapping() error reporting
Pass any Error out into dump_init() and have it actually stop on errors. Whether it is unsupported on a certain CPU can be checked by looking for a NULL CPUClass::get_memory_mapping field. Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com> [AF: Reverted changes to CPU loops] Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
1b3509ca5b
commit
11ed09cf07
3 changed files with 11 additions and 14 deletions
|
@ -45,13 +45,7 @@ void memory_mapping_list_free(MemoryMappingList *list);
|
|||
|
||||
void memory_mapping_list_init(MemoryMappingList *list);
|
||||
|
||||
/*
|
||||
* Return value:
|
||||
* 0: success
|
||||
* -1: failed
|
||||
* -2: unsupported
|
||||
*/
|
||||
int qemu_get_guest_memory_mapping(MemoryMappingList *list);
|
||||
void qemu_get_guest_memory_mapping(MemoryMappingList *list, Error **errp);
|
||||
|
||||
/* get guest's memory mapping without do paging(virtual address is 0). */
|
||||
void qemu_get_guest_simple_memory_mapping(MemoryMappingList *list);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue