Re: [PATCH 4/6] x86/kvm: introduce per cpu vcpu masks

From: Juergen Gross
Date: Mon Jul 26 2021 - 09:40:54 EST


On 26.07.21 15:32, Paolo Bonzini wrote:
On 01/07/21 17:41, Juergen Gross wrote:
In order to support high vcpu numbers per guest don't use on stack
vcpu bitmasks. As all those currently used bitmasks are not used in
functions subject to recursion it is fairly easy to replace them with
percpu bitmasks.

Disable preemption while such a bitmask is being used in order to
avoid double usage in case we'd switch cpus.

Signed-off-by: Juergen Gross <jgross@xxxxxxxx>

Please use a local_lock instead of disabling preemption.

Okay.


Juergen

Attachment: OpenPGP_0xB0DE9DD628BF132F.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature