Re: [Xen-devel] [PATCH] libxc: use correct return type for do_memory_op()

2015-12-01 Thread Ian Campbell
On Mon, 2015-11-30 at 10:23 +, Wei Liu wrote: > On Fri, Nov 27, 2015 at 10:00:51AM +0100, Juergen Gross wrote: > > Currently do_memory_op() is returning int, while the hypervisor is > > returning long. This will lead to wrong return informations as soon as > > e.g. a pfn larger than about 2

Re: [Xen-devel] [PATCH] libxc: use correct return type for do_memory_op()

2015-11-30 Thread Wei Liu
On Fri, Nov 27, 2015 at 10:00:51AM +0100, Juergen Gross wrote: > Currently do_memory_op() is returning int, while the hypervisor is > returning long. This will lead to wrong return informations as soon as > e.g. a pfn larger than about 2 billion (8 TB) is returned. > > Use the correct long return

[Xen-devel] [PATCH] libxc: use correct return type for do_memory_op()

2015-11-27 Thread Juergen Gross
Currently do_memory_op() is returning int, while the hypervisor is returning long. This will lead to wrong return informations as soon as e.g. a pfn larger than about 2 billion (8 TB) is returned. Use the correct long return type instead and correct the functions expecting a pfn via the return