summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorMichael Roth <mdroth@linux.vnet.ibm.com>2015-07-02 15:46:14 -0500
committerMichael Roth <mdroth@linux.vnet.ibm.com>2015-07-29 21:50:55 -0500
commit8d64975c98d334de4f635afb5ced8b7704908b3b (patch)
treebf48b094420997f7328d0ea0f99b4ac2a002b08a /hw
parent9b4420ad624905860deda56b5901276d695dad9c (diff)
downloadqemu-8d64975c98d334de4f635afb5ced8b7704908b3b.tar.gz
target-ppc: fix hugepage support when using memory-backend-file
Current PPC code relies on -mem-path being used in order for hugepage support to be detected. With the introduction of MemoryBackendFile we can now handle this via: -object memory-file-backend,mem-path=...,id=hugemem0 \ -numa node,id=mem0,memdev=hugemem0 Management tools like libvirt treat the 2 approaches as interchangeable in some cases, which can lead to user-visible regressions even for previously supported guest configurations. Fix these by also iterating through any configured memory backends that may be backed by hugepages. Since the old code assumed hugepages always backed the entirety of guest memory, play it safe an pick the minimum across the max pages sizes for all backends, even ones that aren't backed by hugepages. Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de> (cherry picked from commit 2d103aae876518a91636ad6f4a4d866269c0d953) Conflicts: target-ppc/kvm.c *remove context dependency on header includes not in 2.3.0 Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions