]> git.proxmox.com Git - qemu.git/commit - exec.c
memory: support stateless memory listeners
authorAvi Kivity <avi@redhat.com>
Wed, 8 Feb 2012 19:36:02 +0000 (21:36 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 29 Feb 2012 11:44:42 +0000 (13:44 +0200)
commit50c1e1491e1981ecba14a477897681d8d0602500
treeb978d61c3b39d9ed2f811df18f13fad93097d372
parent4855d41a61301a04e54c074f1139040e4cb4dd00
memory: support stateless memory listeners

Current memory listeners are incremental; that is, they are expected to
maintain their own state, and receive callbacks for changes to that state.

This patch adds support for stateless listeners; these work by receiving
a ->begin() callback (which tells them that new state is coming), a
sequence of ->region_add() and ->region_nop() callbacks, and then a
->commit() callback which signifies the end of the new state.  They should
ignore ->region_del() callbacks.

Signed-off-by: Avi Kivity <avi@redhat.com>
exec.c
hw/vhost.c
kvm-all.c
memory.c
memory.h
xen-all.c