Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionPaul Lai (Intel)
2019-03-11 20:27:10 UTC
Copied from BZ 1628098
Description of problem:
Boot guest with nvdimm device backed by a regular file on host, set pmem=on, qemu core dumped.
Looks like the fix didn't make it into v3.1.0
commit 87dc3ce60a8a16b47aeb6c5f4dbc14ee975563df
Author: Zhang Yi <yi.z.zhang.com>
Date: Wed Oct 24 22:14:56 2018 +0800
hostmem-file: remove object id from pmem error message
Version-Release number of selected component (if applicable):
qemu-kvm-rhev-2.12.0-14.el7
How reproducible:
always
Steps to Reproduce:
1. Boot qemu with pmem=on for memory backend backed by a regular file on host
# /usr/libexec/qemu-kvm -object memory-backend-file,id=mem0,mem-path=/tmp/nv0,size=1G,share,pmem=on
Actual results:
ERROR:qom/object.c:1650:object_get_canonical_path_component: assertion failed: (obj->parent != NULL)
Aborted (core dumped)
Expected results:
No core dump.
Additional info:
Well, seems qemu3.1 don't have the core dump issue.
Tested with qemu-kvm-3.1.0-18.module+el8+2834+fa8bb6e2,
# /usr/libexec/qemu-kvm -object memory-backend-file,id=mem0,mem-path=/tmp/nv0,size=1G,share,pmem=on
qemu-kvm: -object memory-backend-file,id=mem0,mem-path=/tmp/nv0,size=1G,share,pmem=on: Lack of libpmem support while setting the 'pmem=on' of memory-backend-file '(null)'. We can't ensure data persistence.
Verify:
qemu-kvm-2.12.0-78.module+el8.1.0+3434+46ed87c2
kernel-4.18.0-107.el8.x86_64
Tested following two scenarios, guest boot up well, no error in dmesg, and /dev/pmem0 is present in guest.
Guest dmesg:
[ 2.400945] pmem0: detected capacity change from 0 to 2147483648
1) Using a regular file on host as nvdimm backend
# /usr/libexec/qemu-kvm -m 4G,maxmem=40G,slots= 8 -M pc,nvdimm /home/kvm_autotest_root/images/rhel810-64-virtio-scsi.qcow2 -object memory-backend-file,id=mem0,mem-path=/tmp/nv1test,size=2G,share,pmem=on -device nvdimm,id=dimm0,memdev=mem0 -monitor stdio -vnc :0 -serial tcp:0:1234,server,nowait
2) Using /dev/pmem emulated by adding memmap=4G!2G to kernel line
# /usr/libexec/qemu-kvm -m 4G,maxmem=40G,slots= 8 -M pc,nvdimm /home/kvm_autotest_root/images/rhel810-64-virtio-scsi.qcow2 -object memory-backend-file,id=mem0,mem-path=/tmp/nv1test,size=2G,share,pmem=on -device nvdimm,id=dimm0,memdev=mem0 -monitor stdio -vnc :0 -serial tcp:0:1234,server,nowait
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-2019:3345