[Spice-devel] [PATCH 08/15] worker: group add_memslot

Frediano Ziglio fziglio at redhat.com
Mon Nov 9 05:16:07 PST 2015


From: Marc-André Lureau <marcandre.lureau at gmail.com>

---
 server/red_worker.c | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index 0c1a1b1..f70ee9b 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -8701,24 +8701,6 @@ static void handle_dev_update(void *opaque, void *payload)
                            &msg->qxl_dirty_rects, &msg->num_dirty_rects);
 }
 
-static void dev_add_memslot(RedWorker *worker, QXLDevMemSlot mem_slot)
-{
-    red_memslot_info_add_slot(&worker->mem_slots, mem_slot.slot_group_id, mem_slot.slot_id,
-                              mem_slot.addr_delta, mem_slot.virt_start, mem_slot.virt_end,
-                              mem_slot.generation);
-}
-
-static void handle_dev_add_memslot(void *opaque, void *payload)
-{
-    RedWorker *worker = opaque;
-    RedWorkerMessageAddMemslot *msg = payload;
-    QXLDevMemSlot mem_slot = msg->mem_slot;
-
-    red_memslot_info_add_slot(&worker->mem_slots, mem_slot.slot_group_id, mem_slot.slot_id,
-                              mem_slot.addr_delta, mem_slot.virt_start, mem_slot.virt_end,
-                              mem_slot.generation);
-}
-
 static void handle_dev_del_memslot(void *opaque, void *payload)
 {
     RedWorker *worker = opaque;
@@ -9285,6 +9267,24 @@ static void handle_dev_set_mouse_mode(void *opaque, void *payload)
     cursor_channel_set_mouse_mode(worker->cursor_channel, msg->mode);
 }
 
+static void dev_add_memslot(RedWorker *worker, QXLDevMemSlot mem_slot)
+{
+    red_memslot_info_add_slot(&worker->mem_slots, mem_slot.slot_group_id, mem_slot.slot_id,
+                              mem_slot.addr_delta, mem_slot.virt_start, mem_slot.virt_end,
+                              mem_slot.generation);
+}
+
+static void handle_dev_add_memslot(void *opaque, void *payload)
+{
+    RedWorker *worker = opaque;
+    RedWorkerMessageAddMemslot *msg = payload;
+    QXLDevMemSlot mem_slot = msg->mem_slot;
+
+    red_memslot_info_add_slot(&worker->mem_slots, mem_slot.slot_group_id, mem_slot.slot_id,
+                              mem_slot.addr_delta, mem_slot.virt_start, mem_slot.virt_end,
+                              mem_slot.generation);
+}
+
 static void handle_dev_add_memslot_async(void *opaque, void *payload)
 {
     RedWorkerMessageAddMemslotAsync *msg = payload;
-- 
2.4.3



More information about the Spice-devel mailing list