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

[XENBUS PATCH v2 0/5] Autoreboot rework



Rework and clean up reboot prompt and check logic:
* Since autoreboot takes precedence over reboot prompts, make TryAutoReboot
  call PromptForReboot instead of the other way around.
* Any reboot request sets Context->RebootRequestedBy with the driver name.
* Reboot requests can be paused by active installations, system power requests
  or denied by the user (made explicit in the initial check).
* Run the session prompts in a separate thread to avoid blocking main monitor.
* Retry reboot request every minute (if exists).

v2 changes:
* Integrated Paul's feedback.
* Reworked and reorganized the monitor code.
* Made the retry actually work.
* Added check for active installations.
* Added commit to cleanup error variables in TryAutoReboot.
v1: 
https://lists.xenproject.org/archives/html/win-pv-devel/2025-05/msg00007.html

Tu Dinh (5):
  Cleanup duplicate error variables in TryAutoReboot
  Rework autoreboot retry logic
  Repeat TryAutoReboot() with timer
  Don't autoreboot during ES_SYSTEM_REQUIRED
  Check for active installation before autoreboot

 src/monitor/monitor.c                        | 522 +++++++++++++------
 vs2019/xenbus_monitor/xenbus_monitor.vcxproj |   2 +-
 vs2022/xenbus_monitor/xenbus_monitor.vcxproj |   2 +-
 3 files changed, 357 insertions(+), 169 deletions(-)

--
2.49.0.windows.1


Ngoc Tu Dinh | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.