On Thu, 29 May 2014 17:28:34 +0200
Paolo Bonzini pbonz...@redhat.com wrote:
Il 29/05/2014 16:22, Peter Crosthwaite ha scritto:
+bool memory_region_is_mapped(MemoryRegion *mr)
+{
Is it not enough to just return mr-parent? Memory mapping assertion
will happen if you try and map the
On Tue, May 27, 2014 at 11:01 PM, Igor Mammedov imamm...@redhat.com wrote:
which allows to check if MemoryRegion is already mapped.
Signed-off-by: Igor Mammedov imamm...@redhat.com
---
include/exec/memory.h |8
memory.c | 15 ++-
2 files changed, 22
Il 29/05/2014 16:22, Peter Crosthwaite ha scritto:
+bool memory_region_is_mapped(MemoryRegion *mr)
+{
Is it not enough to just return mr-parent? Memory mapping assertion
will happen if you try and map the same twice, even if one of the
mappings is not contained within an AddressSpace.
which allows to check if MemoryRegion is already mapped.
Signed-off-by: Igor Mammedov imamm...@redhat.com
---
include/exec/memory.h |8
memory.c | 15 ++-
2 files changed, 22 insertions(+), 1 deletions(-)
diff --git a/include/exec/memory.h