On Tue, 19 May 2020 at 19:57, Richard Henderson <[email protected]> wrote: > > The kernel will return -EINVAL for bits set in the prot argument > that are unknown or invalid. Previously we were simply cropping > out the bits that we care about. > > Introduce validate_prot_to_pageflags to perform this check in a > single place between the two syscalls. Differentiate between > the target and host versions of prot. Compute the qemu internal > page_flags value at the same time. > > Signed-off-by: Richard Henderson <[email protected]>
Reviewed-by: Peter Maydell <[email protected]> thanks -- PMM
