openpic_kvm: drop address_space_to_flatview call
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 5 Mar 2018 08:18:26 +0000 (09:18 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 Mar 2018 13:01:27 +0000 (14:01 +0100)
commit80d2b933f9fe3e53d4f76a45a1bc1a0175669468
tree5f6ac8fa6bf593b82182c38e9c7c8ba87f0a43c0
parent8b2ec54ff39c319dcb12e430d9e69d081395b964
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>
hw/intc/openpic_kvm.c