Bug 1248279

Summary: [RFE] Memory hot unplug on powerpc platform - qemu-kvm-rhev
Product: Red Hat Enterprise Linux 7 Reporter: Zhengtong <zhengtli>
Component: qemu-kvm-rhevAssignee: David Gibson <dgibson>
Status: CLOSED ERRATA QA Contact: Min Deng <mdeng>
Severity: high Docs Contact:
Priority: medium    
Version: 7.2CC: bugproxy, dgibson, hannsj_uhl, juzhang, knoel, lvivier, mdeng, michen, mrezanin, mtessun, qzhang, thuth, virt-maint, yuhuang
Target Milestone: rcKeywords: FutureFeature
Target Release: 7.4   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: qemu-2.8 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1299680 (view as bug list) Environment:
Last Closed: 2017-08-01 23:29:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1305398, 1308743, 1308744, 1323417    
Bug Blocks: 1288337, 1299680, 1359843    

Description Zhengtong 2015-07-30 02:58:53 UTC
Description of problem:

Now, on rhel7.2 , there is not implementation for memory hot unplug.
this bug is for tracing the process of implementing.

Comment 2 David Gibson 2015-07-31 02:01:36 UTC
No way this is happening for RHEL7.2.  Moving to RHEL 7.3 as a maybe.

Comment 6 David Gibson 2016-11-18 01:37:52 UTC
The new PAPR interfaces are implemented upstream now, so we should get this in the rebase.

Comment 8 Min Deng 2017-02-07 02:39:50 UTC
QE re-test the bug on the following builds
kernel-3.10.0-556.el7.ppc64le
qemu-kvm-rhev-2.8.0-3.el7.ppc64le
steps,
cli,
1./usr/libexec/qemu-kvm -M pseries-rhel7.4.0 -name avocado-vt-vm1 -sandbox off -machine pseries -nodefaults -vga std -chardev socket,id=qmp_id_qmpmonitor1,path=/tmp/1,server,nowait -mon chardev=qmp_id_qmpmonitor1,mode=control -chardev socket,id=qmp_id_catch_monitor,path=/tmp/2,server,nowait -mon chardev=qmp_id_catch_monitor,mode=control -chardev socket,id=serial_id_serial0,path=/tmp/3,server,nowait -device spapr-vty,reg=0x30000000,chardev=serial_id_serial0 -device pci-ohci,id=usb1,bus=pci.0,addr=03 -device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pci.0,addr=04 -drive id=drive_image1,if=none,snapshot=off,aio=native,cache=none,format=qcow2,file=rhel73-ppc64le-virtio-scsi.qcow2 -device scsi-hd,id=image1,drive=drive_image1 -m 3G,slots=256,maxmem=32G -smp 2,maxcpus=2,cores=1,threads=1,sockets=2 -numa node -device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 -vnc :10 -rtc base=utc,clock=host -boot order=cdn,once=c,menu=off,strict=off -enable-kvm -device usb-kbd,id=input0 -device usb-mouse,id=input1 -device usb-tablet,id=input2 -monitor stdio -device virtio-net-pci,mac=9a:09:0a:0b:0c:0d,id=idLLoQ97,vectors=4,netdev=hostnet0 -netdev tap,id=hostnet0,vhost=on,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown
2.object_add memory-backend-ram,id=mem1,size=1G
3.device_add pc-dimm,id=dimm1,memdev=mem1
4.device_del dimm1
5.object_del mem1
Actual results,
step4,Memory hot unplug not supported for this guest
step5,object 'mem1' is in use, can not be deleted
Expected results,
The memory unplug should be supported so far.

Comment 9 Qunfang Zhang 2017-02-07 03:30:04 UTC
Hi, David

Seems this bug depends on other bugs in the "Depends On" list to be fixed first, do we have plan to fix them all? Including the PAPR Hash Page Table resizing bugs. 

Thanks,
Qunfang

Comment 10 Qunfang Zhang 2017-02-07 05:45:19 UTC
David replied me in irc, clear needinfo.

Comment 11 Qunfang Zhang 2017-02-27 05:58:09 UTC
(In reply to Qunfang Zhang from comment #10)
> David replied me in irc, clear needinfo.

Bug 1323417 is a blocker to verify this bug. The HPT resize isn't needed to do basic testing for memory hot-unplug.

Comment 12 Min Deng 2017-03-17 03:08:35 UTC
QE re-test the bug on the following builds,the basic memory hot-unplug works well.but we had better not verify it now since there's a severe bug need handling in the following new build.
https://bugzilla.redhat.com/show_bug.cgi?id=1432382

Build info
ppc64le
kernel-3.10.0-600.el7.ppc64le (host/guest)
qemu-kvm-rhev-2.8.0-6.el7.ppc64le
SLOF-20160223-6.gitdbbfda4.el7.noarch

1.boot up a guest
  ... -m 1G,slots=32,maxmem=40G -numa node -monitor unix:/tmp/monitor3,server,nowait...
2.object_add memory-backend-ram,id=mem1,size=1G
3.device_add pc-dimm,id=dimm1,memdev=mem1
4.device_del dimm1
5.object_del mem1

Actual results,
The memory could be removed successfully.
Expect results,
The memory could be removed successfully.

Comment 13 Qunfang Zhang 2017-05-11 06:31:39 UTC
The bug mentioned in comment 12 (bug 1432382) was verified pass. So I will set status to VERIFIED. Another round of memory hotplug/unplug functional testing will be conducted later for RHEL7.4. If we hit some issues will create separate bug.

Comment 15 errata-xmlrpc 2017-08-01 23:29:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:2392

Comment 16 errata-xmlrpc 2017-08-02 01:07:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:2392

Comment 17 errata-xmlrpc 2017-08-02 01:59:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:2392

Comment 18 errata-xmlrpc 2017-08-02 02:40:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:2392

Comment 19 errata-xmlrpc 2017-08-02 03:04:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:2392

Comment 20 errata-xmlrpc 2017-08-02 03:24:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:2392