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

[XENBUS PATCH] Kick the balloon thread in FdoStartDevice



Xenbus currently doesn't apply the dynamic memory targets at boot time.

Force the balloon thread to update memory targets at boot.

Signed-off-by: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>
---
 src/xenbus/fdo.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/xenbus/fdo.c b/src/xenbus/fdo.c
index 3a4a1a2..c2e69fa 100644
--- a/src/xenbus/fdo.c
+++ b/src/xenbus/fdo.c
@@ -3949,6 +3949,9 @@ not_active:
 
         ASSERT(__FdoIsActive(Fdo));
 
+        KeClearEvent(&Fdo->BalloonEvent);
+        ThreadWake(Fdo->BalloonThread);
+
         //
         // Balloon inflation should complete within a reasonable
         // time (otherwise the target is probably unreasonable).
-- 
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®.