On 12/08/20 14:56, Xu, Like wrote:The exclude_kernel events from the QEMU or whoever else has opened /dev/kvm.
My proposal is to define:What are "/dev/kvm user space events"? In any case, this patch should
the "hypervisor privilege levels" events in the KVM/x86 context as
all the host kernel events plus /dev/kvm user space events.
be included only in the series that adds exclude_hv support in arch/x86.
Paolo
If we add ".exclude_hv = 1" in the pmc_reprogram_counter(),
do you see any side effect to cover the above usages?
The fact that exclude_hv has never been used in x86 does help
the generic perf code to handle permission checks in a more concise way.