On Wed, 2018-01-03 at 11:34 +0800, Xiao Guangrong wrote: > On 12/19/2017 03:06 AM, Adalber Lazăr wrote: > > From: Adalbert Lazar <alazar@xxxxxxxxxxxxxxx> > > > > This patch series proposes a VM introspection subsystem for KVM (KVMI). > > > > The previous RFC can be read here: https://marc.info/?l=kvm&m=150514457912721 > > > > These patches were tested on kvm/master, > > commit 43aabca38aa9668eee3c3c1206207034614c0901 (Merge tag 'kvm-arm-fixes-for-v4.15-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD). > > > > In this iteration we refactored the code based on the feedback received > > from Paolo and others. > > I am thinking if we can define some check points in KVM where > BPF programs are allowed to attach, then employ the policies > in BPFs instead... That would be a nice feature to have. For example, we could use it to pre-filter the events (eg. drop EPT #PF events generated by A/D bit updates). Also, sure, given how BPF has evolved in Linux these past few years (see JIT) we could upload some pretty complex introspection logic. Regards, -- Mihai Donțu