Re: [PATCH rfcv4 10/13] qemu: Support reboot command in guest

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

 



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.duan@xxxxxxxxx>
> ---
>  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é <berrange@xxxxxxxxxx>


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




[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