mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Match change to the memory/target value, as it is now in KiB, not bytes.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
0c41a8f422
commit
1fe49007f3
1 file changed
+4
-1
@@ -362,7 +362,10 @@ static void watch_target(struct xenbus_watch *watch, const char *node)
|
||||
return;
|
||||
}
|
||||
|
||||
set_new_target(new_target >> PAGE_SHIFT);
|
||||
/* The given memory/target value is in KiB, so it needs converting to
|
||||
pages. PAGE_SHIFT converts bytes to pages, hence PAGE_SHIFT - 10.
|
||||
*/
|
||||
set_new_target(new_target >> (PAGE_SHIFT - 10));
|
||||
|
||||
}
|
||||
|
||||
|
||||