From: Keir Fraser <keir@xensource.com>
To: Roger Cruz <rcruz@marathontechnologies.com>,
xen-devel@lists.xensource.com
Cc: Tim Deegan <tim.deegan@xensource.com>
Subject: Re: Walking an HVM's shadow page tables and other memory management questions.
Date: Sat, 07 Jul 2007 09:42:34 +0100 [thread overview]
Message-ID: <C2B5108A.A786%keir@xensource.com> (raw)
In-Reply-To: <F6E30BE76F1FEF4EA1C2FD98939DFB300260DE4E@mtexch.marathontechnologies.com>
[-- Attachment #1.1: Type: text/plain, Size: 1224 bytes --]
The phys-to-machine mechanism needs to be taught about foreign mappings.
Currently it will always assume that the pages mapped into the p2m belong to
the local domain.
For encoding I would suggest the p2m entries have PAGE_PRESENT clear and
then use some special encoding of the N-1 other bits to indicate a foreign
page. I expect then shadow code may need modifying to pass around a foreign
domain pointer in some contexts.
-- Keir
On 6/7/07 20:09, "Roger Cruz" <rcruz@marathontechnologies.com> wrote:
> It looks like get_page_and_type is returning 0.
>
> (XEN) mm.c:633:d3 l1e_get_flags(l1e) =0x63, shadow_mode_external(d)= 0x4000,
> current->domain=0x3,get_page_and_type=0x0, get_page(page, d)=0x0
> (XEN) mm.c:639:d3 Error getting mfn 14f0d4 (pfn 1697) from L1 entry
> 000000014f0d4063 for dom3
>
> Domain 2 is the grantor and Domain 3 is the grantee in this example. It
> appears to me that it is failing because dom3 is not the owner of the shared
> page
>
> if ( unlikely((x & PGC_count_mask) == 0) || /* Not allocated? */
> unlikely((nx & PGC_count_mask) == 0) || /* Count overflow? */
> unlikely(d != _domain) ) /* Wrong owner? */
>
> Any suggestions?
[-- Attachment #1.2: Type: text/html, Size: 2084 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
prev parent reply other threads:[~2007-07-07 8:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-02 20:25 Walking an HVM's shadow page tables and other memory management questions Roger Cruz
2007-07-03 9:04 ` Keir Fraser
2007-07-06 19:09 ` Roger Cruz
2007-07-07 8:42 ` Keir Fraser [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=C2B5108A.A786%keir@xensource.com \
--to=keir@xensource.com \
--cc=rcruz@marathontechnologies.com \
--cc=tim.deegan@xensource.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.