KVM: RISC-V: Cap KVM_CAP_NR_VCPUS by KVM_CAP_MAX_VCPUS
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 16 Nov 2021 16:34:41 +0000 (17:34 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Nov 2021 07:12:14 +0000 (02:12 -0500)
commit37fd3ce1e64a2e86a986542a17bebf1553512da9
tree98c83ecedccfd4a8b0d8b7547975445265279ff4
parentb7915d55b1ac0e68a7586697fa2d06c018135c49
KVM: RISC-V: Cap KVM_CAP_NR_VCPUS by KVM_CAP_MAX_VCPUS

It doesn't make sense to return the recommended maximum number of
vCPUs which exceeds the maximum possible number of vCPUs.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Acked-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Message-Id: <20211116163443.88707-5-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/riscv/kvm/vm.c