]> xenbits.xensource.com Git - libvirt.git/commit
conf: cpu: add limit for maxphysaddr
authorJán Tomko <jtomko@redhat.com>
Wed, 1 Mar 2023 10:27:30 +0000 (11:27 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 25 Apr 2023 09:19:37 +0000 (11:19 +0200)
commitd6fbb21210521dca5db806ed38faed26832a3747
treed2531547c6d4a317b79d85df2d73210a5a89e4b3
parent46410c2be8cdcd31a252866e9b5ebe4d75e46c16
conf: cpu: add limit for maxphysaddr

Add a limit attribute to restrict the maximum physical address bits
that would be used for the guest CPU:

   <cpu mode='host-passthrough'>
     <maxphysaddr mode='passthrough' limit='39'/>
   </cpu>

https://gitlab.com/libvirt/libvirt/-/issues/450
https://bugzilla.redhat.com/show_bug.cgi?id=2171860

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
docs/formatdomain.rst
src/conf/cpu_conf.c
src/conf/cpu_conf.h
src/conf/schemas/cputypes.rng
tests/qemuxml2argvdata/cpu-phys-bits-limit.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/cpu-phys-bits-limit.x86_64-latest.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c