|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Fix maxmemkb calc. From Anh Quynh.
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 026436ebd99cc4d65094f2c5a54beb43c5370515
# Parent 1cf15df7acf72f1449cfb84a18c4e77e1801406e
Fix maxmemkb calc. From Anh Quynh.
diff -r 1cf15df7acf7 -r 026436ebd99c tools/libxc/xc_domain.c
--- a/tools/libxc/xc_domain.c Sat Jul 16 16:44:39 2005
+++ b/tools/libxc/xc_domain.c Mon Jul 18 07:45:41 2005
@@ -107,7 +107,7 @@
DOMFLAGS_SHUTDOWNMASK;
info->nr_pages = op.u.getdomaininfo.tot_pages;
- info->max_memkb = op.u.getdomaininfo.max_pages<<(PAGE_SHIFT);
+ info->max_memkb = op.u.getdomaininfo.max_pages << (PAGE_SHIFT - 10);
info->shared_info_frame = op.u.getdomaininfo.shared_info_frame;
info->cpu_time = op.u.getdomaininfo.cpu_time;
diff -r 1cf15df7acf7 -r 026436ebd99c xen/common/dom0_ops.c
--- a/xen/common/dom0_ops.c Sat Jul 16 16:44:39 2005
+++ b/xen/common/dom0_ops.c Mon Jul 18 07:45:41 2005
@@ -477,7 +477,7 @@
if ( d != NULL )
{
d->max_pages =
- (op->u.setdomainmaxmem.max_memkb+PAGE_SIZE-1)>> PAGE_SHIFT;
+ op->u.setdomainmaxmem.max_memkb >> (PAGE_SHIFT - 10);
put_domain(d);
ret = 0;
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Fix maxmemkb calc. From Anh Quynh.,
Xen patchbot -2 . 0-testing <=
|
|
|
|
|