Re: [PATCH v4 4/7] x86/hyper-v: allocate and use Virtual Processor Assist Pages

2018-03-18 Thread Thomas Gleixner
On Fri, 16 Mar 2018, Vitaly Kuznetsov wrote: > static int hv_cpu_init(unsigned int cpu) > @@ -101,6 +104,23 @@ static int hv_cpu_init(unsigned int cpu) > if (msr_vp_index > hv_max_vp_index) > hv_max_vp_index = msr_vp_index; > > + if (!hv_vp_assist_page) > + re

[PATCH v4 4/7] x86/hyper-v: allocate and use Virtual Processor Assist Pages

2018-03-16 Thread Vitaly Kuznetsov
Virtual Processor Assist Pages usage allows us to do optimized EOI processing for APIC, enable Enlightened VMCS support in KVM and more. struct hv_vp_assist_page is defined according to the Hyper-V TLFS v5.0b. Signed-off-by: Vitaly Kuznetsov --- Changes since v3: - remove vfree() from hv_cpu_die(