On Fri, 3 Jun 2022 08:56:36 +0200 Claudio Imbrenda <imbrenda@xxxxxxxxxxxxx> wrote: > Add an mmu_notifier for protected VMs. The callback function is > triggered when the mm is torn down, and will attempt to convert all > protected vCPUs to non-protected. This allows the mm teardown to use > the destroy page UVC instead of export. > > Also make KVM select CONFIG_MMU_NOTIFIER, needed to use mmu_notifiers. > > Signed-off-by: Claudio Imbrenda <imbrenda@xxxxxxxxxxxxx> > Acked-by: Janosch Frank <frankja@xxxxxxxxxxxxx> Reviewed-by: Nico Boehr <nrb@xxxxxxxxxxxxx>