All of lore.kernel.org
 help / color / mirror / Atom feed
* paged granttable entries
@ 2010-08-26 12:13 Olaf Hering
  2010-08-26 14:50 ` Olaf Hering
  0 siblings, 1 reply; 4+ messages in thread
From: Olaf Hering @ 2010-08-26 12:13 UTC (permalink / raw)
  To: Patrick Colp; +Cc: xen-devel


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-31 19:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-26 12:13 paged granttable entries Olaf Hering
2010-08-26 14:50 ` Olaf Hering
2010-08-26 18:17   ` Patrick Colp
2010-08-31 19:24     ` Olaf Hering

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.