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 1432295

Summary: Add gpa2hpa command to qemu hmp
Product: Red Hat Enterprise Linux 7 Reporter: Guo, Zhiyi <zhguo>
Component: qemu-kvm-rhevAssignee: Paolo Bonzini <pbonzini>
Status: CLOSED ERRATA QA Contact: Chao Yang <chayang>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.4CC: chayang, juzhang, michen, pbonzini, plai, virt-maint, yuhuang, zhguo
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-rhev-2.9.0-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-02 03:39:56 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:    
Bug Blocks: 1335351    
Attachments:
Description Flags
x-gpa2hpa patch none

Description Guo, Zhiyi 2017-03-15 02:22:31 UTC
Created attachment 1263167 [details]
x-gpa2hpa patch

Description of problem:
Test against Bug 1402104 - [Intel 7.4 FEAT] KVM local MCE enabling - qemu
Without x-gpa2hpa command, only visibility of lmce can be tested but leave the functionnality cannot be tested inside guest.

x-gpa2hpa maybe for debug only, so could anyone help to confirm whether we need this command from qemu-kvm-rhev?

Attach the x-gpa2hpa patch provided by Zhang, Haozhong(haozhong.zhang) from intel

Version-Release number of selected component (if applicable):
qemu-kvm-rhev

How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Miroslav Rezanina 2017-04-28 10:07:33 UTC
Fix included in qemu-kvm-rhev-2.9.0-2.el7

Comment 4 Ademar Reis 2017-06-08 01:50:32 UTC
*** Bug 1450130 has been marked as a duplicate of this bug. ***

Comment 5 Guo, Zhiyi 2017-06-15 10:01:35 UTC
Test against qemu-kvm-rhev-2.9.0-9.el7.x86_64, I can see gpa2hpa command in hmp. And use gpa2hpa following the way in https://bugzilla.redhat.com/attachment.cgi?id=1262511(this is attached to bug 1402102), I can pass the test steps written by Haozhong from intel.

steps:
1. run vtop to get guest address:
# ./vtop 
gva=0x0x7f4082f58000
gpa=0xa9260000
2. Translate address using gpa2hpa:
(qemu) gpa2hpa 0xa9260000
Host physical address for 0xa9260000 (pc.ram) is 0x123ffb000
3. In guest, write this address to SRAO and pass it to mce-inject.
echo "ADDR 0x123ffb000" >> SRAO
mce-inject < SRAO
4. Check key information from lmce log:
# cat /var/log/mcelog | grep SRAO
SRAO
# cat /var/log/mcelog | grep 123ffb000
MISC 8c ADDR 123ffb000
# cat /var/log/mcelog | grep LMCE
# 

Above test match the expect result from https://bugzilla.redhat.com/attachment.cgi?id=1262511

Per robert's result in Bug 1402104 - [Intel 7.4 FEAT] KVM local MCE enabling - qemu, intel confirm 1402104 is passed, so gpa2hpa is worked well in intel's verification.

So mark the bug verified.

Comment 7 errata-xmlrpc 2017-08-02 03:39:56 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