From 9d47ca4f1247baa76d8810731e30005fb0bf50a4 Mon Sep 17 00:00:00 2001 From: Netboy3 <1472804+netboy3@users.noreply.github.com> Date: Mon, 20 Dec 2021 22:59:51 -0500 Subject: [PATCH] [doc] module: Modify libvirt commandline block to use JSON Latest versions of QEMU are running out of PCIe mapping through libvirt as the commandline device is mapping ivshmem before other root devices. Use JSON style configuration in the commandline block. JSON arguments are loaded after all regular ones and will guarantee to get loaded after all other libvirt mapped PCIe devices. --- doc/module.rst | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/doc/module.rst b/doc/module.rst index cb415411..b5108b5e 100644 --- a/doc/module.rst +++ b/doc/module.rst @@ -172,15 +172,22 @@ Create the following XML block in your domain: - + - + .. note:: - Remember to add ``xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'`` - to the ```` tag. + - Remember to add ``xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'`` + to the ```` tag. + + - The ``"size"`` tag represents the size of the shared memory device in bytes. + Once you determine the proper size of the device as per + :ref:`Determining Memory `, use the figure you got + to calculate the size in bytes: + + ``size_in_MB x 1024 x 1024 = size_in_bytes`` Running libvirt this way violates AppArmor and cgroups policies, which will block the VM from running. These policies must be amended to allow the VM