mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
i386/tdx: Wire TDX_REPORT_FATAL_ERROR with GuestPanic facility
Integrate TDX's TDX_REPORT_FATAL_ERROR into QEMU GuestPanic facility Originated-from: Isaku Yamahata <isaku.yamahata@intel.com> Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com> Acked-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250508150002.689633-30-xiaoyao.li@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
98dbfd6849
commit
6e250463b0
3 changed files with 118 additions and 3 deletions
|
@ -501,10 +501,12 @@
|
|||
#
|
||||
# @s390: s390 guest panic information type (Since: 2.12)
|
||||
#
|
||||
# @tdx: tdx guest panic information type (Since: 10.1)
|
||||
#
|
||||
# Since: 2.9
|
||||
##
|
||||
{ 'enum': 'GuestPanicInformationType',
|
||||
'data': [ 'hyper-v', 's390' ] }
|
||||
'data': [ 'hyper-v', 's390', 'tdx' ] }
|
||||
|
||||
##
|
||||
# @GuestPanicInformation:
|
||||
|
@ -519,7 +521,8 @@
|
|||
'base': {'type': 'GuestPanicInformationType'},
|
||||
'discriminator': 'type',
|
||||
'data': {'hyper-v': 'GuestPanicInformationHyperV',
|
||||
's390': 'GuestPanicInformationS390'}}
|
||||
's390': 'GuestPanicInformationS390',
|
||||
'tdx' : 'GuestPanicInformationTdx'}}
|
||||
|
||||
##
|
||||
# @GuestPanicInformationHyperV:
|
||||
|
@ -598,6 +601,30 @@
|
|||
'psw-addr': 'uint64',
|
||||
'reason': 'S390CrashReason'}}
|
||||
|
||||
##
|
||||
# @GuestPanicInformationTdx:
|
||||
#
|
||||
# TDX Guest panic information specific to TDX, as specified in the
|
||||
# "Guest-Hypervisor Communication Interface (GHCI) Specification",
|
||||
# section TDG.VP.VMCALL<ReportFatalError>.
|
||||
#
|
||||
# @error-code: TD-specific error code
|
||||
#
|
||||
# @message: Human-readable error message provided by the guest. Not
|
||||
# to be trusted.
|
||||
#
|
||||
# @gpa: guest-physical address of a page that contains more verbose
|
||||
# error information, as zero-terminated string. Present when the
|
||||
# "GPA valid" bit (bit 63) is set in @error-code.
|
||||
#
|
||||
#
|
||||
# Since: 10.1
|
||||
##
|
||||
{'struct': 'GuestPanicInformationTdx',
|
||||
'data': {'error-code': 'uint32',
|
||||
'message': 'str',
|
||||
'*gpa': 'uint64'}}
|
||||
|
||||
##
|
||||
# @MEMORY_FAILURE:
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue