All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: Qiao Nuohan <qiaonuohan@cn.fujitsu.com>
Cc: aliguori@us.ibm.com, Jesse Larrew <jlarrew@linux.vnet.ibm.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Fix mask of pte index
Date: Tue, 21 May 2013 13:32:54 +0200	[thread overview]
Message-ID: <519B5B66.2000806@suse.de> (raw)
In-Reply-To: <519B112E.7040100@linux.vnet.ibm.com>

Nuohan,

Am 21.05.2013 08:16, schrieb Jesse Larrew:
> On 05/20/2013 10:00 PM, Qiao Nuohan wrote:
>> Function walk_pte needs pte index to calculate virtual address. However, pte
>> index of PAE paging or IA-32e paging is 9 bit, so the mask should be 0x1ff.
>> ---
>>  target-i386/arch_memory_mapping.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/target-i386/arch_memory_mapping.c b/target-i386/arch_memory_mapping.c
>> index 844893f..a2eb7e7 100644
>> --- a/target-i386/arch_memory_mapping.c
>> +++ b/target-i386/arch_memory_mapping.c
>> @@ -38,7 +38,7 @@ static void walk_pte(MemoryMappingList *list, hwaddr pte_start_addr,
>>              continue;
>>          }
>>
>> -        start_vaddr = start_line_addr | ((i & 0x1fff) << 12);
>> +        start_vaddr = start_line_addr | ((i & 0x1ff) << 12);
>>          memory_mapping_list_add_merge_sorted(list, start_paddr,
>>                                               start_vaddr, 1 << 12);
>>      }
>>
> 
> Verified that this agrees with the spec for IA-32e/PAE paging. Note that
> walk_pte2() is correct; only walk_pte() has the typo.
> 
> Reviewed by: Jesse Larrew <jlarrew@linux.vnet.ibm.com>

This patch is missing a Signed-off-by!

If you can reply with one, I'd fix up the subject for you (it should
indicate where you are fixing it) and queue it together with my CPU'ish
memory_mapping refactorings, if no one objects.

Regards,
Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

  reply	other threads:[~2013-05-21 11:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-21  3:00 [Qemu-devel] [PATCH] Fix mask of pte index Qiao Nuohan
2013-05-21  6:16 ` Jesse Larrew
2013-05-21 11:32   ` Andreas Färber [this message]
2013-05-21 12:05     ` Qiao Nuohan
2013-05-21 16:53       ` Andreas Färber
2013-05-22  1:21         ` Qiao Nuohan
2013-05-22  1:25           ` Qiao Nuohan
2013-05-22 12:48             ` Andreas Färber

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=519B5B66.2000806@suse.de \
    --to=afaerber@suse.de \
    --cc=aliguori@us.ibm.com \
    --cc=jlarrew@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qiaonuohan@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 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.