Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1610628

Re: [PATCH v2] KVM: x86: cleanup the page tracking SRCU instance

From Paolo Bonzini <pbonzini@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2] KVM: x86: cleanup the page tracking SRCU instance
Date 2017-03-28 14:10 +0200
Message-ID <tpY6K-7lr-11@gated-at.bofh.it> (permalink)
References <tpVVg-5DA-11@gated-at.bofh.it> <tpXDJ-6Qq-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 28/03/2017 13:25, Xiao Guangrong wrote:
> 
> 
> On 28/03/2017 5:40 PM, Paolo Bonzini wrote:
> 
>>  void kvm_page_track_init(struct kvm *kvm)
>>  {
>>      struct kvm_page_track_notifier_head *head;
>> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
>> index 64697fe475c3..f2379673912a 100644
>> --- a/arch/x86/kvm/x86.c
>> +++ b/arch/x86/kvm/x86.c
>> @@ -8070,6 +8070,7 @@ void kvm_arch_sync_events(struct kvm *kvm)
>>      cancel_delayed_work_sync(&kvm->arch.kvmclock_update_work);
>>      kvm_free_all_assigned_devices(kvm);
>>      kvm_free_pit(kvm);
>> +    kvm_page_track_cleanup(kvm);
>>  }
> 
> Moving it to kvm_arch_destroy_vm() is better as the init
> function is called in kvm_arch_init_vm().

That's fine too, thanks!.

Paolo

> Otherwise it looks great to me:
> Reviewed-by: Xiao Guangrong <xiaoguangrong.eric@gmail.com>
> 
> Thanks for the fix.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2] KVM: x86: cleanup the page tracking SRCU instance Paolo Bonzini <pbonzini@redhat.com> - 2017-03-28 11:50 +0200
  Re: [PATCH v2] KVM: x86: cleanup the page tracking SRCU instance Xiao Guangrong <xiaoguangrong.eric@gmail.com> - 2017-03-28 13:40 +0200
    Re: [PATCH v2] KVM: x86: cleanup the page tracking SRCU instance Paolo Bonzini <pbonzini@redhat.com> - 2017-03-28 14:10 +0200

csiph-web