Re: [PATCH] KVM: X86: Use IPI shorthands in kvm guest when support

2019-07-26 Thread kbuild test robot
Hi Wanpeng, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [cannot apply to v5.3-rc1 next-20190726] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Wa

Re: [PATCH] KVM: X86: Use IPI shorthands in kvm guest when support

2019-07-26 Thread Wanpeng Li
On Fri, 26 Jul 2019 at 15:20, Thomas Gleixner wrote: > > On Fri, 26 Jul 2019, Wanpeng Li wrote: > > On Fri, 26 Jul 2019 at 14:10, Wanpeng Li wrote: > > > static void kvm_send_ipi_all(int vector) > > > { > > > - __send_ipi_mask(cpu_online_mask, vector); > > > + if (static_branch_like

Re: [PATCH] KVM: X86: Use IPI shorthands in kvm guest when support

2019-07-26 Thread Thomas Gleixner
On Fri, 26 Jul 2019, Wanpeng Li wrote: > On Fri, 26 Jul 2019 at 14:10, Wanpeng Li wrote: > > static void kvm_send_ipi_all(int vector) > > { > > - __send_ipi_mask(cpu_online_mask, vector); > > + if (static_branch_likely(&apic_use_ipi_shorthand)) > > + orig_apic.send_IPI_

Re: [PATCH] KVM: X86: Use IPI shorthands in kvm guest when support

2019-07-25 Thread Wanpeng Li
On Fri, 26 Jul 2019 at 14:10, Wanpeng Li wrote: > > From: Wanpeng Li > > IPI shorthand is supported now by linux apic/x2apic driver, switch to > IPI shorthand for all excluding self and all including self destination > shorthand in kvm guest, to avoid splitting the target mask into serveral > PV

[PATCH] KVM: X86: Use IPI shorthands in kvm guest when support

2019-07-25 Thread Wanpeng Li
From: Wanpeng Li IPI shorthand is supported now by linux apic/x2apic driver, switch to IPI shorthand for all excluding self and all including self destination shorthand in kvm guest, to avoid splitting the target mask into serveral PV IPI hypercalls. Cc: Thomas Gleixner Cc: Paolo Bonzini Cc