[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 03/12] tools/ocaml: Introduce xenctrl ABI build-time checks
On 10.09.2019 14:01, Ian Jackson wrote: > c/s f089fddd941 broke the Ocaml ABI by renumering > XEN_SYSCTL_PHYSCAP_directio without adjusting the Ocaml > physinfo_cap_flag enumeration. > > Add build machinery which will check the ABI correspondence. > > This will result in a compile time failure whenever constants get > renumbered/added without a compatible adjustment to the Ocaml ABI. > > Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> > Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> > Acked-by: Christian Lindig <christian.lindig@xxxxxxxxxx> Just in case you want an extra ack for the tiny sysctl.h addition: Acked-by: Jan Beulich <jbeulich@xxxxxxxx> > --- a/xen/include/public/sysctl.h > +++ b/xen/include/public/sysctl.h > @@ -90,6 +90,10 @@ struct xen_sysctl_tbuf_op { > /* The platform supports direct access to I/O devices with IOMMU. */ > #define _XEN_SYSCTL_PHYSCAP_directio 2 > #define XEN_SYSCTL_PHYSCAP_directio (1u<<_XEN_SYSCTL_PHYSCAP_directio) > + > +/* Max XEN_SYSCTL_PHYSCAP_* constant. Used for ABI checking. */ > +#define XEN_SYSCTL_PHYSCAP_MAX XEN_SYSCTL_PHYSCAP_directio I don't particularly like such "max" values put in (public) headers (as they require constant updating), but I can't see a good alternative either. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |