Re: [PATCH v5 2/5] xen/vpci: move xen_domctl_createdomain vPCI flag to common

2023-11-14 Thread Jan Beulich
On 13.11.2023 20:05, Stewart Hildebrand wrote: > On 11/13/23 08:26, Jan Beulich wrote: >> On 02.11.2023 20:59, Stewart Hildebrand wrote: >>> @@ -575,6 +577,18 @@ static int sanitise_domain_config(struct >>> xen_domctl_createdomain *config) >>> return -EINVAL; >>> } >>> >>> +if

Re: [PATCH v5 2/5] xen/vpci: move xen_domctl_createdomain vPCI flag to common

2023-11-13 Thread Stewart Hildebrand
On 11/13/23 08:26, Jan Beulich wrote: > On 02.11.2023 20:59, Stewart Hildebrand wrote: >> --- a/tools/libs/light/libxl_x86.c >> +++ b/tools/libs/light/libxl_x86.c >> @@ -8,13 +8,16 @@ int libxl__arch_domain_prepare_config(libxl__gc *gc, >> { >> switch(d_config->c_info.type) { >> case LIB

Re: [PATCH v5 2/5] xen/vpci: move xen_domctl_createdomain vPCI flag to common

2023-11-13 Thread Jan Beulich
On 02.11.2023 20:59, Stewart Hildebrand wrote: > --- a/tools/libs/light/libxl_x86.c > +++ b/tools/libs/light/libxl_x86.c > @@ -8,13 +8,16 @@ int libxl__arch_domain_prepare_config(libxl__gc *gc, > { > switch(d_config->c_info.type) { > case LIBXL_DOMAIN_TYPE_HVM: > -config->arch.em

[PATCH v5 2/5] xen/vpci: move xen_domctl_createdomain vPCI flag to common

2023-11-02 Thread Stewart Hildebrand
Both x86 and ARM need a way at domain creation time to specify whether the domain needs vPCI emulation. Move the vPCI flag from x86 xen_domctl_createdomain.arch.emulation_flags to the common xen_domctl_createdomain.flags. Move has_vpci() macro to common header. Bump XEN_DOMCTL_INTERFACE_VERSION s