xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] xen/privcmd: support for paged-out frames
@ 2012-08-23 17:13 David Vrabel
  2012-08-23 17:13 ` [PATCH 1/3] xen/mm: return more precise error from xen_remap_domain_range() David Vrabel
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: David Vrabel @ 2012-08-23 17:13 UTC (permalink / raw)
  To: xen-devel
  Cc: Andres Lagar-Cavilla, Keir Fraser, David Vrabel,
	Konrad Rzeszutek Wilk

This series is a straight forward-port of some functionality from
classic kernels to support Xen hosts that do paging of guests.

This isn't functionality the XenServer makes use of so I've not tested
these with paging in use (GridCentric requested that our older kernels
supported this and I'm just doing the forward port).

I'm not entirely happy about the approach used here because:

1. It relies on the meaning of the return code of the update_mmu
hypercall and it assumes the value Xen used for -ENOENT is the same
the kernel uses. This does not appear to be a formal part of the
hypercall ABI.

Keir, can you comment on this?

2. It seems more sensible to have the kernel do the retries instead of
libxc doing them.  The kernel has to have a mechanism for this any way
(for mapping back/front rings).

3. The current way of handling paged-out frames by repeatedly retrying
is a bit lame.  Shouldn't there be some event that the guest waiting
for the frame can wait on instead?  By moving the retry mechanism into
the kernel we can change this without impacting the ABI to userspace.

David

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

end of thread, other threads:[~2012-08-24 18:01 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-23 17:13 [RFC PATCH 0/3] xen/privcmd: support for paged-out frames David Vrabel
2012-08-23 17:13 ` [PATCH 1/3] xen/mm: return more precise error from xen_remap_domain_range() David Vrabel
2012-08-23 17:13 ` [PATCH 2/3] xen/privcmd: report paged-out frames in PRIVCMD_MMAPBATCH ioctl David Vrabel
2012-08-24  1:34   ` Andres Lagar-Cavilla
2012-08-24 18:01   ` Bastian Blank
2012-08-23 17:13 ` [PATCH 3/3] xen/privcmd: add PRIVCMD_MMAPBATCH_V2 ioctl David Vrabel
2012-08-23 19:40   ` Konrad Rzeszutek Wilk
2012-08-24 11:14     ` David Vrabel
2012-08-24 11:41       ` Konrad Rzeszutek Wilk
2012-08-24 11:50         ` Ian Campbell
2012-08-24 12:00         ` David Vrabel
2012-08-24 12:14           ` Ian Campbell
2012-08-24  1:35   ` Andres Lagar-Cavilla
2012-08-24  1:32 ` [RFC PATCH 0/3] xen/privcmd: support for paged-out frames Andres Lagar-Cavilla
2012-08-24 11:58   ` David Vrabel
2012-08-24 12:14     ` Ian Campbell
2012-08-24 15:06       ` 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).