From 72e22d2fe17b85e56b4f0c437c61c6e2de97b308 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Wed, 8 Feb 2012 15:05:50 +0200 Subject: memory: switch memory listeners to a QTAILQ This allows reverse iteration, which in turns allows consistent ordering among multiple listeners: l1->add l2->add l2->del l1->del Signed-off-by: Avi Kivity Reviewed-by: Richard Henderson --- hw/vhost.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw') diff --git a/hw/vhost.c b/hw/vhost.c index 5ece659f4a..47371454f4 100644 --- a/hw/vhost.c +++ b/hw/vhost.c @@ -751,6 +751,7 @@ int vhost_dev_init(struct vhost_dev *hdev, int devfd, bool force) .log_sync = vhost_log_sync, .log_global_start = vhost_log_global_start, .log_global_stop = vhost_log_global_stop, + .priority = 10 }; hdev->mem = g_malloc0(offsetof(struct vhost_memory, regions)); hdev->n_mem_sections = 0; -- cgit v1.2.3