Message ID | 492c6183a8248046f0b6fdb186ad5b33953c3b24.1700761381.git.oleksii.kurochko@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Enable build of full Xen for RISC-V | expand |
On 24.11.2023 11:30, Oleksii Kurochko wrote: > --- /dev/null > +++ b/xen/arch/riscv/include/asm/event.h > @@ -0,0 +1,34 @@ > +#ifndef __ASM_RISCV_EVENT_H__ > +#define __ASM_RISCV_EVENT_H__ > + > +void vcpu_mark_events_pending(struct vcpu *v); > + > +static inline int vcpu_event_delivery_is_enabled(struct vcpu *v) > +{ > + return 0; > +} > + > +static inline int local_events_need_delivery(void) > +{ > + return 0; > +} > + > +static inline void local_event_delivery_enable(void) > +{ > +} These are stubs aiui, and hence would better have BUG() in them? > +/* No arch specific virq definition now. Default to global. */ > +static inline bool arch_virq_is_global(unsigned int virq) > +{ > + return true; > +} This otoh may well remain as is for the foreseeable future. Jan
On Thu, 2023-12-14 at 16:08 +0100, Jan Beulich wrote: > On 24.11.2023 11:30, Oleksii Kurochko wrote: > > --- /dev/null > > +++ b/xen/arch/riscv/include/asm/event.h > > @@ -0,0 +1,34 @@ > > +#ifndef __ASM_RISCV_EVENT_H__ > > +#define __ASM_RISCV_EVENT_H__ > > + > > +void vcpu_mark_events_pending(struct vcpu *v); > > + > > +static inline int vcpu_event_delivery_is_enabled(struct vcpu *v) > > +{ > > + return 0; > > +} > > + > > +static inline int local_events_need_delivery(void) > > +{ > > + return 0; > > +} > > + > > +static inline void local_event_delivery_enable(void) > > +{ > > +} > > These are stubs aiui, and hence would better have BUG() in them? Yes, for now it would be better to add BUG(). Thanks. > > > +/* No arch specific virq definition now. Default to global. */ > > +static inline bool arch_virq_is_global(unsigned int virq) > > +{ > > + return true; > > +} > > This otoh may well remain as is for the foreseeable future. > > Jan
diff --git a/xen/arch/riscv/include/asm/event.h b/xen/arch/riscv/include/asm/event.h new file mode 100644 index 0000000000..48630c77b3 --- /dev/null +++ b/xen/arch/riscv/include/asm/event.h @@ -0,0 +1,34 @@ +#ifndef __ASM_RISCV_EVENT_H__ +#define __ASM_RISCV_EVENT_H__ + +void vcpu_mark_events_pending(struct vcpu *v); + +static inline int vcpu_event_delivery_is_enabled(struct vcpu *v) +{ + return 0; +} + +static inline int local_events_need_delivery(void) +{ + return 0; +} + +static inline void local_event_delivery_enable(void) +{ +} + +/* No arch specific virq definition now. Default to global. */ +static inline bool arch_virq_is_global(unsigned int virq) +{ + return true; +} + +#endif +/* + * Local variables: + * mode: C + * c-file-style: "BSD" + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + */
Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com> --- Changes in V2: - Nothing changed. Only rebase. --- xen/arch/riscv/include/asm/event.h | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 xen/arch/riscv/include/asm/event.h