All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	Avi Kivity <avi@redhat.com>,
	Marcelo Tosatti <mtosatti@redhat.com>
Subject: Re: [PATCH] kvm,async_pf: add missing kvm_async_pf_hash_reset()
Date: Wed, 23 Feb 2011 15:22:23 +0200	[thread overview]
Message-ID: <20110223132223.GA25876@redhat.com> (raw)
In-Reply-To: <4D61DB02.6060009@cn.fujitsu.com>

On Mon, Feb 21, 2011 at 11:24:50AM +0800, Lai Jiangshan wrote:
> On 02/21/2011 11:21 AM, Lai Jiangshan wrote:
> > 
> > The hash array of async gfns may still contain some left gfns after
> > kvm_clear_async_pf_completion_queue() called, need to clear them.
> > 
> 
> sorry.
> 
> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
> 
Acked-by: Gleb Natapov <gleb@redhat.com>

> > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
> > index 17af71d..dae2d15 100644
> > --- a/arch/x86/kvm/x86.c
> > +++ b/arch/x86/kvm/x86.c
> > @@ -525,8 +525,10 @@ int kvm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0)
> >  
> >  	kvm_x86_ops->set_cr0(vcpu, cr0);
> >  
> > -	if ((cr0 ^ old_cr0) & X86_CR0_PG)
> > +	if ((cr0 ^ old_cr0) & X86_CR0_PG) {
> >  		kvm_clear_async_pf_completion_queue(vcpu);
> > +		kvm_async_pf_hash_reset(vcpu);
> > +	}
> >  
> >  	if ((cr0 ^ old_cr0) & update_bits)
> >  		kvm_mmu_reset_context(vcpu);
> > --
> > To unsubscribe from this list: send the line "unsubscribe kvm" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > 

--
			Gleb.

  reply	other threads:[~2011-02-23 13:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-21  3:21 [PATCH] kvm,async_pf: add missing kvm_async_pf_hash_reset() Lai Jiangshan
2011-02-21  3:24 ` Lai Jiangshan
2011-02-23 13:22   ` Gleb Natapov [this message]
2011-02-27 16:21 ` Avi Kivity

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=20110223132223.GA25876@redhat.com \
    --to=gleb@redhat.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=laijs@cn.fujitsu.com \
    --cc=mtosatti@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.