public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
To: Avi Kivity <avi@redhat.com>
Cc: kvm@vger.kernel.org, Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Subject: Re: [PATCH 3/3] KVM MMU: Take sp level into account when calculating quadran
Date: Fri, 23 Apr 2010 16:10:47 +0800	[thread overview]
Message-ID: <4BD15607.3000000@cn.fujitsu.com> (raw)
In-Reply-To: <4BD01820.3050809@cn.fujitsu.com>

Gui Jianfeng wrote:
> Take sp level into account when calculating quadrant, because only when
> level == PT_PAGE_TABLE_LEVEL, quadrant is needed.

Please ignore this patch, Sorry for the noise.

Gui

> 
> Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
> ---
>  arch/x86/kvm/mmu.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
> index 640b82d..2a35a65 100644
> --- a/arch/x86/kvm/mmu.c
> +++ b/arch/x86/kvm/mmu.c
> @@ -1324,7 +1324,8 @@ static struct kvm_mmu_page *kvm_mmu_get_page(struct kvm_vcpu *vcpu,
>  	if (role.direct)
>  		role.cr4_pae = 0;
>  	role.access = access;
> -	if (vcpu->arch.mmu.root_level <= PT32_ROOT_LEVEL) {
> +	if (vcpu->arch.mmu.root_level <= PT32_ROOT_LEVEL &&
> +	    level == PT_PAGE_TABLE_LEVEL) {
>  		quadrant = gaddr >> (PAGE_SHIFT + (PT64_PT_BITS * level));
>  		quadrant &= (1 << ((PT32_PT_BITS - PT64_PT_BITS) * level)) - 1;
>  		role.quadrant = quadrant;


      reply	other threads:[~2010-04-23  8:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-22  9:34 [PATCH 3/3] KVM MMU: Take sp level into account when calculating quadran Gui Jianfeng
2010-04-23  8:10 ` Gui Jianfeng [this message]

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=4BD15607.3000000@cn.fujitsu.com \
    --to=guijianfeng@cn.fujitsu.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=xiaoguangrong@cn.fujitsu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox