OSDN Git Service

arm: postpone device listener unregister
authorPeter Xu <peterx@redhat.com>
Mon, 22 Jan 2018 06:02:42 +0000 (14:02 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 7 Feb 2018 13:09:24 +0000 (14:09 +0100)
commit0bbe435410c37c230c6e7bd926931a13810816e2
tree25341d284249ba520b32e00b7fdb36341d60a61e
parent0750b060216de69ed1f14bc08181bf4ad27fc622
arm: postpone device listener unregister

It's a preparation for follow-up patch to call region_del() in
memory_listener_unregister(), otherwise all device addr attached with
kvm_devices_head will be reset before calling kvm_arm_set_device_addr.

Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180122060244.29368-3-peterx@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/arm/kvm.c