Re: [RFC][PATCH] kvm: add suspend pm-notifier
From: Sergey Senozhatsky <senozhatsky@chromium.org>
Date: 2021-06-04 09:23:25
Also in:
kvm, kvmarm, linux-mips, linux-s390, lkml
From: Sergey Senozhatsky <senozhatsky@chromium.org>
Date: 2021-06-04 09:23:25
Also in:
kvm, kvmarm, linux-mips, linux-s390, lkml
On (21/06/04 09:24), Paolo Bonzini wrote:
On 04/06/21 09:21, Vitaly Kuznetsov wrote:quoted
quoted
preempt_notifier_inc(); + kvm_init_pm_notifier(kvm);You've probably thought it through and I didn't but wouldn't it be easier to have one global pm_notifier call for KVM which would go through the list of VMs instead of registering/deregistering a pm_notifier call for every created/destroyed VM?That raises questions on the locking, i.e. if we can we take the kvm_lock safely from the notifier.
Right, I wanted to take the VM lock, rather than subsystem lock (kvm_lock). _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel