Skip to content

Fix xc_domain_config usage

Roger Pau Monne qemu-devel xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/libxc: add an arch domain config parameter to xc_domain_createtools/libxc/include/xenctrl.h tools/libxc/xc_domain.c tools/libxl/libxl_create.c +3 more+29 -473 replies
2/2xen: fix usage of xc_domain_create in domain builderhw/xenpv/xen_domainbuild.c+1 -112 replies
2/2xen: fix usage of xc_domain_create in domain builderhw/xenpv/xen_domainbuild.c+1 -10 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAndrew CooperStefano StabelliniIan Campbell
1/2R-b A-b
2/2A-b A-b
2/2A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/2] Fix xc_domain_config usage

Hello,

Due to the HVMlite patches now x86 always requires a valid arch domain config. This is currently causing problems to out-of-tree toolstacks that are based on the Ocaml or the python bindings, since those bindings have lost the ability to create HVM guests because a zeroed arch domain config is always used regardless of the guest type.

In order to fix this add a new parameter to xc_domain_create that's a pointer to a arch domain config that can be null (the function itself will set a sensible default based on the guest type). Since xc_domain_create_config is meaningless now just remove it.

The in-tree callers are fixed in the first patch, while Qemu is fixed in the second patch. I'm not sure how this is going to work with the push gate, since both patches should be applied and tested together, or else Qemu build is going to fail.

Thanks, Roger.