>>> On 26.07.18 at 15:46, <paul.durr...@citrix.com> wrote:
>>  -----Original Message-----
>> From: Jan Beulich [mailto:jbeul...@suse.com]
>> Sent: 26 July 2018 14:41
>> To: Paul Durrant <paul.durr...@citrix.com>
>> Cc: Razvan Cojocaru <rcojoc...@bitdefender.com>; Andrew Cooper
>> <andrew.coop...@citrix.com>; xen-devel <xen-
>> de...@lists.xenproject.org>; Tamas K Lengyel <ta...@tklengyel.com>
>> Subject: RE: [PATCH v2] x86: assorted array_index_nospec() insertions
>> 
>> >>> On 26.07.18 at 15:25, <paul.durr...@citrix.com> wrote:
>> >> From: Jan Beulich [mailto:jbeul...@suse.com]
>> >> 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
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to