On Mon, Jun 30, 2025 at 02:17:30PM +0800, Zhenzhong Duan wrote:
> TDX guest doesn't support system_reset, so have to kill the old QEMU and
> start a new one to simulate the reset. This can be achieved by calling
> qemuProcessFakeRebootViaRecreate().
> 
> Simiar as FakeReboot, QEMU sends SHUTDOWN event with "host-signal" reason
> which can trigger another FakeReset. Check if a FakeReset is ongoing and
> bypass "host-signal" processing which originally comes from FakeReset.
> 
> Domain lock is already hold in qemuDomainReset() before calling
> qemuProcessFakeRebootViaRecreate(), so bypass locking in it.
> 
> Signed-off-by: Zhenzhong Duan <zhenzhong.d...@intel.com>
> ---
>  src/qemu/qemu_domain.h  |  1 +
>  src/qemu/qemu_driver.c  | 10 +++++++++-
>  src/qemu/qemu_monitor.c |  6 ++++++
>  src/qemu/qemu_process.c | 14 +++++++++-----
>  src/qemu/qemu_process.h |  2 ++
>  5 files changed, 27 insertions(+), 6 deletions(-)

Reviewed-by: Daniel P. Berrangé <berra...@redhat.com>


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 :|

Reply via email to