RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1901838 - Failed to hotunplug pc-dimm device
Summary: Failed to hotunplug pc-dimm device
Keywords:
Status: CLOSED DUPLICATE of bug 1901837
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: qemu-kvm
Version: 8.4
Hardware: ppc64le
OS: Linux
high
high
Target Milestone: rc
: 8.0
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-26 08:10 UTC by Xujun Ma
Modified: 2021-01-27 01:53 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-26 08:13:41 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Xujun Ma 2020-11-26 08:10:51 UTC
Description of problem:
Failed to hotunplug pc-dimm device

Version-Release number of selected component (if applicable):
host:
kernel-4.18.0-252.el8.ppc64le
qemu-kvm-4.2.0-35.module+el8.4.0+8705+34397d87.ppc64le
guest:
kernel-4.18.0-252.el8.ppc64le

How reproducible:
100%

Steps to Reproduce:
1.Boot guest with command
/usr/libexec/qemu-kvm \
	-smp 4  \
	-m 4G,slots=16,maxmem=20G \
	-nodefaults \
	-device spapr-vty,id=serial111,chardev=serial \
	-chardev socket,path=serial,id=serial,server,nowait,signal=off \
	-device virtio-scsi-pci,bus=pci.0 \
	-device scsi-hd,id=scsi-hd0,drive=scsi-hd0-dr0,bootindex=0 \
	-drive file=rhel840-ppc64le-virtio-scsi.qcow2,if=none,id=scsi-hd0-dr0,format=qcow2,cache=none \
	-device virtio-net-pci,netdev=net0,id=nic0,mac=52:54:00:c4:e7:84 \
	-netdev tap,id=net0,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown,vhost=on \
	-mon chardev=monitor,mode=readline -chardev socket,path=monitor,id=monitor,server,nowait,signal=off \
2.Run hotplug and unplug command for a loop
echo "object_add memory-backend-ram,id=mem1,size=4G"|nc -U monitor;
for((i=1;i<=50;i++));do echo "device_add pc-dimm,id=dimm1,memdev=mem1,node=0" |nc -U monitor;sleep 5;echo "device_del dimm1" |nc -U monitor;sleep 5;done
3.

Actual results:
Failed to hotunplug pc-dimm device in the 15 loop.
QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_add pc-dimm,id=dimm1,memdev=mem1,node=0
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_del dimm1
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_add pc-dimm,id=dimm1,memdev=mem1,node=0
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_del dimm1
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_add pc-dimm,id=dimm1,memdev=mem1,node=0
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_del dimm1
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_add pc-dimm,id=dimm1,memdev=mem1,node=0
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_del dimm1
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_add pc-dimm,id=dimm1,memdev=mem1,node=0
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_del dimm1
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_add pc-dimm,id=dimm1,memdev=mem1,node=0
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_del dimm1
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_add pc-dimm,id=dimm1,memdev=mem1,node=0
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_del dimm1
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_add pc-dimm,id=dimm1,memdev=mem1,node=0
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_del dimm1
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_add pc-dimm,id=dimm1,memdev=mem1,node=0
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_del dimm1
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_add pc-dimm,id=dimm1,memdev=mem1,node=0
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_del dimm1
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_add pc-dimm,id=dimm1,memdev=mem1,node=0
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_del dimm1
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_add pc-dimm,id=dimm1,memdev=mem1,node=0
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_del dimm1
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_add pc-dimm,id=dimm1,memdev=mem1,node=0
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_del dimm1
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_add pc-dimm,id=dimm1,memdev=mem1,node=0
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_del dimm1
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_add pc-dimm,id=dimm1,memdev=mem1,node=0
Duplicate ID 'dimm1' for device
Try "help device_add" for more information
(qemu) QEMU 4.2.0 monitor - type 'help' for more information
(qemu) device_del dimm1
Error: Memory unplug already in progress for device dimm1


dmesg in the guest:
[  252.911762] pseries-hotplug-mem: Attempting to hot-remove 16 LMB(s) at 80000010
[  253.020976] Offlined Pages 4096
[  253.055256] Offlined Pages 4096
[  253.085625] Offlined Pages 4096
[  253.110270] Offlined Pages 4096
[  253.132497] Offlined Pages 4096
[  253.160455] Offlined Pages 4096
[  253.223452] Offlined Pages 4096
[  253.251284] Offlined Pages 4096
[  253.281638] Offlined Pages 4096
[  253.308033] Offlined Pages 4096
[  253.368658] Offlined Pages 4096
[  253.390495] Offlined Pages 4096
[  253.410955] Offlined Pages 4096
[  253.431035] Offlined Pages 4096
[  253.547874] Offlined Pages 4096
[  253.571757] pseries-hotplug-mem: Memory indexed-count-remove failed, adding any removed LMBs
[  253.574060] radix-mmu: Mapped 0x0000000100000000-0x0000000110000000 with 2.00 MiB pages
[  253.580330] radix-mmu: Mapped 0x0000000110000000-0x0000000120000000 with 2.00 MiB pages
[  253.588992] radix-mmu: Mapped 0x0000000120000000-0x0000000130000000 with 2.00 MiB pages
[  253.602504] radix-mmu: Mapped 0x0000000130000000-0x0000000140000000 with 2.00 MiB pages
[  253.617876] radix-mmu: Mapped 0x0000000140000000-0x0000000150000000 with 2.00 MiB pages
[  253.634560] radix-mmu: Mapped 0x0000000150000000-0x0000000160000000 with 2.00 MiB pages
[  253.642112] radix-mmu: Mapped 0x0000000160000000-0x0000000170000000 with 2.00 MiB pages
[  253.662792] radix-mmu: Mapped 0x0000000170000000-0x0000000180000000 with 2.00 MiB pages
[  253.687809] radix-mmu: Mapped 0x0000000180000000-0x0000000190000000 with 2.00 MiB pages
[  253.707920] radix-mmu: Mapped 0x0000000190000000-0x00000001a0000000 with 2.00 MiB pages
[  253.718375] radix-mmu: Mapped 0x00000001a0000000-0x00000001b0000000 with 2.00 MiB pages
[  253.744106] radix-mmu: Mapped 0x00000001b0000000-0x00000001c0000000 with 2.00 MiB pages
[  253.765718] radix-mmu: Mapped 0x00000001c0000000-0x00000001d0000000 with 2.00 MiB pages
[  253.784612] radix-mmu: Mapped 0x00000001d0000000-0x00000001e0000000 with 2.00 MiB pages
[  253.786238] radix-mmu: Mapped 0x00000001e0000000-0x00000001f0000000 with 2.00 MiB pages
Expected results:
Hotunplug sccessfully.
Additional info:

Comment 1 Xujun Ma 2020-11-26 08:13:41 UTC

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


Note You need to log in before you can comment on or make changes to this bug.