Re: [PATCH v2 08/14] KVM: x86: remove notifiers from PIT discard policy

From: Paolo Bonzini
Date: Thu Feb 18 2016 - 13:06:09 EST




On 17/02/2016 20:14, Radim KrÄmÃÅ wrote:
> Discard policy doesn't rely on information from notifiers, so we don't
> need to register notifiers unconditionally. We kept correct counts in
> case userspace switched between policies during runtime, but that can be
> avoided by reseting the state.

Ah okay so the WARN_ON could actually be triggered. But otherwise I
think my suggestion should work.

Paolo