Bug 1308746

Summary: [RFE] PAPR Hash Page Table resizing (RHEV)
Product: Red Hat Enterprise Virtualization Manager Reporter: Karen Noel <knoel>
Component: RFEsAssignee: Scott Herold <sherold>
Status: CLOSED DUPLICATE QA Contact: Gil Klein <gklein>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0.0CC: dgibson, gklein, hannsj_uhl, libvirt-maint, lsurette, mazhang, mdeng, michen, qzhang, rbalakri, virt-bugs, virt-maint, xuhan, xuma, yeylon, ykaul, zhengtli
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: ppc64le   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1308743 Environment:
Last Closed: 2016-02-15 22:40:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1305398, 1308743    
Bug Blocks:    

Description Karen Noel 2016-02-15 22:37:03 UTC
RHEV should determine if the guest supports HPT resizing, then increase the default max size of memory.

+++ This bug was initially created as a clone of Bug #1308743 +++

In case libvirt requires changes to support HPT resizing. If no changes required, set this BZ to TestOnly.

+++ This bug was initially created as a clone of Bug #1305398 +++

Description of problem:

Allow the hash page table (HPT) of PAPR guests to be resized at runtime.

This is important for practical memory hotplug.  Without this the HPT needs to be sized for the guest's maximum possible memory - since RHEV wants to set that to 4T, this can result in a much bigger than necessary HPT which wastes host resources and can cause allocation failures.  With HV KVM the HPT is unswappable, contiguous host memory.

This BZ covers the qemu parts of this including TCG and PR KVM implementation of the necessary hypercalls, feature negotation with the guest and enabling the necessary KVM host pieces.

--- Additional comment from David Gibson on 2016-02-07 19:52:00 EST ---

An RFC has been posted upstream:

https://lists.gnu.org/archive/html/qemu-devel/2016-01/msg05852.html

Comment 1 Karen Noel 2016-02-15 22:40:31 UTC

*** This bug has been marked as a duplicate of bug 1308744 ***