|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v3 28/34] xen/riscv: add required things to current.h
On Tue, 2024-01-23 at 12:35 +0100, Jan Beulich wrote:
> 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 <jbeulich@xxxxxxxx>
Thanks. I'll updarte BUG() part.
~ Oleksii
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |