Re: [PATCH v4] KVM: Check the allocation of pv cpu mask

2020-10-19 Thread Vitaly Kuznetsov
Haiwei Li writes: > And 'pv_ops.mmu.tlb_remove_table = tlb_remove_table' should not > be set either. AFAIU by looking at the commit which added it (48a8b97cfd80 "x86/mm: Only use tlb_remove_table() for paravirt") it sholdn't hurt much. We could've avoided the assignment but it happens much earl

Re: [PATCH v4] KVM: Check the allocation of pv cpu mask

2020-10-19 Thread Haiwei Li
On 20/10/19 19:23, Vitaly Kuznetsov wrote: lihaiwei.ker...@gmail.com writes: From: Haiwei Li check the allocation of per-cpu __pv_cpu_mask. Init 'send_IPI_mask_allbutself' only when successful and check the allocation of __pv_cpu_mask in 'kvm_flush_tlb_others'. Suggested-by: Vitaly Kuznetsov

Re: [PATCH v4] KVM: Check the allocation of pv cpu mask

2020-10-19 Thread Vitaly Kuznetsov
lihaiwei.ker...@gmail.com writes: > From: Haiwei Li > > check the allocation of per-cpu __pv_cpu_mask. Init > 'send_IPI_mask_allbutself' only when successful and check the allocation > of __pv_cpu_mask in 'kvm_flush_tlb_others'. > > Suggested-by: Vitaly Kuznetsov > Signed-off-by: Haiwei Li > --

[PATCH v4] KVM: Check the allocation of pv cpu mask

2020-10-17 Thread lihaiwei . kernel
From: Haiwei Li check the allocation of per-cpu __pv_cpu_mask. Init 'send_IPI_mask_allbutself' only when successful and check the allocation of __pv_cpu_mask in 'kvm_flush_tlb_others'. Suggested-by: Vitaly Kuznetsov Signed-off-by: Haiwei Li --- v1 -> v2: * add CONFIG_SMP for kvm_send_ipi_mask