Re: [Xen-devel] [PATCH] x86/vvmx: Simplify per-CPU memory allocations

2019-05-10 Thread Tian, Kevin
> From: Andrew Cooper [mailto:andrew.coop...@citrix.com] > Sent: Friday, April 26, 2019 12:45 AM > > * Use XFREE() instead of opencoding it in nvmx_cpu_dead() > * Avoid redundant evaluations of per_cpu() > * Don't allocate vvmcs_buf at all if it isn't going to be used. It is never >touched

Re: [Xen-devel] [PATCH] x86/vvmx: Simplify per-CPU memory allocations

2019-04-26 Thread Wei Liu
On Thu, Apr 25, 2019 at 05:44:45PM +0100, Andrew Cooper wrote: > * Use XFREE() instead of opencoding it in nvmx_cpu_dead() > * Avoid redundant evaluations of per_cpu() > * Don't allocate vvmcs_buf at all if it isn't going to be used. It is never >touched on hardware lacking the VMCS Shadowi