On 24.11.2023 11:30, Oleksii Kurochko wrote: > --- /dev/null > +++ b/xen/arch/riscv/include/asm/guest_access.h > @@ -0,0 +1,29 @@ > +#ifndef __ASM_RISCV_GUEST_ACCESS_H__ > +#define __ASM_RISCV_GUEST_ACCESS_H__ > + > +#include <xen/types.h> > + > +unsigned long raw_copy_to_guest(void *to, const void *from, unsigned len); > +unsigned long raw_copy_from_guest(void *to, const void *from, unsigned len);
For the full build to work, you will need to implement these somewhere. >From the titles of further patches I can't guess where that would be. Note how PPC has decided to have these be inline dummies for the time being. It also looks as if you would also need raw_clear_guest()? > +#define __raw_copy_to_guest raw_copy_to_guest > +#define __raw_copy_from_guest raw_copy_from_guest > + > +#define guest_handle_okay(hnd, nr) (1) > +#define guest_handle_subrange_okay(hnd, first, last) (1) Arm has a comment next to these (actually two, I mean the latter), which I think would be sensible to also have here. > +struct domain; > +unsigned long copy_to_guest_phys(struct domain *d, > + paddr_t gpa, > + void *buf, > + unsigned int len); You don't need this just yet, do you? Jan
