Re: [PATCH v2 8/9] KVM, VMX: Add support for guest/host-only profiling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2011-10-05 at 14:01 +0200, Gleb Natapov wrote:
> +static void atomic_switch_perf_msrs(struct vcpu_vmx *vmx)
> +{
> +       int i, nr_msrs;
> +       struct perf_guest_switch_msr *msrs;
> +
> +       msrs = perf_guest_get_msrs(&nr_msrs);
> +
> +       if (!msrs)
> +               return;
> +
> +       for (i = 0; i < nr_msrs; i++)
> +               if (msrs[i].host == msrs[i].guest)
> +                       clear_atomic_switch_msr(vmx, msrs[i].msr);
> +               else
> +                       add_atomic_switch_msr(vmx, msrs[i].msr, msrs[i].guest,
> +                                       msrs[i].host);
> +} 

I don't think this will actually compile with PERF_EVENTS=n due to
struct perf_guest_switch_msr not being defined.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux