Message ID | 9dc667d2017e6e69877a2b9859041c1f7d965899.1631555561.git.isaikin-dmitry@yandex.ru (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/1] tools/xl: Fix regular expression for autobaloon mode detection based on xen command line. | expand |
Dmitry Isaikin writes ("[PATCH 1/1] tools/xl: Fix regular expression for autobaloon mode detection based on xen command line."):
> The case of specifying a negative size was handled incorrectly.
Thank you. The change looks good to me. Did you test that after your
change, the functionality works ?
Ian.
diff --git a/tools/xl/xl.c b/tools/xl/xl.c index 4107d10fd4..a9f7e769fd 100644 --- a/tools/xl/xl.c +++ b/tools/xl/xl.c @@ -81,7 +81,7 @@ static int auto_autoballoon(void) return 1; /* default to on */ ret = regcomp(®ex, - "(^| )dom0_mem=((|min:|max:)[0-9]+[bBkKmMgG]?,?)+($| )", + "(^| )dom0_mem=((|min:|max:)-?[0-9]+[bBkKmMgG]?,?)+($| )", REG_NOSUB | REG_EXTENDED); if (ret) return 1;