How can I enable vPMU for one VM?

I want to enable virtual Performance Monitoring Unit (vPMU) for a single VM so I can use perf. I’m aware of XSA-163. The VM will be an isolated AppVM without network access and only AppVM with vPMU.

I tried editing the libvirt XML template for the HVM or PV VM by modifying: /etc/templates/libvirt/xen/by-name/<vm>.xml

and adding:

{% extends 'libvirt/xen.xml' %}
<vpmu='on'/>
1 Like

Have you found a solution/way to do this?

I need to profile something using intel vTune from time to time, but without vpmu that doesn’t work too well (all the interesting pieces require that). I’m trying to figure out if using appVM is possible, or if I need to e.g. buy a separate hardware for that.

1 Like

I didn’t find a solution, but I’m unfamiliar with configuring Xen and Qubes. I gave up on profiling in Qubes.