1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 #ifndef ASM__RISCV__GUEST_ACCESS_H 3 #define ASM__RISCV__GUEST_ACCESS_H 4 5 unsigned long raw_copy_to_guest(void *to, const void *from, unsigned len); 6 unsigned long raw_copy_from_guest(void *to, const void *from, unsigned len); 7 unsigned long raw_clear_guest(void *to, unsigned int len); 8 9 #define __raw_copy_to_guest raw_copy_to_guest 10 #define __raw_copy_from_guest raw_copy_from_guest 11 #define __raw_clear_guest raw_clear_guest 12 13 /* 14 * Pre-validate a guest handle. 15 * Allows use of faster __copy_* functions. 16 */ 17 /* All RISCV guests are paging mode external and hence safe */ 18 #define guest_handle_okay(hnd, nr) (1) 19 #define guest_handle_subrange_okay(hnd, first, last) (1) 20 21 #endif /* ASM__RISCV__GUEST_ACCESS_H */ 22 /* 23 * Local variables: 24 * mode: C 25 * c-file-style: "BSD" 26 * c-basic-offset: 4 27 * indent-tabs-mode: nil 28 * End: 29 */ 30