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

From: Vitaly Kuznetsov
Date: Mon Oct 19 2020 - 08:50:58 EST


Haiwei Li <lihaiwei.kernel@xxxxxxxxx> 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 earlier, in
kvm_guest_init() and there's no good way to un-patch pvops back.

--
Vitaly