On 7/10/2025 7:40 PM, Xiaoyao Li wrote:
On 7/10/2025 11:55 AM, Zhenzhong Duan wrote:
Gpa is defined in QAPI but never reported to monitor because has_gpa is
never set to ture.
Fix it by setting has_gpa to ture when TDX_REPORT_FATAL_ERROR_GPA_VALID
is set in error_code.
Hi Zhenzhong,
I would like to understand what the problem is without panic_info-
>u.tdx.has_gpa being set?
Never mind, I figure it out.
qapi_event_send_guest_panicked() in qemu_system_guest_panicked will send
the event and data. Libvirt tries to parse the data, but find the
.has_data field is not set correctly.
My original patch used (gpa == -1) as the indicator for whether gpa is
valid, this needs to be cleaned up. I will send the cleanup patch.