Re: [Xen-devel] [PATCH v4 6/6] x86/domctl: Remove XEN_DOMCTL_pin_mem_cacheattr
On Tue, Jan 23, 2018 at 10:16:45AM -0700, Jan Beulich wrote: > >>> Wei Liu01/23/18 4:44 PM >>> > On Tue, Jan 23, 2018 at 03:22:46PM +, Ross Lagerwall wrote: > >> --- a/xen/include/public/domctl.h > >> +++ b/xen/include/public/domctl.h > >> @@ -38,7 +38,7 @@ > >> #include "hvm/save.h" > >> #include "memory.h" > >> > >> -#define XEN_DOMCTL_INTERFACE_VERSION 0x000f > >> +#define XEN_DOMCTL_INTERFACE_VERSION 0x0010 > >> > > > >We bumped this to 0f in this development window so there is no need to > >do it again. > > As pointed out elsewhere (at least on two other threads meanwhile) whether > to bump _again_ depends on the backporting plans of the domctl changes > in the shim series. If 4.10 is to obtain those eventually, it should be _just_ > that one change which goes under interface version 0xf. OK. This makes sense. My Rb still stands. Wei. ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [Xen-devel] [PATCH v4 6/6] x86/domctl: Remove XEN_DOMCTL_pin_mem_cacheattr
>>> Wei Liu01/23/18 4:44 PM >>> On Tue, Jan 23, 2018 at 03:22:46PM +, Ross Lagerwall wrote: >> --- a/xen/include/public/domctl.h >> +++ b/xen/include/public/domctl.h >> @@ -38,7 +38,7 @@ >> #include "hvm/save.h" >> #include "memory.h" >> >> -#define XEN_DOMCTL_INTERFACE_VERSION 0x000f >> +#define XEN_DOMCTL_INTERFACE_VERSION 0x0010 >> > >We bumped this to 0f in this development window so there is no need to >do it again. As pointed out elsewhere (at least on two other threads meanwhile) whether to bump _again_ depends on the backporting plans of the domctl changes in the shim series. If 4.10 is to obtain those eventually, it should be _just_ that one change which goes under interface version 0xf. Jan ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [Xen-devel] [PATCH v4 6/6] x86/domctl: Remove XEN_DOMCTL_pin_mem_cacheattr
On Tue, Jan 23, 2018 at 03:47:52PM +, Ross Lagerwall wrote: > On 01/23/2018 03:44 PM, Wei Liu wrote: > > On Tue, Jan 23, 2018 at 03:22:46PM +, Ross Lagerwall wrote: > > > Remove the implementation of XEN_DOMCTL_pin_mem_cacheattr since it has > > > been replaced by a dmop. Change xc_domain_pin_memory_cacheattr() so > > > that it is only defined when XC_WANT_COMPAT_DEVICEMODEL_API is set and > > > have it call the new dmop. Leave the definitions of > > > XEN_DOMCTL_MEM_CACHEATTR_* since they are still used by QEMU. > > > > snip>> diff --git a/xen/include/public/domctl.h > b/xen/include/public/domctl.h > > > index a8921dd..30674d6 100644 > > > --- a/xen/include/public/domctl.h > > > +++ b/xen/include/public/domctl.h > > > @@ -38,7 +38,7 @@ > > > #include "hvm/save.h" > > > #include "memory.h" > > > -#define XEN_DOMCTL_INTERFACE_VERSION 0x000f > > > +#define XEN_DOMCTL_INTERFACE_VERSION 0x0010 > > > > We bumped this to 0f in this development window so there is no need to > > do it again. > > OK. > > > > > > /* > > >* NB. xen_domctl.domain is an IN/OUT parameter for this operation. > > > @@ -598,10 +598,6 @@ struct xen_domctl_ioport_mapping { > > > #define XEN_DOMCTL_MEM_CACHEATTR_WB 6 > > > #define XEN_DOMCTL_MEM_CACHEATTR_UCM 7 > > > #define XEN_DOMCTL_DELETE_MEM_CACHEATTR (~(uint32_t)0) > > > > Any reason to not remove these #define's? > > > > They're still used by QEMU at the moment. Removing them now would break the > build. They can be removed once QEMU(s) have been switch to use the new > XEN_DMOP_* #defines. > OK. With the version bump removed: Reviewed-by: Wei Liu___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [Xen-devel] [PATCH v4 6/6] x86/domctl: Remove XEN_DOMCTL_pin_mem_cacheattr
On 01/23/2018 03:44 PM, Wei Liu wrote: On Tue, Jan 23, 2018 at 03:22:46PM +, Ross Lagerwall wrote: Remove the implementation of XEN_DOMCTL_pin_mem_cacheattr since it has been replaced by a dmop. Change xc_domain_pin_memory_cacheattr() so that it is only defined when XC_WANT_COMPAT_DEVICEMODEL_API is set and have it call the new dmop. Leave the definitions of XEN_DOMCTL_MEM_CACHEATTR_* since they are still used by QEMU. snip>> diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h index a8921dd..30674d6 100644 --- a/xen/include/public/domctl.h +++ b/xen/include/public/domctl.h @@ -38,7 +38,7 @@ #include "hvm/save.h" #include "memory.h" -#define XEN_DOMCTL_INTERFACE_VERSION 0x000f +#define XEN_DOMCTL_INTERFACE_VERSION 0x0010 We bumped this to 0f in this development window so there is no need to do it again. OK. /* * NB. xen_domctl.domain is an IN/OUT parameter for this operation. @@ -598,10 +598,6 @@ struct xen_domctl_ioport_mapping { #define XEN_DOMCTL_MEM_CACHEATTR_WB 6 #define XEN_DOMCTL_MEM_CACHEATTR_UCM 7 #define XEN_DOMCTL_DELETE_MEM_CACHEATTR (~(uint32_t)0) Any reason to not remove these #define's? They're still used by QEMU at the moment. Removing them now would break the build. They can be removed once QEMU(s) have been switch to use the new XEN_DMOP_* #defines. -- Ross Lagerwall ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [Xen-devel] [PATCH v4 6/6] x86/domctl: Remove XEN_DOMCTL_pin_mem_cacheattr
On Tue, Jan 23, 2018 at 03:22:46PM +, Ross Lagerwall wrote: > Remove the implementation of XEN_DOMCTL_pin_mem_cacheattr since it has > been replaced by a dmop. Change xc_domain_pin_memory_cacheattr() so > that it is only defined when XC_WANT_COMPAT_DEVICEMODEL_API is set and > have it call the new dmop. Leave the definitions of > XEN_DOMCTL_MEM_CACHEATTR_* since they are still used by QEMU. > > Signed-off-by: Ross Lagerwall> Reviewed-by: Paul Durrant > Acked-by: Daniel De Graaf > --- > > Changed in v4: > * Bump interface version. > * Clarified comment. > > New in v3. > > tools/flask/policy/modules/xen.if | 4 ++-- > tools/libs/devicemodel/include/xendevicemodel.h | 2 +- > tools/libxc/include/xenctrl.h | 6 -- > tools/libxc/include/xenctrl_compat.h| 3 +++ > tools/libxc/xc_devicemodel_compat.c | 8 > tools/libxc/xc_domain.c | 15 --- These changes LGTM. > { > diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h > index a8921dd..30674d6 100644 > --- a/xen/include/public/domctl.h > +++ b/xen/include/public/domctl.h > @@ -38,7 +38,7 @@ > #include "hvm/save.h" > #include "memory.h" > > -#define XEN_DOMCTL_INTERFACE_VERSION 0x000f > +#define XEN_DOMCTL_INTERFACE_VERSION 0x0010 > We bumped this to 0f in this development window so there is no need to do it again. > /* > * NB. xen_domctl.domain is an IN/OUT parameter for this operation. > @@ -598,10 +598,6 @@ struct xen_domctl_ioport_mapping { > #define XEN_DOMCTL_MEM_CACHEATTR_WB 6 > #define XEN_DOMCTL_MEM_CACHEATTR_UCM 7 > #define XEN_DOMCTL_DELETE_MEM_CACHEATTR (~(uint32_t)0) Any reason to not remove these #define's? Wei. ___ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel