On 19/03/2024 7:58 pm, Andrew Cooper wrote:
> Require 's' to be superpage aligned if given over a superpage mapping.  This
> is expected to be the case in practice, and prevents the v getting misaligned
> over superpages during the processing loop.
>
> Rmove the requirement for 'e' to be page aligned.  All this is doing is

"Remove".  Fixed locally.

> forcing work for the caller just to satisfy an assertion.
>
> Reported-by: Jan Beulich <jbeul...@suse.com>
> Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>
> ---
> CC: Jan Beulich <jbeul...@suse.com>
> CC: Roger Pau Monné <roger....@citrix.com>

Code-gen wise, this drops 2x

48 8d b0 ff 0f 00 00    lea    0xfff(%rax),%rsi
48 81 e6 00 f0 ff ff    and    $0xfffffffffffff000,%rsi

from {relax,tighten}_virtual_region_perms().

~Andrew

Reply via email to