cancel
Showing results for 
Search instead for 
Did you mean: 

Server Processors

DanielJ_Valve
Journeyman III

Windows AMD uProf on Zen 2 with Linux KVM Hypervisor

Hi, uProf is listed as supporting Windows guest VMs on Linux KVM Hypervisors, but I am unable to profile my desired application after installing AMDuProf inside the guest and attempting to start an application trace. I'm using a Zen 2 CPU for this.

Failed to load driver.
If you have recently upgraded or installed AMD uProf, please reboot and try again.
An unsupported hypervisor has been detected.
CPU Profiling driver does not support running on this hypervisor guest operating system.
CPU Profiling is unavailable.

The pertinent section of my libvirt guest definition, in case uProf is looking for a specific vendor ID string or CPU feature bits:

 

  <features>
    <acpi/>
    <apic/>
    <hyperv>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
      <vpindex state='on'/>
      <synic state='on'/>
      <stimer state='on'>
        <direct state='on'/>
      </stimer>
      <vendor_id state='on' value='KVM Hv'/>
    </hyperv>
    <kvm>
      <hidden state='on'/>
      <hint-dedicated state='on'/>
    </kvm>
    <pmu state='off'/>
    <vmport state='off'/>
    <ioapic driver='kvm'/>
  </features>
  <cpu mode='host-passthrough' check='none' migratable='off'>
    <topology sockets='1' dies='1' cores='31' threads='2'/>
    <cache level='3' mode='emulate'/>
    <feature policy='disable' name='svm'/>
    <feature policy='require' name='apic'/>
    <feature policy='require' name='invtsc'/>
    <feature policy='require' name='hypervisor'/>
    <feature policy='require' name='topoext'/>
  </cpu>

 

 

I've verified that IBS is working correctly on the Linux hypervisor via the AMD_IBS_Toolkit; the ibs_test application is successfully able to retrieve IBS samples from the CPU. But the guest AMDuProf both generates the above hypervisor error, as well as stating that IBS is not enabled in the BIOS settings (which I'm assuming is the same issue).

1 Solution
swarup
Staff

Hi @DanielJ_Valve ,

Looks like Hyper-V Enlightenments are enabled in KVM. Right now uProf v3.4 does not support Enlightenments. Please try uProf (on Windows guest) after disabling Enlightenments in KVM.

IBS is not supported by uProf 3.4 on a virtualized environment.

View solution in original post

0 Likes
2 Replies
swarup
Staff

Hi @DanielJ_Valve ,

Looks like Hyper-V Enlightenments are enabled in KVM. Right now uProf v3.4 does not support Enlightenments. Please try uProf (on Windows guest) after disabling Enlightenments in KVM.

IBS is not supported by uProf 3.4 on a virtualized environment.

0 Likes

Thank you for the response, I'll give that a try. Also apologies for the two threads, I'm not sure how that happened I thought one was lost in the abyss during account creation...

0 Likes