On Fri, May 24, 2024 at 02:21:25PM +0800, Zhenzhong Duan wrote:
> We can reboot a TDX guest with 'virsh reboot' or 'virsh shutdown' if action
> for onPoweroff is 'restart'. But running reboot command in guest shell will
> always lead to shutdown.
> 
> This behavior is not consistent with normal guest, fix it by checking
> shutdown reason and action configuration to trigger FakeReboot.
> 
> Signed-off-by: Zhenzhong Duan <zhenzhong.d...@intel.com>
> ---
>  src/qemu/qemu_monitor.c      | 18 +++++++++++++++++-
>  src/qemu/qemu_monitor.h      |  2 +-
>  src/qemu/qemu_monitor_json.c |  6 +++++-
>  3 files changed, 23 insertions(+), 3 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