From: Wen Congyang <wency@cn.fujitsu.com>
To: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Question about cpu_get_phys_page_debug()
Date: Fri, 11 Nov 2011 11:23:57 +0800 [thread overview]
Message-ID: <4EBC954D.1050808@cn.fujitsu.com> (raw)
In the function cpu_get_phys_page_debug()(In the file target-i386/helper.c):
I find the following codes:
====================
page_offset = (addr & TARGET_PAGE_MASK) & (page_size - 1);
paddr = (pte & TARGET_PAGE_MASK) + page_offset;
====================
The page_offset is always 4K aligned.
I think the offset should be the offset in the page, so it should
not be aligned.
Who can tell me the reason?
Thanks
Wen Congyang
reply other threads:[~2011-11-11 3:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4EBC954D.1050808@cn.fujitsu.com \
--to=wency@cn.fujitsu.com \
--cc=qemu-devel@nongnu.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 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.