]> xenbits.xensource.com Git - libvirt.git/commit
conf: Add support for specifying CPU max physical address size
authorDario Faggioli <dfaggioli@suse.com>
Fri, 29 Jul 2022 19:34:33 +0000 (13:34 -0600)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 4 Aug 2022 07:04:07 +0000 (09:04 +0200)
commite6c29f09e5b75d7a8d79ae670407060446282c78
tree91a524d3aab9eaa432299bbb29aff00b31eed135
parent67b03faaf1042e554cb9d71c5dd76421efe61ddd
conf: Add support for specifying CPU max physical address size

This patch introduces the

    <maxphysaddr mode='passthrough'/>
    <maxphysaddr mode='emulate' bits='42'/>

sub element of /domain/cpu, which allows specifying the guest virtual CPU
address size. This can be useful if the guest needs to have a large amount
of memory.

If mode='passthrough', the virtual CPU will have the same number of address
bits as the host. If mode='emulate', the mandatory bits attribute specifies
the number of address bits.

Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/formatdomain.rst
src/conf/cpu_conf.c
src/conf/cpu_conf.h
src/conf/schemas/cputypes.rng
src/libvirt_private.syms
src/qemu/qemu_validate.c
tests/genericxml2xmlindata/cpu-phys-bits-emulate.xml [new file with mode: 0644]
tests/genericxml2xmlindata/cpu-phys-bits-passthrough.xml [new file with mode: 0644]
tests/genericxml2xmltest.c