Re: [PATCH 4/4] KVM: x86: enable configurable MAX_VCPU

2017-04-24 Thread Radim Krčmář
2017-04-19 10:08+0200, Christian Borntraeger: > On 04/13/2017 10:19 PM, Radim Krčmář wrote: >> The only user of KVM_MAX_VCPU is switched to kvm->max_vcpu. >> >> The limit could have been INT_MAX as it makes no difference, but there >> is no point in making it bigger than KVM_MAX_VCPU_ID. >> >>

Re: [PATCH 4/4] KVM: x86: enable configurable MAX_VCPU

2017-04-24 Thread Radim Krčmář
2017-04-19 10:08+0200, Christian Borntraeger: > On 04/13/2017 10:19 PM, Radim Krčmář wrote: >> The only user of KVM_MAX_VCPU is switched to kvm->max_vcpu. >> >> The limit could have been INT_MAX as it makes no difference, but there >> is no point in making it bigger than KVM_MAX_VCPU_ID. >> >>

Re: [PATCH 4/4] KVM: x86: enable configurable MAX_VCPU

2017-04-19 Thread Christian Borntraeger
On 04/13/2017 10:19 PM, Radim Krčmář wrote: > The only user of KVM_MAX_VCPU is switched to kvm->max_vcpu. > > The limit could have been INT_MAX as it makes no difference, but there > is no point in making it bigger than KVM_MAX_VCPU_ID. > > Signed-off-by: Radim Krčmář > ---

Re: [PATCH 4/4] KVM: x86: enable configurable MAX_VCPU

2017-04-19 Thread Christian Borntraeger
On 04/13/2017 10:19 PM, Radim Krčmář wrote: > The only user of KVM_MAX_VCPU is switched to kvm->max_vcpu. > > The limit could have been INT_MAX as it makes no difference, but there > is no point in making it bigger than KVM_MAX_VCPU_ID. > > Signed-off-by: Radim Krčmář > --- >

[PATCH 4/4] KVM: x86: enable configurable MAX_VCPU

2017-04-13 Thread Radim Krčmář
The only user of KVM_MAX_VCPU is switched to kvm->max_vcpu. The limit could have been INT_MAX as it makes no difference, but there is no point in making it bigger than KVM_MAX_VCPU_ID. Signed-off-by: Radim Krčmář --- arch/x86/include/asm/kvm_host.h | 1 +

[PATCH 4/4] KVM: x86: enable configurable MAX_VCPU

2017-04-13 Thread Radim Krčmář
The only user of KVM_MAX_VCPU is switched to kvm->max_vcpu. The limit could have been INT_MAX as it makes no difference, but there is no point in making it bigger than KVM_MAX_VCPU_ID. Signed-off-by: Radim Krčmář --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/irq_comm.c | 4