mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 20:01:16 +00:00
ef79fb5b5f
Once it's plugged in, the <listen> element will be an optional replacement for the "listen" attribute that graphics elements already have. If the <listen> element is type='address', it will have an attribute called 'address' which will contain an IP address or dns name that the guest's display server should listen on. If, however, type='network', the <listen> element should have an attribute called 'network' that will be set to the name of a network configuration to get the IP address from. * docs/schemas/domain.rng: updated to allow the <listen> element * docs/formatdomain.html.in: document the <listen> element and its attributes. * src/conf/domain_conf.[hc]: 1) The domain parser, formatter, and data structure are modified to support 0 or more <listen> subelements to each <graphics> element. The old style "legacy" listen attribute is also still accepted, and will be stored internally just as if it were a separate <listen> element. On output (i.e. format), the address attribute of the first <listen> element of type 'address' will be duplicated in the legacy "listen" attribute of the <graphic> element. 2) The "listenAddr" attribute has been removed from the unions in virDomainGRaphicsDef for graphics types vnc, rdp, and spice. This attribute is now in the <listen> subelement (aka virDomainGraphicsListenDef) 3) Helper functions were written to provide simple access (both Get and Set) to the listen elements and their attributes. * src/libvirt_private.syms: export the listen helper functions * src/qemu/qemu_command.c, src/qemu/qemu_hotplug.c, src/qemu/qemu_migration.c, src/vbox/vbox_tmpl.c, src/vmx/vmx.c, src/xenxs/xen_sxpr.c, src/xenxs/xen_xm.c Modify all these files to use the listen helper functions rather than directly referencing the (now missing) listenAddr attribute. There can be multiple <listen> elements to a single <graphics>, but the drivers all currently only support one, so all replacements of direct access with a helper function indicate index "0". * tests/* - only 3 of these are new files added explicitly to test the new <listen> element. All the others have been modified to reflect the fact that any legacy "listen" attributes passed in to the domain parse will be saved in a <listen> element (i.e. one of the virDomainGraphicsListenDefs), and during the domain format function, both the <listen> element as well as the legacy attributes will be output. |
||
---|---|---|
.. | ||
sexpr2xml-boot-grub.sexpr | ||
sexpr2xml-boot-grub.xml | ||
sexpr2xml-bridge-ipaddr.sexpr | ||
sexpr2xml-bridge-ipaddr.xml | ||
sexpr2xml-curmem.sexpr | ||
sexpr2xml-curmem.xml | ||
sexpr2xml-disk-block-shareable.sexpr | ||
sexpr2xml-disk-block-shareable.xml | ||
sexpr2xml-disk-block.sexpr | ||
sexpr2xml-disk-block.xml | ||
sexpr2xml-disk-drv-blktap2-raw.sexpr | ||
sexpr2xml-disk-drv-blktap2-raw.xml | ||
sexpr2xml-disk-drv-blktap-qcow.sexpr | ||
sexpr2xml-disk-drv-blktap-qcow.xml | ||
sexpr2xml-disk-drv-blktap-raw.sexpr | ||
sexpr2xml-disk-drv-blktap-raw.xml | ||
sexpr2xml-disk-file.sexpr | ||
sexpr2xml-disk-file.xml | ||
sexpr2xml-fv-autoport.sexpr | ||
sexpr2xml-fv-autoport.xml | ||
sexpr2xml-fv-force-hpet.sexpr | ||
sexpr2xml-fv-force-hpet.xml | ||
sexpr2xml-fv-force-nohpet.sexpr | ||
sexpr2xml-fv-force-nohpet.xml | ||
sexpr2xml-fv-kernel.sexpr | ||
sexpr2xml-fv-kernel.xml | ||
sexpr2xml-fv-legacy-vfb.sexpr | ||
sexpr2xml-fv-legacy-vfb.xml | ||
sexpr2xml-fv-localtime.sexpr | ||
sexpr2xml-fv-localtime.xml | ||
sexpr2xml-fv-net-ioemu.sexpr | ||
sexpr2xml-fv-net-ioemu.xml | ||
sexpr2xml-fv-net-netfront.sexpr | ||
sexpr2xml-fv-net-netfront.xml | ||
sexpr2xml-fv-parallel-tcp.sexpr | ||
sexpr2xml-fv-parallel-tcp.xml | ||
sexpr2xml-fv-serial-dev-2-ports.sexpr | ||
sexpr2xml-fv-serial-dev-2-ports.xml | ||
sexpr2xml-fv-serial-dev-2nd-port.sexpr | ||
sexpr2xml-fv-serial-dev-2nd-port.xml | ||
sexpr2xml-fv-serial-file.sexpr | ||
sexpr2xml-fv-serial-file.xml | ||
sexpr2xml-fv-serial-null.sexpr | ||
sexpr2xml-fv-serial-null.xml | ||
sexpr2xml-fv-serial-pipe.sexpr | ||
sexpr2xml-fv-serial-pipe.xml | ||
sexpr2xml-fv-serial-pty.sexpr | ||
sexpr2xml-fv-serial-pty.xml | ||
sexpr2xml-fv-serial-stdio.sexpr | ||
sexpr2xml-fv-serial-stdio.xml | ||
sexpr2xml-fv-serial-tcp-telnet.sexpr | ||
sexpr2xml-fv-serial-tcp-telnet.xml | ||
sexpr2xml-fv-serial-tcp.sexpr | ||
sexpr2xml-fv-serial-tcp.xml | ||
sexpr2xml-fv-serial-udp.sexpr | ||
sexpr2xml-fv-serial-udp.xml | ||
sexpr2xml-fv-serial-unix.sexpr | ||
sexpr2xml-fv-serial-unix.xml | ||
sexpr2xml-fv-sound-all.sexpr | ||
sexpr2xml-fv-sound-all.xml | ||
sexpr2xml-fv-sound.sexpr | ||
sexpr2xml-fv-sound.xml | ||
sexpr2xml-fv-usbmouse.sexpr | ||
sexpr2xml-fv-usbmouse.xml | ||
sexpr2xml-fv-usbtablet.sexpr | ||
sexpr2xml-fv-usbtablet.xml | ||
sexpr2xml-fv-utc.sexpr | ||
sexpr2xml-fv-utc.xml | ||
sexpr2xml-fv-v2.sexpr | ||
sexpr2xml-fv-v2.xml | ||
sexpr2xml-fv.sexpr | ||
sexpr2xml-fv.xml | ||
sexpr2xml-net-bridged.sexpr | ||
sexpr2xml-net-bridged.xml | ||
sexpr2xml-net-e1000.sexpr | ||
sexpr2xml-net-e1000.xml | ||
sexpr2xml-net-routed.sexpr | ||
sexpr2xml-net-routed.xml | ||
sexpr2xml-no-source-cdrom.sexpr | ||
sexpr2xml-no-source-cdrom.xml | ||
sexpr2xml-pci-devs.sexpr | ||
sexpr2xml-pci-devs.xml | ||
sexpr2xml-pv-bootloader-cmdline.sexpr | ||
sexpr2xml-pv-bootloader-cmdline.xml | ||
sexpr2xml-pv-bootloader.sexpr | ||
sexpr2xml-pv-bootloader.xml | ||
sexpr2xml-pv-localtime.sexpr | ||
sexpr2xml-pv-localtime.xml | ||
sexpr2xml-pv-vcpus.sexpr | ||
sexpr2xml-pv-vcpus.xml | ||
sexpr2xml-pv-vfb-new-vncdisplay.sexpr | ||
sexpr2xml-pv-vfb-new-vncdisplay.xml | ||
sexpr2xml-pv-vfb-new.sexpr | ||
sexpr2xml-pv-vfb-new.xml | ||
sexpr2xml-pv-vfb-orig.sexpr | ||
sexpr2xml-pv-vfb-orig.xml | ||
sexpr2xml-pv-vfb-type-crash.sexpr | ||
sexpr2xml-pv-vfb-type-crash.xml | ||
sexpr2xml-pv.sexpr | ||
sexpr2xml-pv.xml |