Re: [PATCH v11 4/5] xen/riscv: enable GENERIC_BUG_FRAME

2024-08-02 Thread oleksii . kurochko
On Fri, 2024-08-02 at 13:18 +0200, Jan Beulich wrote: > On 02.08.2024 13:02, oleksii.kuroc...@gmail.com wrote: > > There is something what we need is mentioned here: > > https://github.com/riscv-non-isa/riscv-asm-manual/blob/main/riscv-asm.md#instruction-aliases > > But the problem is that is "de-f

Re: [PATCH v11 4/5] xen/riscv: enable GENERIC_BUG_FRAME

2024-08-02 Thread Jan Beulich
On 02.08.2024 13:02, oleksii.kuroc...@gmail.com wrote: > There is something what we need is mentioned here: > https://github.com/riscv-non-isa/riscv-asm-manual/blob/main/riscv-asm.md#instruction-aliases > But the problem is that is "de-facto" standard, but not really standard > instruction. Anyway,

Re: [PATCH v11 4/5] xen/riscv: enable GENERIC_BUG_FRAME

2024-08-02 Thread oleksii . kurochko
On Fri, 2024-08-02 at 12:30 +0200, Jan Beulich wrote: > On 02.08.2024 12:22, oleksii.kuroc...@gmail.com wrote: > > On Fri, 2024-08-02 at 11:21 +0200, Jan Beulich wrote: > > > On 02.08.2024 11:14, oleksii.kuroc...@gmail.com wrote: > > > > On Mon, 2024-07-29 at 15:00 +0200, Jan Beulich wrote: > > > >

Re: [PATCH v11 4/5] xen/riscv: enable GENERIC_BUG_FRAME

2024-08-02 Thread Jan Beulich
On 02.08.2024 12:22, oleksii.kuroc...@gmail.com wrote: > On Fri, 2024-08-02 at 11:21 +0200, Jan Beulich wrote: >> On 02.08.2024 11:14, oleksii.kuroc...@gmail.com wrote: >>> On Mon, 2024-07-29 at 15:00 +0200, Jan Beulich wrote: > To have working BUG(), WARN(), ASSERT, > run_in_exception_hand

Re: [PATCH v11 4/5] xen/riscv: enable GENERIC_BUG_FRAME

2024-08-02 Thread oleksii . kurochko
On Fri, 2024-08-02 at 11:21 +0200, Jan Beulich wrote: > On 02.08.2024 11:14, oleksii.kuroc...@gmail.com wrote: > > On Mon, 2024-07-29 at 15:00 +0200, Jan Beulich wrote: > > > > To have working BUG(), WARN(), ASSERT, > > > > run_in_exception_handler() > > > > it is needed to enable GENERIC_BUG_FRAME

Re: [PATCH v11 4/5] xen/riscv: enable GENERIC_BUG_FRAME

2024-08-02 Thread Jan Beulich
On 02.08.2024 11:14, oleksii.kuroc...@gmail.com wrote: > On Mon, 2024-07-29 at 15:00 +0200, Jan Beulich wrote: >>> To have working BUG(), WARN(), ASSERT, run_in_exception_handler() >>> it is needed to enable GENERIC_BUG_FRAME. >>> >>> ebreak is used as BUG_insn so when macros from are >>> used, an

Re: [PATCH v11 4/5] xen/riscv: enable GENERIC_BUG_FRAME

2024-08-02 Thread oleksii . kurochko
On Mon, 2024-07-29 at 15:00 +0200, Jan Beulich wrote: > > To have working BUG(), WARN(), ASSERT, run_in_exception_handler() > > it is needed to enable GENERIC_BUG_FRAME. > > > > ebreak is used as BUG_insn so when macros from are > > used, an exception with BREAKPOINT cause will be generated. > >

Re: [PATCH v11 4/5] xen/riscv: enable GENERIC_BUG_FRAME

2024-07-29 Thread oleksii . kurochko
On Mon, 2024-07-29 at 15:00 +0200, Jan Beulich wrote: > On 24.07.2024 17:31, Oleksii Kurochko wrote: > > To have working BUG(), WARN(), ASSERT, run_in_exception_handler() > > it is needed to enable GENERIC_BUG_FRAME. > > > > ebreak is used as BUG_insn so when macros from are > > used, an exceptio

Re: [PATCH v11 4/5] xen/riscv: enable GENERIC_BUG_FRAME

2024-07-29 Thread Jan Beulich
On 24.07.2024 17:31, Oleksii Kurochko wrote: > To have working BUG(), WARN(), ASSERT, run_in_exception_handler() > it is needed to enable GENERIC_BUG_FRAME. > > ebreak is used as BUG_insn so when macros from are > used, an exception with BREAKPOINT cause will be generated. > > ebreak triggers a

[PATCH v11 4/5] xen/riscv: enable GENERIC_BUG_FRAME

2024-07-24 Thread Oleksii Kurochko
To have working BUG(), WARN(), ASSERT, run_in_exception_handler() it is needed to enable GENERIC_BUG_FRAME. ebreak is used as BUG_insn so when macros from are used, an exception with BREAKPOINT cause will be generated. ebreak triggers a debug trap, which starts in debug mode and is then filtered