All of lore.kernel.org
 help / color / mirror / Atom feed
* tools: any user of xc_dom_image->allocate?
@ 2015-09-11  7:25 Juergen Gross
  2015-09-11 13:25 ` Andrew Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Juergen Gross @ 2015-09-11  7:25 UTC (permalink / raw)
  To: xen-devel@lists.xen.org, Ian.Campbell@citrix.com, Ian Jackson

While testing xen tools patches to start a pv-domU >512GB I stumbled
over a problem in the domain builder: it is keeping track of the last
allocated virtual address in the memory image it is creating. For
very huge domains (>1TB) this virtual address will wrap around as it is
starting at -2GB and the p2m for such a domain is >2GB.

With a modern pvops kernel (4.3) this would be no problem, as it is
supporting mapping the p2m to an arbitrary address.

In the domain builder, however, I can't currently just ignore the wrap,
as after each memory allocation for the domain image dom->allocate() is
being called with the last allocated virtual address as an argument.
dom->allocate() is allowed to be NULL (in which case it isn't called).

I have found no user of dom->allocate(), deleting it from the struct
xc_dom_image and removing the call sites in xc_dom_core.c didn't break
the build.

Are there any objections to remove the allocate() function in struct
xc_dom_image?


Juergen

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

end of thread, other threads:[~2015-09-11 13:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-11  7:25 tools: any user of xc_dom_image->allocate? Juergen Gross
2015-09-11 13:25 ` Andrew Cooper

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.