From: Olaf Hering <olaf@aepfle.de>
To: Patrick Colp <pjcolp@cs.ubc.ca>
Cc: xen-devel@lists.xensource.com
Subject: paged granttable entries
Date: Thu, 26 Aug 2010 14:13:55 +0200 [thread overview]
Message-ID: <20100826121355.GA6254@aepfle.de> (raw)
Patrick,
after adding some debug to __gnttab_map_grant_ref(), I found the gfn
referenced by sha1->frame has p2m_type_t == p2m_ram_paged. As a result,
the following code gets into the 'iomem_access_permitted(rd, frame, frame)' branch.
Some naive approach to call p2m_mem_paging_populate() and return
GNTST_eagain lead to a deadlock in the guest. The guest reponds to keypresses,
xm destroy does not work.
How are paged out granttable entries supposed to come back when the
guest did not do the GNTTABOP_map_grant_ref hypercall yet? I tried to
skip gfn listed in the guests granttable in p2m_mem_paging_nominate, but
that doesnt appear to work because new pages can be added to the
granttable at anytime by the drivers.
Olaf
next reply other threads:[~2010-08-26 12:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-26 12:13 Olaf Hering [this message]
2010-08-26 14:50 ` paged granttable entries Olaf Hering
2010-08-26 18:17 ` Patrick Colp
2010-08-31 19:24 ` Olaf Hering
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=20100826121355.GA6254@aepfle.de \
--to=olaf@aepfle.de \
--cc=pjcolp@cs.ubc.ca \
--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.