Skip to contentSkip to conversation

xen/balloon: Support xend-based toolstack

PATCH In review Boris Ostrovsky 2 participants 5 messages Oct 7, 2018 – Oct 10, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/balloon: Support xend-based toolstack

Xend-based toolstacks don't have static-max entry in xenstore. The equivalent node for those toolstacks is memory_static_max.

Fixes 5266b8e4445c (xen: fix booting ballooned down hvm guest)
Cc <[email protected]> # 4.13
---
 drivers/xen/xen-balloon.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
drivers/xen/xen-balloon.c +8 -5
index 63c1494a8d73..2acbfe104e46 100644
@@ -76,12 +76,15 @@ static void watch_target(struct xenbus_watch *watch,
 
 	if (!watch_fired) {
 		watch_fired = true;
-		err = xenbus_scanf(XBT_NIL, "memory", "static-max", "%llu",
-				   &static_max);
-		if (err != 1)
-			static_max = new_target;
-		else
+
+		if ((xenbus_scanf(XBT_NIL, "memory", "static-max",
+				  "%llu", &static_max) == 1) ||
+		    (xenbus_scanf(XBT_NIL, "memory", "memory_static_max",
+				  "%llu", &static_max) == 1))
 			static_max >>= PAGE_SHIFT - 10;
+		else
+			static_max = new_target;
+
 		target_diff = (xen_pv_domain() || xen_initial_domain()) ? 0
 				: static_max - balloon_stats.target_pages;
 	}
Signature · 1 line
2.17.1
maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Boris Ostrovsky
Quoted 6 lines · Boris Ostrovsky

Xend-based toolstacks don't have static-max entry in xenstore. The equivalent node for those toolstacks is memory_static_max.

Fixes 5266b8e4445c (xen: fix booting ballooned down hvm guest)
Cc <[email protected]> # 4.13

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

maintainer
#3 lore raw
In reply to Boris Ostrovsky
Quoted 6 lines · Boris Ostrovsky

Xend-based toolstacks don't have static-max entry in xenstore. The equivalent node for those toolstacks is memory_static_max.

Fixes 5266b8e4445c (xen: fix booting ballooned down hvm guest)
Cc <[email protected]> # 4.13

Committed to xen.tip for-linus-4.20

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel