>>> On 26.07.18 at 15:46, <[email protected]> wrote: >> -----Original Message----- >> From: Jan Beulich [mailto:[email protected]] >> Sent: 26 July 2018 14:41 >> To: Paul Durrant <[email protected]> >> Cc: Razvan Cojocaru <[email protected]>; Andrew Cooper >> <[email protected]>; xen-devel <xen- >> [email protected]>; Tamas K Lengyel <[email protected]> >> Subject: RE: [PATCH v2] x86: assorted array_index_nospec() insertions >> >> >>> On 26.07.18 at 15:25, <[email protected]> wrote: >> >> From: Jan Beulich [mailto:[email protected]] >> >> Sent: 26 July 2018 14:07 >> > Using something called 'array_index_nospec()' for an array size and having >> > to adjust by 1 is kind of a bit ugly but it looks correct. >> >> Indeed, and as you may have seen from the change log I've had it >> wrong at first for this very reason. > > Yes, which makes me wonder whether we could have something like > 'array_size_limit()' just to hide this kind of thing?
Well, not sure - I'm sort of hesitant to extend a brand new, inherited from Linux interface. Let's see what Andrew thinks. Jan _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
