[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 0/7][RFC] make xenguest save & restore functions reentrant


  • To: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>, Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
  • Date: Sat, 14 Nov 2009 08:25:05 +0000
  • Cc:
  • Delivery-date: Sat, 14 Nov 2009 00:25:31 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcpkumFKBGjzIX7KQuaHGw+0lFyHSwASZaAK
  • Thread-topic: [Xen-devel] [PATCH 0/7][RFC] make xenguest save & restore functions reentrant

On 13/11/2009 23:43, "Vincent Hanquez" <vincent.hanquez@xxxxxxxxxxxxx>
wrote:

> The following patchset make suspend and restore code reentrant by having an
> explicit context to store current variables across all the suspend/restore
> code.
> 
> This work is necessary for beeing able to get rid of the fork of processes
> during save&restore, and provide a simpler interface for toolstack developers.

Rather than making the macros take extra arguments, can you make them refer
to ctx->foo instead (i.e., make it implciit the structure containing these
ex-globals is called ctx)? It avoids having to change every caller, and some
callers already have macros nested three deep and adding guest_width/max_mfn
all over the place does not help readability.

Also send also as attachments next time. I have problems applying these
patches from inline email for some reason; some chunks don't apply.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.