mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
spice: add unix address support
Teach qemu to set up a Spice server with a UNIX socket using the following arguments -spice unix,addr=path. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
699eae17b8
commit
fe4831b1e7
2 changed files with 11 additions and 1 deletions
|
@ -436,6 +436,11 @@ static QemuOptsList qemu_spice_opts = {
|
|||
},{
|
||||
.name = "ipv6",
|
||||
.type = QEMU_OPT_BOOL,
|
||||
#ifdef SPICE_ADDR_FLAG_UNIX_ONLY
|
||||
},{
|
||||
.name = "unix",
|
||||
.type = QEMU_OPT_BOOL,
|
||||
#endif
|
||||
},{
|
||||
.name = "password",
|
||||
.type = QEMU_OPT_STRING,
|
||||
|
@ -708,6 +713,10 @@ void qemu_spice_init(void)
|
|||
addr_flags |= SPICE_ADDR_FLAG_IPV4_ONLY;
|
||||
} else if (qemu_opt_get_bool(opts, "ipv6", 0)) {
|
||||
addr_flags |= SPICE_ADDR_FLAG_IPV6_ONLY;
|
||||
#ifdef SPICE_ADDR_FLAG_UNIX_ONLY
|
||||
} else if (qemu_opt_get_bool(opts, "unix", 0)) {
|
||||
addr_flags |= SPICE_ADDR_FLAG_UNIX_ONLY;
|
||||
#endif
|
||||
}
|
||||
|
||||
spice_server = spice_server_new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue