>>> On 14.09.17 at 14:58, <wei.l...@citrix.com> wrote: > --- a/xen/arch/x86/pv/descriptor-tables.c > +++ b/xen/arch/x86/pv/descriptor-tables.c > @@ -181,6 +181,46 @@ long do_update_descriptor(uint64_t pa, uint64_t desc) > return ret; > } > > +int compat_set_gdt(XEN_GUEST_HANDLE_PARAM(uint) frame_list, unsigned int > entries) > +{ > + unsigned int i, nr_pages = (entries + 511) / 512; > + unsigned long frames[16]; > + long ret;
Considering the function returns int, how about changing this to int as you go? Either way Acked-by: Jan Beulich <jbeul...@suse.com> Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel