* [PATCH] Propagate x86_compat return code
@ 2007-12-04 14:35 beth kon
2007-12-04 20:28 ` beth kon
0 siblings, 1 reply; 2+ messages in thread
From: beth kon @ 2007-12-04 14:35 UTC (permalink / raw)
To: Xen-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Propagate x86_compat return code
2007-12-04 14:35 [PATCH] Propagate x86_compat return code beth kon
@ 2007-12-04 20:28 ` beth kon
0 siblings, 0 replies; 2+ messages in thread
From: beth kon @ 2007-12-04 20:28 UTC (permalink / raw)
Cc: Xen-devel
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@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-04 20:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-04 14:35 [PATCH] Propagate x86_compat return code beth kon
2007-12-04 20:28 ` beth kon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.