RE: [PATCH rfcv3 07/11] qemu: add hard reboot in QEMU driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




>-----Original Message-----
>From: Daniel P. Berrangé <berrange@xxxxxxxxxx>
>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@xxxxxxxxx>
>>
>> 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
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux