lkml.org 
[lkml]   [2021]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH] kvm: add suspend pm-notifier
From
Date
On 04/06/21 09:21, Vitaly Kuznetsov wrote:
>>
>> 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.

Paolo

\
 
 \ /
  Last update: 2021-06-04 09:25    [W:0.116 / U:0.548 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site