Xen ARM DEBUG hypercalls

From Xen
Revision as of 17:40, 13 October 2020 by StefanoStabellini (talk | contribs) (Created page with "If you are trying to DEBUG early boot code in your guest kernel, either Dom0 or DomU, you might find the Xen on ARM DEBUG hypercalls useful. They are only available to DEBUG b...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

If you are trying to DEBUG early boot code in your guest kernel, either Dom0 or DomU, you might find the Xen on ARM DEBUG hypercalls useful. They are only available to DEBUG builds, i.e. builds with Debugging Options ---> Developer Checks enabled.

Simply add one of the following hvc instructions to your code, and Xen will print something on the console for you:

 hvc 0xfffd

prints the program counter

 hvc 0xfffe

prints first byte of register x0

 hvc 0xffff

prints all registers and stack of the guest

 hvc 0xffe0-0xffef

prints program counter and a register: e0 prints x0, e1 prints x1, etc.