All of lore.kernel.org
 help / color / mirror / Atom feed
* need for ClearPageReserved() in blktap2 code
@ 2010-08-09 15:47 Jan Beulich
  2010-08-09 17:59 ` Jake Wires
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2010-08-09 15:47 UTC (permalink / raw)
  To: jake.wires, dmeyer; +Cc: xen-devel

Jake, Dutch,

while I can see the need for this on the ring pages, I have some
difficulty understanding why it needs to be invoked on the individual
data pages as they get removed from ring->foreign_map.map: I
understand that SetPageReserved() when inserting them is needed
(or at least desirable) since in the 2.6.18 and pv-ops trees the
balloon driver doesn't guarantee pages being returned from
alloc_empty_pages_and_page_vec() are marked reserved (which
minimally I consider an inconsistency). In our trees, the balloon
driver does guarantee this, but it expects the pages to also be
returned in reserved state - which blktap2 breaks because of
the arbitrary(?) clearing of the flag.

The question hence really is whether that clearing is really
necessary, i.e. whether the pages, when not in some
ring->foreign_map.map[], validly and reasonably can (should) be
considered non-reserved - to me it appears there's no need for
this.

Thanks for letting my know your thoughts on this,
Jan

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

* RE: need for ClearPageReserved() in blktap2 code
  2010-08-09 15:47 need for ClearPageReserved() in blktap2 code Jan Beulich
@ 2010-08-09 17:59 ` Jake Wires
  0 siblings, 0 replies; 2+ messages in thread
From: Jake Wires @ 2010-08-09 17:59 UTC (permalink / raw)
  To: Jan Beulich, dmeyer; +Cc: xen-devel



> -----Original Message-----
> From: Jan Beulich [mailto:JBeulich@novell.com]
> Sent: Monday, August 09, 2010 8:47 AM
> To: Jake Wires; dmeyer@cs.ubc.ca
> Cc: xen-devel@lists.xensource.com
> Subject: need for ClearPageReserved() in blktap2 code
> 
> Jake, Dutch,
> 
> while I can see the need for this on the ring pages, I have some
> difficulty understanding why it needs to be invoked on the individual
> data pages as they get removed from ring->foreign_map.map: I
> understand that SetPageReserved() when inserting them is needed
> (or at least desirable) since in the 2.6.18 and pv-ops trees the
> balloon driver doesn't guarantee pages being returned from
> alloc_empty_pages_and_page_vec() are marked reserved (which
> minimally I consider an inconsistency). In our trees, the balloon
> driver does guarantee this, but it expects the pages to also be
> returned in reserved state - which blktap2 breaks because of
> the arbitrary(?) clearing of the flag.
> 
> The question hence really is whether that clearing is really
> necessary, i.e. whether the pages, when not in some
> ring->foreign_map.map[], validly and reasonably can (should) be
> considered non-reserved - to me it appears there's no need for
> this.

Yup, seems reasonable for these pages to remain reserved the whole time. 

> 
> Thanks for letting my know your thoughts on this,
> Jan

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

end of thread, other threads:[~2010-08-09 17:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-09 15:47 need for ClearPageReserved() in blktap2 code Jan Beulich
2010-08-09 17:59 ` Jake Wires

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.