mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Xiao Guangrong <xiaoguangrong.eric@gmail.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
	linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Cc: gregkh@linuxfoundation.org, dvyukov@google.com, stable@vger.kernel.org
Subject: Re: [PATCH v2] KVM: x86: cleanup the page tracking SRCU instance
Date: Tue, 28 Mar 2017 19:25:21 +0800	[thread overview]
Message-ID: <c9d0a97b-a017-3319-6014-d876405ae2a8@gmail.com> (raw)
In-Reply-To: <1490694038-27270-1-git-send-email-pbonzini@redhat.com>



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().

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

Thanks for the fix.

  reply	other threads:[~2017-03-28 11:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-28  9:40 Paolo Bonzini
2017-03-28 11:25 ` Xiao Guangrong [this message]
2017-03-28 12:06   ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c9d0a97b-a017-3319-6014-d876405ae2a8@gmail.com \
    --to=xiaoguangrong.eric@gmail.com \
    --cc=dvyukov@google.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®