]> xenbits.xensource.com Git - qemu-xen.git/commit
openpic_kvm: drop address_space_to_flatview call
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 5 Mar 2018 08:18:26 +0000 (09:18 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 21 Jun 2018 01:44:59 +0000 (20:44 -0500)
commit8e8b73992c18f7a4b9aba80eca791b9c1c0267d8
tree20a850f523f51fe4bb9d7191e80f2bd539b9dafb
parent499211829d4bb85aab018dfe2c42d9e9881c3690
openpic_kvm: drop address_space_to_flatview call

The MemoryListener is registered on address_space_memory, there is
not much to assert.  This currently works because the callback
is invoked only once when the listener is registered, but section->fv
is the _new_ FlatView, not the old one on later calls and that
would break.

This confines address_space_to_flatview to exec.c and memory.c.

Acked-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 80d2b933f9fe3e53d4f76a45a1bc1a0175669468)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/intc/openpic_kvm.c