From: weiming <zephyr.zhao@gmail.com>
To: Tim Deegan <Tim.Deegan@citrix.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: where is writable page table implemented?
Date: Tue, 1 Apr 2008 11:37:54 -0400 [thread overview]
Message-ID: <add59a3f0804010837p66627938ucba0837d0442b35c@mail.gmail.com> (raw)
In-Reply-To: <20080401083825.GA4628@york.uk.xensource.com>
[-- Attachment #1.1: Type: text/plain, Size: 1211 bytes --]
Hi Tim,
Do you know under which situation we use writable page table instead of
calling update_va_mapping?
And do you know the purpose of the counter defined in
page_info.u.in_use.type_info?
I understand that xen needs to keep track of the type of each page
(L1_page_table_page, L2_page_table_page, pinned, unpinned, validated, etc),
but why do we need to use the lower 26 bits of "type_info" as a counter? (in
"get_page_type()", the counter is increased. ) Similarly, get_page() /
put_page() also increases/decreases the page.count_info. Could you please
give me some hint about the usage of such counters?
Thanks a lot!
Weiming
On Tue, Apr 1, 2008 at 4:38 AM, Tim Deegan <Tim.Deegan@citrix.com> wrote:
> At 19:43 -0400 on 30 Mar (1206906207), weiming wrote:
> > with writable page table, why guest os still calls update_va_mapping to
> > update the pte?
>
> It's faster to call into Xen with an explicit modification, or a list of
> them, than to have xen trap and do a full x86 instruction emaulation to
> figure out what you werere doing.
>
> Cheers,
>
> Tim.
>
> --
> Tim Deegan <Tim.Deegan@citrix.com>
> Principal Software Engineer, Citrix Systems (R&D) Ltd.
> [Company #02300071, SL9 0DZ, UK.]
>
[-- Attachment #1.2: Type: text/html, Size: 1677 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2008-04-01 15:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-24 16:18 where is writable page table implemented? weiming
2008-03-24 16:25 ` Tim Deegan
2008-03-24 18:26 ` weiming
2008-03-25 10:43 ` Tim Deegan
2008-03-30 23:43 ` weiming
2008-04-01 8:38 ` Tim Deegan
2008-04-01 15:37 ` weiming [this message]
2008-04-01 16:17 ` Tim Deegan
2008-03-25 16:30 ` Mark Williamson
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=add59a3f0804010837p66627938ucba0837d0442b35c@mail.gmail.com \
--to=zephyr.zhao@gmail.com \
--cc=Tim.Deegan@citrix.com \
--cc=xen-devel@lists.xensource.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.