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.

Bug 2077376

Summary: [RFE] Add support for 32-bit guest Windows dump with vmcoreinfo (fwcfg) via 'dump-guest-memory -w'
Product: Red Hat Enterprise Linux 9 Reporter: Viktor Prutyanov <vprutyan>
Component: qemu-kvmAssignee: Virtualization Maintenance <virt-maint>
qemu-kvm sub component: Devices QA Contact: leidwang <leidwang>
Status: CLOSED ERRATA Docs Contact: Jiri Herrmann <jherrman>
Severity: unspecified    
Priority: unspecified CC: coli, gfialova, jherrman, jinzhao, juzhang, marcandre.lureau, mrezanin, virt-maint, yfu, yvugenfi
Version: 9.0Keywords: FutureFeature, Reopened, Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-7.1.0-2.el9 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 07:19:33 UTC Type: Feature Request
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:    
Bug Blocks: 1983947    

Description Viktor Prutyanov 2022-04-21 08:24:37 UTC
Description of problem:

HMP command 'dump-guest-memory -w' doesn't work for 32-bit guest Windows.

Version-Release number of selected component (if applicable):
QEMU 7.0.50

How reproducible:
100%

Steps to Reproduce:
1. Run VM with 32-bit Windows
2. Run 'dump-guest-memory -w memory.dmp'

Actual results:
The dump is not produced.

Expected results:
The dump is produced.

Comment 2 Viktor Prutyanov 2022-04-21 08:27:07 UTC
Upstream patch series v4: https://patchwork.kernel.org/project/qemu-devel/list/?series=629626

Comment 3 Qianqian Zhu 2022-04-22 02:36:27 UTC
Hi Viktor,

I found that this could be a DUPLICATED with bz 1983947, I am closing it and let's follow bz 1983947 please. Sorry for any inconvenience.

Regards,
Qianqian

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

Comment 4 Qianqian Zhu 2022-04-22 02:38:20 UTC
Sorry, just noticed this is for qemu not virtio-win driver, moving back now.

Comment 6 Yvugenfi@redhat.com 2022-04-26 10:07:28 UTC
As the patches were accepted to upstream QEMU after 7.0, moving to RHEL9.2.

https://patchwork.kernel.org/project/qemu-devel/list/?series=629626

Comment 9 Yanan Fu 2022-10-14 02:47:53 UTC
Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass with the 'Fixed In Version': qemu-kvm-7.1.0-2.el9.

Comment 14 leidwang@redhat.com 2022-10-24 03:14:28 UTC
Tested it with qemu-kvm-7.1.0-2.el9.x86_64,but dump is not produced.

Env:
kernel-5.14.0-162.6.1.el9_1.x86_64
qemu-kvm-7.1.0-2.el9.x86_64

Steps:
step1:boot up a Win10-32 VM with "-device vmcoreinfo"

step2:install fwcfg driver in VM

step3:(qemu) dump-guest-memory -w memory.dmp
Error: win-dump: failed to read CPU #32 ContextFrame location

Thanks!
Leidong

Comment 15 Yvugenfi@redhat.com 2022-10-25 06:21:32 UTC
(In reply to leidwang from comment #14)
> Tested it with qemu-kvm-7.1.0-2.el9.x86_64,but dump is not produced.
> 
> Env:
> kernel-5.14.0-162.6.1.el9_1.x86_64
> qemu-kvm-7.1.0-2.el9.x86_64
> 
> Steps:
> step1:boot up a Win10-32 VM with "-device vmcoreinfo"
> 
> step2:install fwcfg driver in VM
> 
> step3:(qemu) dump-guest-memory -w memory.dmp
> Error: win-dump: failed to read CPU #32 ContextFrame location
> 
> Thanks!
> Leidong

Looks related to: https://bugzilla.redhat.com/show_bug.cgi?id=1986665

Please reduce amount of vCPUS for the desktop VM in order to test the current bug.

Comment 16 leidwang@redhat.com 2022-10-26 02:04:08 UTC
(In reply to Yvugenfi from comment #15)
> (In reply to leidwang from comment #14)
> > Tested it with qemu-kvm-7.1.0-2.el9.x86_64,but dump is not produced.
> > 
> > Env:
> > kernel-5.14.0-162.6.1.el9_1.x86_64
> > qemu-kvm-7.1.0-2.el9.x86_64
> > 
> > Steps:
> > step1:boot up a Win10-32 VM with "-device vmcoreinfo"
> > 
> > step2:install fwcfg driver in VM
> > 
> > step3:(qemu) dump-guest-memory -w memory.dmp
> > Error: win-dump: failed to read CPU #32 ContextFrame location
> > 
> > Thanks!
> > Leidong
> 
> Looks related to: https://bugzilla.redhat.com/show_bug.cgi?id=1986665
> 
> Please reduce amount of vCPUS for the desktop VM in order to test the
> current bug.

Yes,reduce amount of vCPUS and then the dump file is produced.

Move this bz to verified.Thanks!

Comment 20 errata-xmlrpc 2023-05-09 07:19:33 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 (Moderate: qemu-kvm security, bug fix, and enhancement update), 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-2023:2162