[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH V14 2/7] xen/arm: Implement domain_get_maximum_gpfn
Hi Tamas, On 26/03/15 22:05, Tamas K Lengyel wrote: > From: Julien Grall <julien.grall@xxxxxxxxxx> > > The function domain_get_maximum_gpfn is returning the maximum gpfn ever > mapped in the guest. We can use d->arch.p2m.max_mapped_gfn for this purpose. > > We use this in xenaccess as to avoid the user attempting to set page > permissions on pages which don't exist for the domain, as a non-arch specific > sanity check. FWIW, xc_domain_maximum_gpfn is buggy for ARM64 as a PFN can be encode with up to 36 bits which doesn't fit on the return code (an int is used). Although, I don't see any call to xc_domain_maximum_gpfn in memaccess (tools/tests/memaccess). So is this patch still useful? Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |