On 22.12.2023 16:13, Oleksii Kurochko wrote:> ---
a/xen/arch/riscv/include/asm/current.h
> +++ b/xen/arch/riscv/include/asm/current.h
> @@ -3,6 +3,21 @@
> #ifndef __ASM_CURRENT_H
> #define __ASM_CURRENT_H
>
> +#include <xen/bug.h>
> +#include <xen/percpu.h>
> +#include <asm/processor.h>
> +
> +#ifndef __ASSEMBLY__
> +
> +/* Which VCPU is "current" on this PCPU. */
> +DECLARE_PER_CPU(struct vcpu *, curr_vcpu);
> +
> +#define current this_cpu(curr_vcpu)
> +#define set_current(vcpu) do { current = (vcpu); } while (0)
> +#define get_cpu_current(cpu) per_cpu(curr_vcpu, cpu)
> +
> +#define guest_cpu_user_regs() ({ BUG(); NULL; })
Again with this changed to the "canonical" placeholder:
Acked-by: Jan Beulich <[email protected]>
Jan