xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* get_gfn_query() locking
@ 2012-10-30  9:23 Jan Beulich
  2012-10-30  9:36 ` Tim Deegan
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Beulich @ 2012-10-30  9:23 UTC (permalink / raw)
  To: Andres Lagar-Cavilla, Tim Deegan; +Cc: xen-devel

Tim, Andres,

while looking at how "X86/vMCE: handle broken page occurred
before migration" uses the p2m code, I wondered whether the
comment

 * N.B. get_gfn_query() is the _only_ one guaranteed not to take the
 * p2m lock; none of the others can be called with the p2m or paging
 * lock held. */

isn't stale - afaict with get_gfn_type_access() passing "1" for the
"locked" parameter of __get_gfn_type_access(), there's no way
to avoid the locking without using __get_gfn_type_access()
directly. And then again, with the p2m lock being recursive these
days, I don't think there's any harm calling the other methods
here with that lock held.

Jan

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

end of thread, other threads:[~2012-10-31 17:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-30  9:23 get_gfn_query() locking Jan Beulich
2012-10-30  9:36 ` Tim Deegan
2012-10-30 14:53   ` Andres Lagar-Cavilla
2012-10-30 15:06     ` Tim Deegan
2012-10-31 17:04       ` Andres Lagar-Cavilla
2012-10-31 17:07         ` Tim Deegan
2012-10-30 15:09     ` Jan Beulich
2012-10-31 17:05       ` Andres Lagar-Cavilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).