From mboxrd@z Thu Jan 1 00:00:00 1970 From: beth kon Subject: [PATCH] Propagate x86_compat return code Date: Tue, 04 Dec 2007 09:35:28 -0500 Message-ID: <475565B0.6070408@us.ibm.com> Reply-To: eak@us.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This patch propagates the return code from x86_compat through arch_setup_meminit. Signed-off-by: Elizabeth Kon (eak@us.ibm.com) -- diff -r 8e3d42fdb8e7 tools/libxc/xc_dom_x86.c --- a/tools/libxc/xc_dom_x86.c Tue Dec 04 09:56:10 2007 +0000 +++ b/tools/libxc/xc_dom_x86.c Tue Dec 04 09:27:33 2007 -0500 @@ -694,7 +694,9 @@ int arch_setup_meminit(struct xc_dom_ima int rc; xen_pfn_t pfn; - x86_compat(dom->guest_xc, dom->guest_domid, dom->guest_type); + rc = x86_compat(dom->guest_xc, dom->guest_domid, dom->guest_type); + if ( rc ) + return rc; if ( xc_dom_feature_translated(dom) ) { dom->shadow_enabled = 1; -- Elizabeth Kon (Beth) IBM Linux Technology Center Open Hypervisor Team email: eak@us.ibm.com