
On Wed, Jul 09, 2025 at 09:35:02AM +0000, Duan, Zhenzhong wrote:
-----Original Message----- From: Daniel P. Berrangé <berrange@redhat.com> Subject: Re: [PATCH v3 00/21] LIBVIRT: X86: TDX support
On Wed, Jul 09, 2025 at 08:55:48AM +0000, Duan, Zhenzhong wrote:
-----Original Message----- From: Daniel P. Berrangé <berrange@redhat.com> Subject: Re: [PATCH v3 00/21] LIBVIRT: X86: TDX support
On Mon, Jun 30, 2025 at 02:17:11PM +0800, Zhenzhong Duan wrote:
Hi,
This series brings libvirt the x86 TDX support.
* What's TDX? TDX stands for Trust Domain Extensions which isolates VMs from the virtual-machine manager (VMM)/hypervisor and any other software
on
the platform.
This patchset extends libvirt to support TDX, with which one can start a TDX guest from high level rather than running qemu directly.
* Misc As QEMU use a software emulated way to reset guest which isn't supported by TDX guest for security reason. We simulate reboot for TDX guest by kill and create a new one in FakeReboot framework.
Complete code can be found at [1].
* Test Tested with upstream qemu v10.0.0-1724-gf9a3def17b shutdown/reboot/reset with virsh shutdown/reboot trigger in guest shutdown with on_poweroff=destroy/restart reboot with on_reboot=destroy/restart
FYI when I have a guest crash libvirt logs
error : qemuMonitorJSONGuestPanicExtractInfo:638 : internal error: unknown panic info type 'tdx'
this is a new type of panic data structure from upstream QEMU that libvirt needs to handle in some way
Oh yes, thanks, will add processing on libvirt side.
I think it'll be useful to get the crash "message" string into the per-VM logfile at /var/log/libvirt/qemu/$GUEST.log
OK. I will add TDX part in qemuMonitorJSONGuestPanicExtractInfo(), then qemuProcessGuestPanicEventInfo() will be called to write to qemu log file.
Looks like you probably don't need to change qemuProcessGuestPanicEventInfo but instead update qemuMonitorGuestPanicEventInfoFormatMsg() to be able to format the info for TDX. With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|