docs: Document that libxl hooks are also given full domain XML

Our hooks.rst document existence of libxl hook scripts, but
mentions only qemu and lxc as receivers of full domain XML. But
since their introduction in v2.2.0-rc1~201 they are also given
full domain XML. Fix our wording.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Michal Privoznik 2023-08-29 16:13:26 +02:00
parent a4935d01cf
commit 4dffe53c5c

View File

@ -89,7 +89,7 @@ Script arguments
The hook scripts are called with specific command line arguments, depending upon
the script, and the operation being performed.
The guest hook scripts, qemu and lxc, are also given the **full** XML
The guest hook scripts, qemu, lxc and libxl are also given the **full** XML
description for the domain on their stdin. This includes items such the UUID of
the domain and its storage information, and is intended to provide all the
libvirt information the script needs.
@ -126,8 +126,8 @@ followed with the full XML description of the port:
</hookData>
Please note that this approach is different from other cases such as ``daemon``,
``qemu`` or ``lxc`` hook scripts, because two XMLs may be passed here, while in
the other cases only a single XML is passed.
``qemu``, ``lxc`` or ``libxl`` hook scripts, because two XMLs may be passed
here, while in the other cases only a single XML is passed.
The command line arguments take this approach: