_emul_info.device_serial_number = port + 1;
_emul_info.ecs_port = port + 3;
_emul_info.serial_port = port + 4;
+ _emul_info.spice_port = port + 5;
+}
+
+int get_emul_spice_port(void)
+{
+ return _emul_info.spice_port;
}
void set_emul_ecs_port(int port)
int vm_base_port;
int device_serial_number;
int ecs_port;
+ int spice_port;
char *vm_name;
/* add here */
int serial_port;
int get_device_serial_number(void);
int get_emul_ecs_port(void);
int get_emul_serial_port(void);
+int get_emul_spice_port(void);
int get_emulator_condition(void);
short get_emul_rotation(void);
#include "hw/hw.h"
#include "ui/spice-display.h"
+#ifdef CONFIG_MARU
+extern int get_emul_spice_port(void);
+#endif
+
/* core bits */
static SpiceServer *spice_server;
if (!opts) {
return;
}
+
+#ifdef CONFIG_MARU
+ port = get_emul_spice_port();
+#else
port = qemu_opt_get_number(opts, "port", 0);
+#endif
tls_port = qemu_opt_get_number(opts, "tls-port", 0);
if (!port && !tls_port) {
error_report("neither port nor tls-port specified for spice");