Xen is an open-source hypervisor that allows multiple virtual machines to run on a single physical machine. Xen-aware debugging refers to the debugging techniques and tools specifically designed for debugging software running on the Xen hypervisor. With Xen-aware debug support enabled, you can conduct Xen-aware debug.
Follow these steps to enable Xen-aware debug.
- Refer to PetaLinux Tools Documentation: Reference Guide (UG1144) to prepare the environment for booting a pre-built Linux as dom0.
- Start the Vitis Unified IDE.
- Create and build the application.
- Launch the Debug configuration.
- Click New Launch Configuration.
- Select the Target Connection and set the target mode as Attach to running process.
- Click the Debug button to start the debug session.
- Right click on APU Cortex A72 #0 and click on Manage symbol files in the Debug view.
- Click the + button to add symbols.
Select the symbol file
xen-symsgenerated in the PetaLinux project in the first step, enable all the following options and click the Ok button. This step maps the symbols of the Xen hypervisor. - Right click VCPU #0 and click Manage Symbol
files. Add the
vmlinuxsymbol file from the PetaLinux project in the first step for DOM0. Do not enable the OS Awareness option in this step. - Select VCPU #0 and Pause in the Debug view.
- Check the Call Stack view to ensure the mapping of all symbol files. Use the step-in and step-over options for further debugging.