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

From: Haiwei Li
Date: Wed Sep 16 2020 - 05:30:28 EST


On 20/9/16 17:03, Vitaly Kuznetsov wrote:
The commit 0f990222108d ("KVM: Check the allocation of pv cpu mask") we
have in 5.9-rc5 has two issue:
1) Compilation fails for !CONFIG_SMP, see:
https://bugzilla.kernel.org/show_bug.cgi?id=209285

2) This commit completely disables PV TLB flush, see
https://lore.kernel.org/kvm/87y2lrnnyf.fsf@xxxxxxxxxxxxxxxxxxxx/

The allocation problem is likely a theoretical one, if we don't
have memory that early in boot process we're likely doomed anyway.
Let's solve it properly later.

Hi, i have sent a patchset to fix this commit.

https://lore.kernel.org/kvm/20200914091148.95654-1-lihaiwei.kernel@xxxxxxxxx/T/#m6c27184012ee5438e5d91c09b1ba1b6a3ee30ee4

What do you think?

Haiwei Li