Skip to contentSkip to conversation

arm: fix Dom0 creation after ef72c93df9

PATCH In review Wei Liu 3 participants 3 messages Oct 22, 2018

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 arm: fix Dom0 creation after ef72c93df9

ARM Dom0 creation was broken by the said commit because ARM neither provided XEN_DOMCTL_CDF_hvm_guest nor had CONFIG_PV set.

Set XEN_DOMCTL_CDF_hvm_guest flag for ARM Dom0 to fix the issue. Also set XEN_DOMCTL_CDF_hap while at it.

---
 xen/arch/arm/setup.c | 1 +
 1 file changed, 1 insertion(+)
xen/arch/arm/setup.c +1 -0
index ea2495a73b..80f00286d3 100644
@@ -693,6 +693,7 @@ void __init start_xen(unsigned long boot_phys_offset,
     struct bootmodule *xen_bootmodule;
     struct domain *dom0;
     struct xen_domctl_createdomain dom0_cfg = {
+        .flags = XEN_DOMCTL_CDF_hvm_guest | XEN_DOMCTL_CDF_hap,
         .max_evtchn_port = -1,
         .max_grant_frames = gnttab_dom0_frames(),
         .max_maptrack_frames = opt_max_maptrack_frames,
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 1/1
#1 lore raw

Hi Wei,

Quoted 7 lines · Wei Liu

ARM Dom0 creation was broken by the said commit because ARM neither provided XEN_DOMCTL_CDF_hvm_guest nor had CONFIG_PV set.

Set XEN_DOMCTL_CDF_hvm_guest flag for ARM Dom0 to fix the issue. Also set XEN_DOMCTL_CDF_hap while at it.

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Reviewed-by on v1 1/1
#2 lore raw
In reply to Wei Liu
Quoted 7 lines · Wei Liu

ARM Dom0 creation was broken by the said commit because ARM neither provided XEN_DOMCTL_CDF_hvm_guest nor had CONFIG_PV set.

Set XEN_DOMCTL_CDF_hvm_guest flag for ARM Dom0 to fix the issue. Also set XEN_DOMCTL_CDF_hap while at it.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel