aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/domctl.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-12-17 06:27:56 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-12-17 06:27:56 +0000
commitfa52adbca38520e1873099e3112db7bdb51d6864 (patch)
tree5dbfe4157d7b7dda6675248a16fc7bd5f232a458 /xen/common/domctl.c
parent29317cfbf36d6a7f3088da50db1e84412c47626b (diff)
downloadxen-fa52adbca38520e1873099e3112db7bdb51d6864.tar.gz
xen-fa52adbca38520e1873099e3112db7bdb51d6864.tar.bz2
xen-fa52adbca38520e1873099e3112db7bdb51d6864.zip
Domctls defined for all relevant memory sharing operations.
Signed-off-by: Grzegorz Milos <Grzegorz.Milos@citrix.com>
Diffstat (limited to 'xen/common/domctl.c')
-rw-r--r--xen/common/domctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/common/domctl.c b/xen/common/domctl.c
index 9d7c271d4f..f87d91c06b 100644
--- a/xen/common/domctl.c
+++ b/xen/common/domctl.c
@@ -136,6 +136,7 @@ void getdomaininfo(struct domain *d, struct xen_domctl_getdomaininfo *info)
info->tot_pages = d->tot_pages;
info->max_pages = d->max_pages;
+ info->shr_pages = atomic_read(&d->shr_pages);
info->shared_info_frame = mfn_to_gmfn(d, __pa(d->shared_info)>>PAGE_SHIFT);
BUG_ON(SHARED_M2P(info->shared_info_frame));