]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/spapr.c
spapr: Enable use of huge pages
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 10 Jul 2014 15:03:42 +0000 (01:03 +1000)
committerAlexander Graf <agraf@suse.de>
Tue, 15 Jul 2014 14:11:59 +0000 (16:11 +0200)
commitf92f5da108225fc7dcc5f357fdc473083890fe3f
tree9e012b90645a7c936719c921f299e99ba3eca010
parent658fa66b8192e4b755880609f2845aef9797d048
spapr: Enable use of huge pages

0b183fc87 "memory: move mem_path handling to
memory_region_allocate_system_memory" disabled -mempath use for all
machines that do not use memory_region_allocate_system_memory() to
register RAM. Since SPAPR uses memory_region_init_ram(), the huge pages
support was disabled for it.

This replaces memory_region_init_ram()+vmstate_register_ram_global() with
memory_region_allocate_system_memory() to get huge pages back.

This changes RAM size from (ram_limit - rma_alloc_size) to ram_limit as
the previous patch moved RMA memory region allocation after RAM allocation
and therefore this change does not have immediate effect but simplifies
the code.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr.c