]> xenbits.xensource.com Git - pvdrivers/win/xeniface.git/commitdiff
Clear rather than remove control/feature-XXX keys.
authorTroy Crosley <troycrosley@gmail.com>
Thu, 3 Sep 2020 14:53:58 +0000 (10:53 -0400)
committerPaul Durrant <pdurrant@amazon.com>
Fri, 4 Sep 2020 07:51:49 +0000 (08:51 +0100)
These keys should stick around when disabled since they're present at
boot. This also fixes an issue where the keys are unable to be written
on wake from S3 or S4.

Signed-off-by: Troy Crosley <troycrosley@gmail.com>
Reviewed-by: Paul Durrant <paul@xen.org>
src/xenagent/service.cpp

index 4d62e0940fe4d44bb6fd135f55760d5d853b9ba9..26c63a2a52a0e76a16303a9b4b99656fadccfc36 100644 (file)
@@ -331,10 +331,10 @@ void CXenIfaceCreator::StopShutdownWatch()
     if (!m_ctxt_shutdown)
         return;
 
-    m_device->StoreRemove("control/feature-poweroff");
-    m_device->StoreRemove("control/feature-reboot");
-    m_device->StoreRemove("control/feature-s3");
-    m_device->StoreRemove("control/feature-s4");
+    m_device->StoreWrite("control/feature-poweroff", "");
+    m_device->StoreWrite("control/feature-reboot", "");
+    m_device->StoreWrite("control/feature-s3", "");
+    m_device->StoreWrite("control/feature-s4", "");
 
     m_device->StoreRemoveWatch(m_ctxt_shutdown);
     m_ctxt_shutdown = NULL;