[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] About the parameter list of tools/libxc/xc_domain.c:xc_domain_add_to_physmap()
Hi Wei, 2017-06-14 22:42 GMT+08:00 Wei Liu <wei.liu2@xxxxxxxxxx>: > On Wed, Jun 14, 2017 at 09:19:23PM +0800, Zhongze Liu wrote: >> Hi Xen developers, >> >> In tools/libxc/xc_domain.c:xc_domain_add_to_physmap() the .size field >> of the xen_add_to_physmap >> struct can't be controlled by the caller through the parameter list >> and wasn't explicitly initialized ( and >> thus default to zero ). This implicitly prevents the caller from doing >> an XENMEMSPACE_gmfn_range- >> call. Is it a mistake or is it intentionally done so? > > > The size parameter doesn't make much sense to me because you can only > specify one gpfn in xen_add_to_physmap_t. I guess that's an oversight > when designing the interface. But we couldn't change it once it was > released. > > I guess what you really need is the _batch variant. Yes. Indeed, I was going to add a _batch version of this interface in xc_domain.c, because I need it but I didn't find it anywhere in this file. and this problem popped up to me when I was reading this part of code. Thanks. Cheers, Zhongze Liu _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |