Re: [PATCH 3/3] KVM: x86/vPMU: Add lazy mechanism to release perf_event per vPMC

From: Peter Zijlstra
Date: Tue Oct 01 2019 - 04:23:45 EST


On Mon, Sep 30, 2019 at 03:22:57PM +0800, Like Xu wrote:
> + union {
> + u8 event_count :7; /* the total number of created perf_events */
> + bool enable_cleanup :1;

That's atrocious, don't ever create a bitfield with base _Bool.

> + } state;