Re: [RFC PATCH v2 21/69] KVM: Add max_vcpus field in common 'struct kvm'

From: Sean Christopherson
Date: Tue Jul 13 2021 - 16:35:22 EST


On Tue, Jul 06, 2021, Paolo Bonzini wrote:
> Please replace "Add" with "Move" and add a couple lines to the commit
> message.

Move arm's per-VM max_vcpus field into the generic "struct kvm", and use
it to check vcpus_created in the generic code instead of checking only
the hardcoded absolute KVM-wide max. x86 TDX guests will reuse the
generic check verbatim, as the max number of vCPUs for a TDX guest is
user defined at VM creation and immutable thereafter.