From: Lai Jiangshan <laijs@cn.fujitsu.com>
To: "kvm@vger.kernel.org" <kvm@vger.kernel.org>,
Avi Kivity <avi@redhat.com>,
Marcelo Tosatti <mtosatti@redhat.com>,
Gleb Natapov <gleb@redhat.com>
Subject: Re: [PATCH] kvm,async_pf: add missing kvm_async_pf_hash_reset()
Date: Mon, 21 Feb 2011 11:24:50 +0800 [thread overview]
Message-ID: <4D61DB02.6060009@cn.fujitsu.com> (raw)
In-Reply-To: <4D61DA3A.7040501@cn.fujitsu.com>
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>
> 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
>
next prev parent reply other threads:[~2011-02-21 3:24 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 [this message]
2011-02-23 13:22 ` Gleb Natapov
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=4D61DB02.6060009@cn.fujitsu.com \
--to=laijs@cn.fujitsu.com \
--cc=avi@redhat.com \
--cc=gleb@redhat.com \
--cc=kvm@vger.kernel.org \
--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.