mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
Make XEN_DOMCTL_getdomaininfo return shared_info_frame in gmfn not mfn.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
This commit is contained in:
1 parent
27c982df5e
commit
03ba7e6e16
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -126,7 +126,7 @@ void getdomaininfo(struct domain *d, struct xen_domctl_getdomaininfo *info)
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
@@ -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. */
|
||||
|
||||