Re: [PATCH] kvm: x86: limit the maximum number of vPMU fixed counters to 3

From: Xu, Like
Date: Wed Jul 08 2020 - 10:22:40 EST


On 2020/7/8 19:09, Paolo Bonzini wrote:
On 08/07/20 09:51, Xu, Like wrote:
Kindly ping.

I think we may need this patch, as we limit the maximum vPMU version to 2:
ÂÂÂ eax.split.version_id = min(cap.version, 2);
I don't think this is a problem. Are you planning to add support for
the fourth counter?
Yes, we plan to provide this support on the KVM after fully enabling the fourth
counter (and an accompanying special counter) on the host perf side.

This may require one or two kernel cycles, so I have to prevent it from
being exposed to non-linux guest with this fix. Thanks for your support.

Thanks,
Like Xu

Paolo