From: Ian Campbell Subject: Re: [PATCH] libxl: further fixups re LIBXL_DOMAIN_TYPE process Date: Wed, 13 Jun 2012 17:48:13 +0100 Message-ID: <1339606093.11149.0.camel@zakaz.uk.xensource.com> References: <1339176870-32652-1-git-send-email-ian.jackson@eu.citrix.com> <20438.8212.973369.347692@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20438.8212.973369.347692@mariner.uk.xensource.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: Ian Jackson Cc: Dario Faggioli , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Mon, 2012-06-11 at 17:43 +0100, Ian Jackson wrote: > Here's another patch which needs to go on top of my async save/restore > series. > > Ian. > > From: Ian Jackson > Subject: [PATCH] libxl: further fixups re LIBXL_DOMAIN_TYPE > > * Abolish the macro LIBXL__DOMAIN_IS_TYPE which had incorrect error > handlng. At every call site, replace it with an open-coded call to handling > libxl_domain_type and check against LIBXL_DOMAIN_TYPE_INVALID. > > * This involves adding an `out:' to libxl_domain_unpause. > > * In libxl_domain_destroy and do_pci_add, do not `default: abort();' > if the domain type cannot be found. Instead switch on > LIBXL_DOMAIN_TYPE_INVALID specifically and do some actual error > handling. > > * In libxl__primary_console_find, remove a spurious default clause > from the domain type switch. > > * In libxl_domain_suspend (as reorganised) error check, check for > LIBXL_DOMAIN_TYPE_INVALID and remove a pointless extra log message. > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell