Re: [Xen-devel] [PATCH 4/4] xen: Introduce a xmemdup_bytes() helper

2020-03-26 Thread Julien Grall
Hi Andrew, On 26/03/2020 14:53, Andrew Cooper wrote: On 21/03/2020 22:19, Julien Grall wrote: diff --git a/xen/include/xen/xmalloc.h b/xen/include/xen/xmalloc.h index f515ceee2a..16979a117c 100644 --- a/xen/include/xen/xmalloc.h +++ b/xen/include/xen/xmalloc.h @@ -51,6 +51,17 @@ #define xmall

Re: [Xen-devel] [PATCH 4/4] xen: Introduce a xmemdup_bytes() helper

2020-03-26 Thread Jan Beulich
On 26.03.2020 16:38, Andrew Cooper wrote: > On 23/03/2020 08:38, Jan Beulich wrote: >> On 21.03.2020 23:19, Julien Grall wrote: >>> On Fri, 20 Mar 2020 at 21:26, Andrew Cooper >>> wrote: --- a/xen/include/xen/xmalloc.h +++ b/xen/include/xen/xmalloc.h @@ -51,6 +51,17 @@ #defin

Re: [Xen-devel] [PATCH 4/4] xen: Introduce a xmemdup_bytes() helper

2020-03-26 Thread Andrew Cooper
On 23/03/2020 08:38, Jan Beulich wrote: > On 21.03.2020 23:19, Julien Grall wrote: >> On Fri, 20 Mar 2020 at 21:26, Andrew Cooper >> wrote: >>> --- a/xen/include/xen/xmalloc.h >>> +++ b/xen/include/xen/xmalloc.h >>> @@ -51,6 +51,17 @@ >>> #define xmalloc_bytes(_bytes) _xmalloc(_bytes, SMP_CACHE_

Re: [Xen-devel] [PATCH 4/4] xen: Introduce a xmemdup_bytes() helper

2020-03-26 Thread Andrew Cooper
On 21/03/2020 22:19, Julien Grall wrote: >> diff --git a/xen/include/xen/xmalloc.h b/xen/include/xen/xmalloc.h >> index f515ceee2a..16979a117c 100644 >> --- a/xen/include/xen/xmalloc.h >> +++ b/xen/include/xen/xmalloc.h >> @@ -51,6 +51,17 @@ >> #define xmalloc_bytes(_bytes) _xmalloc(_bytes, SMP_CA

Re: [Xen-devel] [PATCH 4/4] xen: Introduce a xmemdup_bytes() helper

2020-03-23 Thread Jan Beulich
On 21.03.2020 23:19, Julien Grall wrote: > On Fri, 20 Mar 2020 at 21:26, Andrew Cooper wrote: >> --- a/xen/include/xen/xmalloc.h >> +++ b/xen/include/xen/xmalloc.h >> @@ -51,6 +51,17 @@ >> #define xmalloc_bytes(_bytes) _xmalloc(_bytes, SMP_CACHE_BYTES) >> #define xzalloc_bytes(_bytes) _xzalloc(_

Re: [Xen-devel] [PATCH 4/4] xen: Introduce a xmemdup_bytes() helper

2020-03-21 Thread Julien Grall
Hi Andrew, On Fri, 20 Mar 2020 at 21:26, Andrew Cooper wrote: > > Use it to simplify the x86 microcode logic, taking the opportunity to drop the > -ENOMEM printks. > > Signed-off-by: Andrew Cooper > --- > CC: Jan Beulich > CC: Wei Liu > CC: Roger Pau Monné > --- > xen/arch/x86/cpu/microcode/

Re: [Xen-devel] [PATCH 4/4] xen: Introduce a xmemdup_bytes() helper

2020-03-21 Thread Wei Liu
On Fri, Mar 20, 2020 at 09:24:52PM +, Andrew Cooper wrote: > Use it to simplify the x86 microcode logic, taking the opportunity to drop the > -ENOMEM printks. > > Signed-off-by: Andrew Cooper Reviewed-by: Wei Liu ___ Xen-devel mailing list Xen-de

[Xen-devel] [PATCH 4/4] xen: Introduce a xmemdup_bytes() helper

2020-03-20 Thread Andrew Cooper
Use it to simplify the x86 microcode logic, taking the opportunity to drop the -ENOMEM printks. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Wei Liu CC: Roger Pau Monné --- xen/arch/x86/cpu/microcode/amd.c | 9 ++--- xen/arch/x86/cpu/microcode/intel.c | 7 ++- xen/include/