[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen: use vMSI related #define-s from public interface
>>> On 21.09.17 at 03:12, <sstabellini@xxxxxxxxxx> wrote: > On Fri, 1 Sep 2017, Jan Beulich wrote: >> --- a/hw/xen/xen_pt_msi.c >> +++ b/hw/xen/xen_pt_msi.c >> @@ -18,6 +18,11 @@ >> >> #define XEN_PT_AUTO_ASSIGN -1 >> >> +#ifndef XEN_DOMCTL_VMSI_X86_DEST_ID_MASK >> +#if XEN_DOMCTL_INTERFACE_VERSION >= 0x0000000e >> +#error vMSI defines missing from domctl.h >> +#endif > > All the version compatibility stuff goes to > include/hw/xen/xen_common.h. Please move it there. I know there's a central place, but moving there stuff that's needed only in this file seemed rather counterproductive to me - why would you want all files including that shared one have to see these definitions? If there was a remote chance that some other file may need to make use of it, I might agree, but I don't see any such chance at all. > We usually assume that the Xen version we are building against is > "sane", so we don't do #error's typically. Hmm, I can drop the #error, but to be honest I'm hesitant to do so - I've put it there intentionally. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |