WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] Propagate x86_compat return code

Subject: Re: [Xen-devel] [PATCH] Propagate x86_compat return code
From: beth kon <eak@xxxxxxxxxx>
Date: Tue, 04 Dec 2007 15:28:17 -0500
Cc: Xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 04 Dec 2007 12:28:48 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <475565B0.6070408@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: IBM
References: <475565B0.6070408@xxxxxxxxxx>
Reply-to: eak@xxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.8-1.1.fc4 (X11/20060501)
Not sure how you handle it, but this fix is also needed for xen 3.1.2.

beth kon wrote:

This patch propagates the return code from x86_compat through arch_setup_meminit.

Signed-off-by: Elizabeth Kon (eak@xxxxxxxxxx)

--

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@xxxxxxxxxx


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

<Prev in Thread] Current Thread [Next in Thread>