red-parse-qxl: Add a note on red_get_cursor

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
This commit is contained in:
Frediano Ziglio 2020-06-10 07:46:58 +01:00
parent f03d094942
commit 4466230a85

View File

@ -1566,6 +1566,10 @@ static bool red_get_cursor(RedMemSlotInfo *slots, int group_id,
} else {
red->data = (uint8_t*) g_memdup(data, size);
}
// Arrived here we could note that we are not going to use anymore cursor data
// and we could be tempted to release resource back to QXL. Don't do that!
// If machine is migrated we will get cursor data back so we need to hold this
// data for migration
return true;
}