Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linux-user: Add new flag VERIFY_NONE
This can be used to validate that an address range is mapped but without
being readable or writable.

It will be used by an updated implementation of mincore().

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20230422100314.1650-2-thomas@t-8ch.de>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
  • Loading branch information
t-8ch authored and vivier committed May 17, 2023
1 parent b67e5cb commit 64d0601
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions linux-user/qemu.h
Expand Up @@ -168,6 +168,7 @@ abi_long do_brk(abi_ulong new_brk);

/* user access */

#define VERIFY_NONE 0
#define VERIFY_READ PAGE_READ
#define VERIFY_WRITE (PAGE_READ | PAGE_WRITE)

Expand Down

0 comments on commit 64d0601

Please sign in to comment.