Created attachment 1263167 [details]
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(firstname.lastname@example.org) from intel
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Fix included in qemu-kvm-rhev-2.9.0-2.el7
*** Bug 1450130 has been marked as a duplicate of this bug. ***
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.
1. run vtop to get guest address:
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
# 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.
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.