Hi Wei,
On 26/08/18 13:19, Wei Liu wrote:
Signed-off-by: Wei Liu <wei.l...@citrix.com>
This patch is going to break Arm until we switched to PVH in the toolstack.
Cheers,
---
xen/common/domain.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/xen/common/domain.c b/xen/common/domain.c
index 171d25e..73b5485 100644
--- a/xen/common/domain.c
+++ b/xen/common/domain.c
@@ -318,9 +318,23 @@ struct domain *domain_create(domid_t domid,
if ( !is_idle_domain(d) )
{
if ( config->flags & XEN_DOMCTL_CDF_hvm_guest )
+ {
+#ifdef CONFIG_HVM
d->guest_type = guest_type_hvm;
+#else
+ err = -EINVAL;
+ goto fail;
+#endif
+ }
else
+ {
+#ifdef CONFIG_PV
d->guest_type = guest_type_pv;
+#else
+ err = -EINVAL;
+ goto fail;
+#endif
+ }
watchdog_domain_init(d);
init_status |= INIT_watchdog;
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel