diff options
author | Andreas Färber <afaerber@suse.de> | 2013-05-29 21:54:03 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-06-11 19:38:13 +0200 |
commit | 11ed09cf0753c1288a97f00138fc4534135442bb (patch) | |
tree | 0e48a592cc26a93ded6af16a8ca95cdf57d3a418 /include | |
parent | 1b3509ca5bbd8e7d2be92ac42196a3ee2e31cb03 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/memory_mapping.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/sysemu/memory_mapping.h b/include/sysemu/memory_mapping.h index c47e6ee1fd..6dfb68ddcd 100644 --- a/include/sysemu/memory_mapping.h +++ b/include/sysemu/memory_mapping.h @@ -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); |