diff options
author | Jan Beulich <jbeulich@suse.com> | 2013-07-04 10:27:39 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-07-04 10:27:39 +0200 |
commit | b0581b9214d2359207f836f4f075e978527b9a7b (patch) | |
tree | 742bd7c1c2b9df77ebd4e2b220cde5f0e33fcba7 /xen/common | |
parent | d8a7694e5a415ac0a871f0ae58f50876ad30d619 (diff) | |
download | xen-b0581b9214d2359207f836f4f075e978527b9a7b.tar.gz xen-b0581b9214d2359207f836f4f075e978527b9a7b.tar.bz2 xen-b0581b9214d2359207f836f4f075e978527b9a7b.zip |
x86: make map_domain_page_global() a simple wrapper around vmap()
This is in order to reduce the number of fundamental mapping mechanisms
as well as to reduce the amount of code to be maintained. In the course
of this the virtual space available to vmap() is being grown from 16Gb
to 64Gb.
Note that this requires callers of unmap_domain_page_global() to no
longer pass misaligned pointers - map_domain_page_global() returns page
size aligned pointers, so unmappinmg should be done accordingly.
unmap_vcpu_info() violated this and is being adjusted here.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common')
-rw-r--r-- | xen/common/domain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/common/domain.c b/xen/common/domain.c index fac3470a33..5b04172628 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -958,7 +958,8 @@ void unmap_vcpu_info(struct vcpu *v) return; mfn = v->vcpu_info_mfn; - unmap_domain_page_global(v->vcpu_info); + unmap_domain_page_global((void *) + ((unsigned long)v->vcpu_info & PAGE_MASK)); v->vcpu_info = &dummy_vcpu_info; v->vcpu_info_mfn = INVALID_MFN; |