[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 31/34] xen: refuse to create HVM guests when !CONFIG_HVM
Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- xen/common/domain.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xen/common/domain.c b/xen/common/domain.c index 171d25e..a22df12 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -318,8 +318,14 @@ struct domain *domain_create(domid_t domid, if ( !is_idle_domain(d) ) { if ( config->flags & XEN_DOMCTL_CDF_hvm_guest ) + { +#if CONFIG_HVM d->guest_type = guest_type_hvm; - else +#else + err = -EINVAL; + goto fail; +#endif + } else d->guest_type = guest_type_pv; watchdog_domain_init(d); -- git-series 0.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |