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.
To enable Xen-aware debug, follow the steps below:
- 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. A dialog box for adding symbols file is displayed.
- Click the + button to add symbols. Select the symbol file
xen-syms
generated 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. Xen is now enabled and can be observed in the Debug view. - Right click on VCPU #0 and click Manage Symbol files and add the
vmlinux
symbol file generated in 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 all the symbol files are mapped, then use the step-in and step-over options for further debugging.