Re: [PATCH v6 4/4] xen/x86: switch x86 to use generic implemetation of bug.h

2023-03-08 Thread Oleksii
On Wed, 2023-03-08 at 16:33 +0100, Jan Beulich wrote: > On 07.03.2023 16:50, Oleksii Kurochko wrote: > > @@ -1166,12 +1167,9 @@ void cpuid_hypervisor_leaves(const struct > > vcpu *v, uint32_t leaf, > >   > >  void do_invalid_op(struct cpu_user_regs *regs) > >  { > > -    const struct bug_frame *bug

Re: [PATCH v6 4/4] xen/x86: switch x86 to use generic implemetation of bug.h

2023-03-08 Thread Jan Beulich
On 07.03.2023 16:50, Oleksii Kurochko wrote: > @@ -1166,12 +1167,9 @@ void cpuid_hypervisor_leaves(const struct vcpu *v, > uint32_t leaf, > > void do_invalid_op(struct cpu_user_regs *regs) > { > -const struct bug_frame *bug = NULL; > u8 bug_insn[2]; > -const char *prefix = "", *fi

[PATCH v6 4/4] xen/x86: switch x86 to use generic implemetation of bug.h

2023-03-07 Thread Oleksii Kurochko
The following changes were made: * Make GENERIC_BUG_FRAME mandatory for X86 * Update asm/bug.h using generic implementation in * Update do_invalid_op using generic do_bug_frame() * Define BUG_DEBUGGER_TRAP_FATAL to debugger_trap_fatal(X86_EXC_GP,regs) * type of eip variable was changed to 'void *'