]> git.ipfire.org Git - thirdparty/qemu.git/commit
memory: Switch memory from using AddressSpace to FlatView
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 21 Sep 2017 08:50:58 +0000 (18:50 +1000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 5 Dec 2017 04:03:46 +0000 (22:03 -0600)
commitf7774e329bb7c2a4ed9a0db3e74dddf19cbe873f
tree22e8afe07d6aff205888e1a0021804f3d4956351
parent3568e119400aeffa98e32187c40d2802b7d4f574
memory: Switch memory from using AddressSpace to FlatView

FlatView's will be shared between AddressSpace's and subpage_t
and MemoryRegionSection cannot store AS anymore, hence this change.

In particular, for:

 typedef struct subpage_t {
     MemoryRegion iomem;
-    AddressSpace *as;
+    FlatView *fv;
     hwaddr base;
     uint16_t sub_section[];
 } subpage_t;

  struct MemoryRegionSection {
     MemoryRegion *mr;
-    AddressSpace *address_space;
+    FlatView *fv;
     hwaddr offset_within_region;
     Int128 size;
     hwaddr offset_within_address_space;
     bool readonly;
 };

This should cause no behavioural change.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Message-Id: <20170921085110.25598-7-aik@ozlabs.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 166206845f7fd75e720e6feea0bb01957c8da07f)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
exec.c
hw/intc/openpic_kvm.c
include/exec/memory-internal.h
include/exec/memory.h
memory.c