All of lore.kernel.org
 help / color / mirror / Atom feed
* Converting heap page_infos to contiguous virtual
@ 2016-07-13 19:44 Boris Ostrovsky
  2016-07-13 20:02 ` Andrew Cooper
  0 siblings, 1 reply; 20+ messages in thread
From: Boris Ostrovsky @ 2016-07-13 19:44 UTC (permalink / raw)
  To: xen-devel; +Cc: George Dunlap, Andrew Cooper

I would like to clear a bunch of Xen heap pages at once (i.e. not
page-by-page).

Greatly simplifying things, let's say I grab (in common/page_alloc.c)
    pg = page_list_remove_head(&heap(node, zone, order)

and then

    mfn_t mfn =
_mfn(page_to_mfn(pg));                                        
    char *va = mfn_to_virt(mfn_x(mfn));
    memset(va, 0, 4096 * (1 << order));


Would it be valid to this? Do I need to account for the PDX hole?


Thanks.
-boris





_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

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

end of thread, other threads:[~2016-08-01 12:09 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-13 19:44 Converting heap page_infos to contiguous virtual Boris Ostrovsky
2016-07-13 20:02 ` Andrew Cooper
2016-07-13 20:17   ` Boris Ostrovsky
2016-07-13 20:28     ` Boris Ostrovsky
2016-07-13 20:34     ` Andrew Cooper
2016-07-13 20:57       ` Boris Ostrovsky
2016-07-13 21:06         ` Andrew Cooper
2016-07-13 21:43           ` Boris Ostrovsky
2016-07-14 13:29             ` Andrew Cooper
2016-07-15 14:53               ` Boris Ostrovsky
2016-07-15 15:19                 ` Andrew Cooper
2016-07-15 15:35                   ` Boris Ostrovsky
2016-07-15 16:04                 ` Konrad Rzeszutek Wilk
2016-07-15 16:07                   ` Andrew Cooper
2016-07-14 10:25         ` George Dunlap
2016-07-14 10:34           ` Andrew Cooper
2016-07-14 12:42             ` Julien Grall
2016-07-14 13:10               ` Andrew Cooper
2016-07-15 14:39             ` Boris Ostrovsky
2016-08-01 12:09   ` Jan Beulich

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.