linux-user: Add new flag VERIFY_NONE
authorThomas Weißschuh <thomas@t-8ch.de>
Sat, 22 Apr 2023 10:03:13 +0000 (12:03 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 17 May 2023 05:20:29 +0000 (07:20 +0200)
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>
linux-user/qemu.h

index e2e93fbd1d5d7cb8fa30cb9ca803ce1b94a1b1cf..92f9f5af41c7d987599b78a5f42006ac269c8f83 100644 (file)
@@ -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)