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

RE: [PATCH] Report reboot required via xenstore


  • To: Owen Smith <owen.smith@xxxxxxxxxx>, "win-pv-devel@xxxxxxxxxxxxxxxxxxxx" <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Owen Smith <owen.smith@xxxxxxxxxx>
  • Date: Wed, 19 Aug 2020 07:46:05 +0000
  • Accept-language: en-GB, en-US
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Delivery-date: Wed, 19 Aug 2020 07:53:43 +0000
  • Ironport-sdr: EIFNl2LEzC6/1+UpEZ4h0vgh30SYbFW8gV97S6w/ChyiFUvTMg1vBkag8uvfCrsFn2MAcoW4Xy Ff0aivv1whg3Nlp9mOuFHJ1Mc18C/ygoBZJz1eRe0r+uh0ltUflNP1UNQwrcbaH9eN6mrhm8ki ZlTLzFiMEzpVozlEAo6Cl8Jg8YnFHA1MXf3KCbQpTjCgkyIZH53rX1/JuqhbTBeDOZyqoJCvvt D3iAsnsRQDikiNg4WAUghoXbuBUouD0Ia+E1D9zu8/ZSt0DTu1wKs6qoYNotWUk0MnXffOshmJ TBc=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>
  • Thread-index: AQHWdfvTdZk3Yjd88Euie7mdC6KDgqk/DXYQ
  • Thread-topic: [PATCH] Report reboot required via xenstore


> -----Original Message-----
> From: Owen Smith <owen.smith@xxxxxxxxxx>
> Sent: 19 August 2020 08:39
> To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
> Cc: Owen Smith <owen.smith@xxxxxxxxxx>
> Subject: [PATCH] Report reboot required via xenstore
> 
> Report if the driver requires a reboot to xenstore, so that the toolstack can
> detect if a driver requires a reboot. This is useful if drivers are delivered 
> by
> Windows Update, or another hands-free method, that does not correctly
> manage reboots and the popup provided by xenbus_monitor is not sufficient to
> guarantee the reboot is visible (i.e. the VM is being run as a headless server
> without a visible user
> session)
> 
> Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
> ---
>  src/xenvbd/adapter.c | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/src/xenvbd/adapter.c b/src/xenvbd/adapter.c index
> 5e20944..de78ac0 100644
> --- a/src/xenvbd/adapter.c
> +++ b/src/xenvbd/adapter.c
> @@ -501,8 +501,15 @@ __AdapterEnumerate(
> 
>      if (NeedInvalidate)
>          AdapterTargetListChanged(Adapter);
> -    if (NeedReboot)
> +    if (NeedReboot) {
> +        (VOID) XENBUS_STORE(Printf,
> +                            &Adapter->StoreInterface,
> +                            NULL,
> +                            "feature/reboot-required",
> +                            "xenvbd",

This should just be "vbd"

> +                            "1");
>          DriverRequestReboot();
> +    }
>  }
> 
>  static DECLSPEC_NOINLINE NTSTATUS
> --
> 2.16.2.windows.1




 


Rackspace

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