Thanks,
Damien
On 2/23/22 10:07, Damien Hedde wrote:
It allows adding a subregion to a memory region with error handling.
Like memory_region_add_subregion_overlap(), it handles priority as
well. Apart from the error handling, the behavior is the same. It
can be used to do the simple memory_region_add_subregion() (with no
overlap) by setting the priority parameter to 0.
This commit is a preparation to further use of this function in the
context of qapi command which needs error handling support.
Signed-off-by: Damien Hedde <damien.hedde@greensocs.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
---
include/exec/memory.h | 22 ++++++++++++++++++++++
softmmu/memory.c | 23 +++++++++++++++--------
2 files changed, 37 insertions(+), 8 deletions(-)