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

[XENBUS PATCH v3 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).

v3: Fix error variable type for Reg* functions in TryAutoReboot
v2: 
https://lists.xenproject.org/archives/html/win-pv-devel/2025-06/msg00005.html
v1: 
https://lists.xenproject.org/archives/html/win-pv-devel/2025-05/msg00007.html

Tu Dinh (5):
  Fix error variable type 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                        | 509 +++++++++++++------
 vs2019/xenbus_monitor/xenbus_monitor.vcxproj |   2 +-
 vs2022/xenbus_monitor/xenbus_monitor.vcxproj |   2 +-
 3 files changed, 351 insertions(+), 162 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®.