-----Original Message-----
From: Daniel P. Berrangé <berrange(a)redhat.com>
Subject: Re: [PATCH rfcv3 07/11] qemu: add hard reboot in QEMU driver
On Mon, Nov 27, 2023 at 04:55:17PM +0800, Zhenzhong Duan wrote:
> From: Chenyi Qiang <chenyi.qiang(a)intel.com>
>
> Add the new flag
VIR_DOMAIN_REBOOT_HARD/VIR_DOMAIN_SHUTDOWN_HARD to
> carry out a hard reboot, which kills the QEMU process and creates a new
> one with the same definition.
AFAICT, the _HARD flags cause it to issue a QEMU monitor
command todo an ACPI shutdown and then re-create QEMU.
IOW, it seems like this is just the same as the existing
_ACPI flags, and so I'm not sure why we need any new
functionality at all.
What is the existing ACPI shutdown & fake reboot not
able to achieve ?
ACPI shutdown & fake reboot send below QMP command in sequence:
"system_powerdown", "system_reset", "cont".
"system_reset" QMP command isn't supported by TDX for security reasons.
So we have to kill old QEMU and re-create new one.
Thanks
Zhenzhong