[PATCH] qemu: Relax validation for mem->access if guest has no NUMA

Ján Tomko jtomko at redhat.com
Mon Dec 14 12:21:46 UTC 2020


On a Monday in 2020, Michal Privoznik wrote:
>In v6.8.0-27-g88957116c9 and friends I've switched the way the
>default RAM is specified for QEMU (from plain -m to
>memory-backend-*). This means, that even if a guest doesn't have
>any NUMA nodes configured we can use memory-backend-* attributes
>to translate user config requests. For instance, we can allow
>memory to be shared (<access mode='shared'/> under
><memoryBacking/>). But what my original commits are missing is
>allowing such configuration in our validator.
>
>Fixes: 88957116c9d3cb4705380c3702c9d4315fb500bb
>Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1839034#c12
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> src/qemu/qemu_validate.c                      | 10 +++--
> .../hugepages-memaccess3.x86_64-latest.args   | 39 +++++++++++++++++++
> tests/qemuxml2argvtest.c                      |  1 +
> 3 files changed, 47 insertions(+), 3 deletions(-)
> create mode 100644 tests/qemuxml2argvdata/hugepages-memaccess3.x86_64-latest.args
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20201214/c7309c38/attachment-0001.sig>


More information about the libvir-list mailing list