lkml.org 
[lkml]   [2019]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v2] KVM: x86: PMU Event Filter
    From
    Date
    On 11/07/19 03:25, Eric Hankland wrote:
    >
    > +/* for KVM_CAP_PMU_EVENT_FILTER */
    > +struct kvm_pmu_event_filter {
    > + __u32 type;
    > + __u32 nevents;
    > + __u64 events[0];
    > +};
    > +
    > +#define KVM_PMU_EVENT_WHITELIST 0
    > +#define KVM_PMU_EVENT_BLACKLIST 1
    > +

    "type" is a bit vague, so I am thinking of replacing it with "action"
    and rename the constants to KVM_PMU_EVENT_ACCEPT/REJECT. What do you think?

    Paolo

    \
     
     \ /
      Last update: 2019-07-11 13:23    [W:5.341 / U:0.164 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site