[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Make XEN_DOMCTL_getdomaininfo return shared_info_frame in gmfn not mfn.
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Node ID 45765c7a5066ecade5f665f310882a391ec4d747 # Parent 28e883b3933dfae907a37684429cb5436d0075f8 Make XEN_DOMCTL_getdomaininfo return shared_info_frame in gmfn not mfn. Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx> --- xen/common/domctl.c | 2 +- xen/include/public/domctl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -r 28e883b3933d -r 45765c7a5066 xen/common/domctl.c --- a/xen/common/domctl.c Fri Dec 08 09:27:39 2006 +0000 +++ b/xen/common/domctl.c Fri Dec 08 09:32:42 2006 +0000 @@ -126,7 +126,7 @@ void getdomaininfo(struct domain *d, str info->tot_pages = d->tot_pages; info->max_pages = d->max_pages; - info->shared_info_frame = __pa(d->shared_info) >> PAGE_SHIFT; + info->shared_info_frame = mfn_to_gmfn(d, __pa(d->shared_info)>>PAGE_SHIFT); memcpy(info->handle, d->handle, sizeof(xen_domain_handle_t)); } diff -r 28e883b3933d -r 45765c7a5066 xen/include/public/domctl.h --- a/xen/include/public/domctl.h Fri Dec 08 09:27:39 2006 +0000 +++ b/xen/include/public/domctl.h Fri Dec 08 09:32:42 2006 +0000 @@ -93,7 +93,7 @@ struct xen_domctl_getdomaininfo { uint32_t flags; /* XEN_DOMINF_* */ uint64_t tot_pages; uint64_t max_pages; - uint64_t shared_info_frame; /* MFN of shared_info struct */ + uint64_t shared_info_frame; /* GMFN of shared_info struct */ uint64_t cpu_time; uint32_t nr_online_vcpus; /* Number of VCPUs currently online. */ uint32_t max_vcpu_id; /* Maximum VCPUID in use by this domain. */ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |