diff options
author | Avi Kivity <avi@redhat.com> | 2011-12-18 14:06:05 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-12-20 14:14:07 +0200 |
commit | 04097f7c5957273c578f72b9bd603ba6b1d69e33 (patch) | |
tree | 51134fa9b1aee6fb9ef83392b33afafa80e0f325 /hw/vhost.h | |
parent | a01672d3968cf91208666d371784110bfde9d4f8 (diff) | |
download | qemu-04097f7c5957273c578f72b9bd603ba6b1d69e33.zip |
vhost: convert to MemoryListener API
Drop the use of cpu_register_phys_memory_client() in favour of the new
MemoryListener API. The new API simplifies the caller, since there is no
need to deal with splitting and merging slots; however this is not exploited
in this patch.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/vhost.h')
-rw-r--r-- | hw/vhost.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/vhost.h b/hw/vhost.h index c9452f0732..d1824ec9d9 100644 --- a/hw/vhost.h +++ b/hw/vhost.h @@ -3,6 +3,7 @@ #include "hw/hw.h" #include "hw/virtio.h" +#include "memory.h" /* Generic structures common for any vhost based device. */ struct vhost_virtqueue { @@ -26,7 +27,7 @@ typedef unsigned long vhost_log_chunk_t; struct vhost_memory; struct vhost_dev { - CPUPhysMemoryClient client; + MemoryListener memory_listener; int control; struct vhost_memory *mem; struct vhost_virtqueue *vqs; |