From: Ian Jackson Subject: Re: [PATCH 6/6] libxl_dom: Call the right switch logdirty for the right DM. Date: Tue, 31 Jul 2012 15:40:50 +0100 Message-ID: <20503.61042.265004.669789@mariner.uk.xensource.com> References: <1343235857-15870-1-git-send-email-anthony.perard@citrix.com> <1343235857-15870-7-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1343235857-15870-7-git-send-email-anthony.perard@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Anthony PERARD Cc: Ian Campbell , Xen Devel List-Id: xen-devel@lists.xenproject.org Anthony PERARD writes ("[PATCH 6/6] libxl_dom: Call the right switch logdirty for the right DM."): > This patch dispatch the switch logdirty call depending on which device model > version is running. ... > -void libxl__domain_suspend_common_switch_qemu_logdirty > +static void domain_suspend_switch_qemu_xen_traditional_logdirty > (int domid, unsigned enable, void *user) If you make these functions internal you should not have them each separately upcast the void*. They should take the shs as a typed pointer. Apart from that it looks sane. Thanks, Ian.