Signed-off-by: Wei Liu <[email protected]>
---
xen/arch/x86/dom0_build.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/xen/arch/x86/dom0_build.c b/xen/arch/x86/dom0_build.c
index 86eb7db..4577111 100644
--- a/xen/arch/x86/dom0_build.c
+++ b/xen/arch/x86/dom0_build.c
@@ -509,8 +509,16 @@ int __init construct_dom0(struct domain *d, const module_t
*image,
}
#endif
- rc = (is_hvm_domain(d) ? dom0_construct_pvh : dom0_construct_pv)
- (d, image, image_headroom, initrd, cmdline);
+ if ( is_hvm_domain(d) )
+ rc = dom0_construct_pvh(d, image, image_headroom, initrd, cmdline);
+ else if ( is_pv_domain(d) )
+ rc = dom0_construct_pv(d, image, image_headroom, initrd, cmdline);
+ else
+ {
+ ASSERT_UNREACHABLE();
+ rc = -EINVAL;
+ }
+
if ( rc )
return rc;
--
git-series 0.9.1
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel