diff options
author | Jan Beulich <jbeulich@suse.com> | 2013-01-17 10:56:34 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-01-17 10:56:34 +0100 |
commit | cda084b3d8901dab95f22aa6047e103e1032d486 (patch) | |
tree | 1667d5ddff071a9be2a3be8d57237cebc3dd2d34 /xen/common/domctl.c | |
parent | 39bc4673785f6455242f514ea0fa9359bdf1639c (diff) | |
download | xen-cda084b3d8901dab95f22aa6047e103e1032d486.tar.gz xen-cda084b3d8901dab95f22aa6047e103e1032d486.tar.bz2 xen-cda084b3d8901dab95f22aa6047e103e1032d486.zip |
miscellaneous cleanup
... noticed while putting together the 16Tb support patches for x86.
Briefly, this (in order of the changes below)
- fixes an inefficiency in x86's context switch code (translations to/
from struct page are more involved than to/from MFNs)
- drop unnecessary MFM-to-page conversions
- drop a redundant call to destroy_xen_mappings() (an indentical call
is being made a few lines up)
- simplify a VA-to-MFN translation
- drop dead code (several occurrences)
- add a missing __init annotation
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/domctl.c')
-rw-r--r-- | xen/common/domctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/domctl.c b/xen/common/domctl.c index caa68f7c79..a713ce6244 100644 --- a/xen/common/domctl.c +++ b/xen/common/domctl.c @@ -156,7 +156,7 @@ void getdomaininfo(struct domain *d, struct xen_domctl_getdomaininfo *info) info->max_pages = d->max_pages; info->shr_pages = atomic_read(&d->shr_pages); info->paged_pages = atomic_read(&d->paged_pages); - info->shared_info_frame = mfn_to_gmfn(d, __pa(d->shared_info)>>PAGE_SHIFT); + info->shared_info_frame = mfn_to_gmfn(d, virt_to_mfn(d->shared_info)); BUG_ON(SHARED_M2P(info->shared_info_frame)); info->cpupool = d->cpupool ? d->cpupool->cpupool_id : CPUPOOLID_NONE; |