1 #include "qemu-common.h"
8 #include "ui/qemu-spice.h"
9 #include "ui/spice-display.h"
14 QXL_MODE_COMPAT, /* spice 0.4.x */
18 typedef struct PCIQXLDevice {
20 SimpleSpiceDisplay ssd;
39 } guest_slots[NUM_MEMSLOTS];
41 struct guest_primary {
42 QXLSurfaceCreate surface;
48 uint8_t *data, *flipped;
52 QXLPHYSICAL cmds[NUM_SURFACES];
56 QXLPHYSICAL guest_cursor;
58 /* thread signaling */
65 uint32_t num_free_res;
66 QXLReleaseInfo *last_release;
67 uint32_t last_release_offset;
85 #define PANIC_ON(x) if ((x)) { \
86 printf("%s: PANIC %s failed\n", __FUNCTION__, #x); \
90 #define dprint(_qxl, _level, _fmt, ...) \
92 if (_qxl->debug >= _level) { \
93 fprintf(stderr, "qxl-%d: ", _qxl->id); \
94 fprintf(stderr, _fmt, ## __VA_ARGS__); \
99 void *qxl_phys2virt(PCIQXLDevice *qxl, QXLPHYSICAL phys, int group_id);
102 void qxl_log_cmd_cursor(PCIQXLDevice *qxl, QXLCursorCmd *cmd, int group_id);
103 void qxl_log_command(PCIQXLDevice *qxl, const char *ring, QXLCommandExt *ext);
106 void qxl_render_resize(PCIQXLDevice *qxl);
107 void qxl_render_update(PCIQXLDevice *qxl);
108 void qxl_render_cursor(PCIQXLDevice *qxl, QXLCommandExt *ext);