pc: q35: Bump max_cpus to 512
PATCH 1/1 pc: q35: Bump max_cpus to 512
This is the maximum number of vCPU supported by
the AMD x2APIC virtualization.
--- hw/i386/pc_q35.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/pc_q35.c +1 -1
@@ -357,7 +357,7 @@ static void pc_q35_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_INTEL_IOMMU_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_RAMFB_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_VMBUS_BRIDGE ); - m->max_cpus =288 ; + m->max_cpus =512 ; }static void pc_q35_7_1_machine_options (MachineClass *m)
Signature · 1 line
2.25.1
Quoted 13 lines · On Wed, 4 May 2022 08:16:39 -0500 Suravee Suthikulpanit…
This is the maximum number of vCPU supported by
the AMD x2APIC virtualization.Signed-off-by Suravee Suthikulpanit <[email protected]>--- hw/i386/pc_q35.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/i386/pc_q35.c +0
-0
hw/i386/pc_q35.c static void pc_q35_machine_options(MachineClass *m) · line 360
Quoted 5 lines
hw/i386/pc_q35.c +1
-1@@ -357,7 +357,7 @@ static void pc_q35_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_INTEL_IOMMU_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_RAMFB_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_VMBUS_BRIDGE ); - m->max_cpus =288 ; + m->max_cpus =512 ;
Maybe we should bump it to KVM VCPU maximum, and make sure we error out if asked for combination of hardware/irqchip is not usable.
Quoted 3 lines
hw/i386/pc_q35.c +0
-0}static void pc_q35_7_1_machine_options (MachineClass *m)
Igor,
Quoted 11 lines · Igor Mammedov
Quoted 8 lines · On Wed, 4 May 2022 08:16:39 -0500 Suravee…
This is the maximum number of vCPU supported by
the AMD x2APIC virtualization.Signed-off-by Suravee Suthikulpanit<[email protected]>--- hw/i386/pc_q35.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 11 lines
hw/i386/pc_q35.c static void pc_q35_machine_options(MachineClass *m) · line 360
Quoted 10 lines
hw/i386/pc_q35.c +1
-1@@ -357,7 +357,7 @@ static void pc_q35_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_INTEL_IOMMU_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_RAMFB_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_VMBUS_BRIDGE ); - m->max_cpus =288 ; + m->max_cpus =512 ;Maybe we should bump it to KVM VCPU maximum,
Grepping through the Linux kernel source, the KVM_MAX_VCPUS macro is defined per architecture. AFAICT, the absolute maximum is for x86, which is 1024. Does that sound about right?
Quoted 2 lines
and make sure we error out if asked for combination of hardware/irqchip is not usable.
Could you please elaborate on this part?
Thanks,
Suravee
Quoted 26 lines · Suravee
Igor,
Quoted 11 lines · Igor Mammedov
Quoted 8 lines · On Wed, 4 May 2022 08:16:39 -0500 Suravee…
This is the maximum number of vCPU supported by
the AMD x2APIC virtualization.Signed-off-by Suravee Suthikulpanit<[email protected]>--- hw/i386/pc_q35.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 11 lines
hw/i386/pc_q35.c static void pc_q35_machine_options(MachineClass *m) · line 360
Quoted 10 lines
hw/i386/pc_q35.c +1
-1@@ -357,7 +357,7 @@ static void pc_q35_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_INTEL_IOMMU_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_RAMFB_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_VMBUS_BRIDGE ); - m->max_cpus =288 ; + m->max_cpus =512 ;Maybe we should bump it to KVM VCPU maximum,
Quoted 2 lines
Grepping through the Linux kernel source, the
KVM_MAX_VCPUSmacro is defined per architecture. AFAICT, the absolute maximum is for x86, which is 1024. Does that sound about right?
yep
Quoted 4 lines
Quoted 2 lines
and make sure we error out if asked for combination of hardware/irqchip is not usable.
Could you please elaborate on this part?
I meant that is you start with large VCPU number but accelerator/irqchip can't create correct (usable) VM, QEMU should exit with error.
Quoted 3 lines
Thanks,
Suravee
Quoted 11 lines · Igor Mammedov
Quoted 8 lines · On Wed, 4 May 2022 08:16:39 -0500 Suravee Suthikulpanit…
This is the maximum number of vCPU supported by
the AMD x2APIC virtualization.Signed-off-by Suravee Suthikulpanit <[email protected]>--- hw/i386/pc_q35.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines
hw/i386/pc_q35.c static void pc_q35_machine_options(MachineClass *m) · line 360
Quoted 10 lines
hw/i386/pc_q35.c +1
-1@@ -357,7 +357,7 @@ static void pc_q35_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_INTEL_IOMMU_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_RAMFB_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_VMBUS_BRIDGE ); - m->max_cpus =288 ; + m->max_cpus =512 ;Maybe we should bump it to KVM VCPU maximum, and make sure we error out if asked for combination of hardware/irqchip is not usable.
In RHEL downstream we currently bump this to 710 CPUs, because you overflow the SMBIOS 2.1 tables at approx 720 CPUs (give/take a little depending on other config options).
Going beyond 710 CPUs value requires using the SMBIOS 3 entry point.
AFAIK, the x86 machine types still default to SMBIOS 2.1, so that would need changing too.
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 27 lines · On Mon, 9 May 2022 13:03:38 +0100 Daniel P. Berrangé <[email protected]>…
Quoted 11 lines · Igor Mammedov
Quoted 8 lines · On Wed, 4 May 2022 08:16:39 -0500 Suravee Suthikulpanit…
This is the maximum number of vCPU supported by
the AMD x2APIC virtualization.Signed-off-by Suravee Suthikulpanit <[email protected]>--- hw/i386/pc_q35.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 14 lines
hw/i386/pc_q35.c static void pc_q35_machine_options(MachineClass *m) · line 360
Quoted 10 lines
hw/i386/pc_q35.c +1
-1@@ -357,7 +357,7 @@ static void pc_q35_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_INTEL_IOMMU_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_RAMFB_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_VMBUS_BRIDGE ); - m->max_cpus =288 ; + m->max_cpus =512 ;Maybe we should bump it to KVM VCPU maximum, and make sure we error out if asked for combination of hardware/irqchip is not usable.
Quoted 3 lines
In RHEL downstream we currently bump this to 710 CPUs, because you overflow the SMBIOS 2.1 tables at approx 720 CPUs (give/take a little depending on other config options).
Also there were some testing done with 1024,
but my main reason for matching KVM's limit is unblock upstream testing so it would be easier to push limits for others. Downstream can clamp that value down to whatever it deems as supported.
Quoted 4 lines
Going beyond 710 CPUs value requires using the SMBIOS 3 entry point.
AFAIK, the x86 machine types still default to SMBIOS 2.1, so that would need changing too.
Yep, we can change default to SMBIOS 3 starting with new machine type (7.1?) or conditionally depending on requested number of CPUs,
though I'd prefer machine type approach.
As for SMBIOS 3, we still have to update CPU structures to support more than 255 vcpus (Julia was working on it). It's long standing bug, but that doesn't seem to be critical, as guest boots fine with old structures.
Other than that I don't recall any outright bugs related to large number of VCPUs.
Quoted 2 lines
With regards,
Daniel
Quoted 39 lines · Igor Mammedov
Quoted 27 lines · On Mon, 9 May 2022 13:03:38 +0100 Daniel P. Berrangé <[email protected]>…
Quoted 11 lines · Igor Mammedov
Quoted 8 lines · On Wed, 4 May 2022 08:16:39 -0500 Suravee Suthikulpanit…
This is the maximum number of vCPU supported by
the AMD x2APIC virtualization.Signed-off-by Suravee Suthikulpanit <[email protected]>--- hw/i386/pc_q35.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 14 lines
hw/i386/pc_q35.c static void pc_q35_machine_options(MachineClass *m) · line 360
Quoted 10 lines
hw/i386/pc_q35.c +1
-1@@ -357,7 +357,7 @@ static void pc_q35_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_INTEL_IOMMU_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_RAMFB_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_VMBUS_BRIDGE ); - m->max_cpus =288 ; + m->max_cpus =512 ;Maybe we should bump it to KVM VCPU maximum, and make sure we error out if asked for combination of hardware/irqchip is not usable.
Quoted 3 lines
In RHEL downstream we currently bump this to 710 CPUs, because you overflow the SMBIOS 2.1 tables at approx 720 CPUs (give/take a little depending on other config options).
Also there were some testing done with 1024,
but my main reason for matching KVM's limit is unblock upstream testing so it would be easier to push limits for others. Downstream can clamp that value down to whatever it deems as supported.
Quoted 8 lines
Quoted 4 lines
Going beyond 710 CPUs value requires using the SMBIOS 3 entry point.
AFAIK, the x86 machine types still default to SMBIOS 2.1, so that would need changing too.
Yep, we can change default to SMBIOS 3 starting with new machine type (7.1?) or conditionally depending on requested number of CPUs,
though I'd prefer machine type approach.
Agree, machine type is better IMHO, a it gives us a consistent guest ABI regardless of CPU count.
Quoted 3 lines
As for SMBIOS 3, we still have to update CPU structures to support more than 255 vcpus (Julia was working on it). It's long standing bug, but that doesn't seem to be critical, as guest boots fine with old structures.
What's the impact of SMBIOS 3 being limited to 255 ? That's lower than the current max CPUs of 288 in upstream / 710 in downstream.
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 52 lines · On Tue, 10 May 2022 09:14:19 +0100 Daniel P. Berrangé <[email protected]>…
Quoted 39 lines · Igor Mammedov
Quoted 27 lines · On Mon, 9 May 2022 13:03:38 +0100 Daniel P. Berrangé <[email protected]>…
Quoted 11 lines · Igor Mammedov
Quoted 8 lines · On Wed, 4 May 2022 08:16:39 -0500 Suravee Suthikulpanit…
This is the maximum number of vCPU supported by
the AMD x2APIC virtualization.Signed-off-by Suravee Suthikulpanit <[email protected]>--- hw/i386/pc_q35.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 14 lines
hw/i386/pc_q35.c static void pc_q35_machine_options(MachineClass *m) · line 360
Quoted 10 lines
hw/i386/pc_q35.c +1
-1@@ -357,7 +357,7 @@ static void pc_q35_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_INTEL_IOMMU_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_RAMFB_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_VMBUS_BRIDGE ); - m->max_cpus =288 ; + m->max_cpus =512 ;Maybe we should bump it to KVM VCPU maximum, and make sure we error out if asked for combination of hardware/irqchip is not usable.
Quoted 3 lines
In RHEL downstream we currently bump this to 710 CPUs, because you overflow the SMBIOS 2.1 tables at approx 720 CPUs (give/take a little depending on other config options).
Also there were some testing done with 1024,
but my main reason for matching KVM's limit is unblock upstream testing so it would be easier to push limits for others. Downstream can clamp that value down to whatever it deems as supported.Quoted 8 lines
Quoted 4 lines
Going beyond 710 CPUs value requires using the SMBIOS 3 entry point.
AFAIK, the x86 machine types still default to SMBIOS 2.1, so that would need changing too.
Yep, we can change default to SMBIOS 3 starting with new machine type (7.1?) or conditionally depending on requested number of CPUs,
though I'd prefer machine type approach.Agree, machine type is better IMHO, a it gives us a consistent guest ABI regardless of CPU count.
Quoted 6 lines
Quoted 3 lines
As for SMBIOS 3, we still have to update CPU structures to support more than 255 vcpus (Julia was working on it). It's long standing bug, but that doesn't seem to be critical, as guest boots fine with old structures.
What's the impact of SMBIOS 3 being limited to 255 ? That's lower than the current max CPUs of 288 in upstream / 710 in downstream.
possibly users that look into SMBIOS for licensing purposes and/or inventory Julia told me that dmidecode somehow figures out correct number of total vcpus.
CCing Julia for patches ETA.
Quoted 4 lines
With regards,
Daniel
Quoted 60 lines · Igor Mammedov
Quoted 56 lines · On Tue, 10 May 2022 09:14:19 +0100 Daniel P. Berrangé <[email protected]>…
Quoted 39 lines · Igor Mammedov
Quoted 27 lines · On Mon, 9 May 2022 13:03:38 +0100 Daniel P. Berrangé <[email protected]>…
Quoted 11 lines · Igor Mammedov
Quoted 8 lines · On Wed, 4 May 2022 08:16:39 -0500 Suravee Suthikulpanit…
This is the maximum number of vCPU supported by
the AMD x2APIC virtualization.Signed-off-by Suravee Suthikulpanit <[email protected]>--- hw/i386/pc_q35.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 14 lines
hw/i386/pc_q35.c static void pc_q35_machine_options(MachineClass *m) · line 360
Quoted 10 lines
hw/i386/pc_q35.c +1
-1@@ -357,7 +357,7 @@ static void pc_q35_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_INTEL_IOMMU_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_RAMFB_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_VMBUS_BRIDGE ); - m->max_cpus =288 ; + m->max_cpus =512 ;Maybe we should bump it to KVM VCPU maximum, and make sure we error out if asked for combination of hardware/irqchip is not usable.
Quoted 3 lines
In RHEL downstream we currently bump this to 710 CPUs, because you overflow the SMBIOS 2.1 tables at approx 720 CPUs (give/take a little depending on other config options).
Also there were some testing done with 1024,
but my main reason for matching KVM's limit is unblock upstream testing so it would be easier to push limits for others. Downstream can clamp that value down to whatever it deems as supported.Quoted 8 lines
Quoted 4 lines
Going beyond 710 CPUs value requires using the SMBIOS 3 entry point.
AFAIK, the x86 machine types still default to SMBIOS 2.1, so that would need changing too.
Yep, we can change default to SMBIOS 3 starting with new machine type (7.1?) or conditionally depending on requested number of CPUs,
though I'd prefer machine type approach.Agree, machine type is better IMHO, a it gives us a consistent guest ABI regardless of CPU count.
Quoted 3 lines
As for SMBIOS 3, we still have to update CPU structures to support more than 255 vcpus (Julia was working on it). It's long standing bug, but that doesn't seem to be critical, as guest boots fine with old structures.
Quoted 7 lines
Quoted 2 lines
What's the impact of SMBIOS 3 being limited to 255 ? That's lower than the current max CPUs of 288 in upstream / 710 in downstream.
possibly users that look into SMBIOS for licensing purposes and/or inventory Julia told me that dmidecode somehow figures out correct number of total vcpus.
CCing Julia for patches ETA.
Should be this week.
Best regards, Julia Suvorova.
Quoted 6 lines
Quoted 5 lines
With regards,
Daniel
Quoted 11 lines · Igor Mammedov
Quoted 8 lines · On Wed, 4 May 2022 08:16:39 -0500 Suravee Suthikulpanit…
This is the maximum number of vCPU supported by
the AMD x2APIC virtualization.Signed-off-by Suravee Suthikulpanit <[email protected]>--- hw/i386/pc_q35.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines
hw/i386/pc_q35.c static void pc_q35_machine_options(MachineClass *m) · line 360
Quoted 10 lines
hw/i386/pc_q35.c +1
-1@@ -357,7 +357,7 @@ static void pc_q35_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_INTEL_IOMMU_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_RAMFB_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_VMBUS_BRIDGE ); - m->max_cpus =288 ; + m->max_cpus =512 ;Maybe we should bump it to KVM VCPU maximum, and make sure we error out if asked for combination of hardware/irqchip is not usable.
So what happens if one does 710 and then tries to use AMD x2APIC? We'd like that to error out, right?
Quoted 4 lines
Quoted 4 lines
hw/i386/pc_q35.c +0
-0}static void pc_q35_7_1_machine_options (MachineClass *m)
Quoted 26 lines · Michael S. Tsirkin
Quoted 11 lines · Igor Mammedov
Quoted 8 lines · On Wed, 4 May 2022 08:16:39 -0500 Suravee…
This is the maximum number of vCPU supported by
the AMD x2APIC virtualization.Signed-off-by Suravee Suthikulpanit<[email protected]>--- hw/i386/pc_q35.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 13 lines
hw/i386/pc_q35.c static void pc_q35_machine_options(MachineClass *m) · line 360
Quoted 10 lines
hw/i386/pc_q35.c +1
-1@@ -357,7 +357,7 @@ static void pc_q35_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_INTEL_IOMMU_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_RAMFB_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_VMBUS_BRIDGE ); - m->max_cpus =288 ; + m->max_cpus =512 ;Maybe we should bump it to KVM VCPU maximum, and make sure we error out if asked for combination of hardware/irqchip is not usable.
Quoted 3 lines
So what happens if one does 710 and then tries to use AMD x2APIC? We'd like that to error out, right?
Since the AMD SVM x2AVIC can support only upto 512 vCPUs, KVM would return error when QEMU tries to create more than 512 vcpus in the following call-path:
kvm_vm_ioctl_create_vcpu
kvm_arch_vcpu_create
svm_vcpu_create
avic_init_vcpu
Also, I tried to find a way to get the KVM VCPU max value via KVM_CAP_MAX_VCPUS ioctl, but the accel/kvm/kvm-all.c:kvm_init() is called later than hw/core/machine-smp.c:machine_parse_smp_config(), where it checks the specified QEMU -smp option.
So, if there is no objection, I will send out a patch to change m->max_cpus = 1024 to match current KVM limit.
Best Regards,
Suravee
Quoted 31 lines · On Thu, 19 May 2022 13:53:49 +0700 Suravee Suthikulpanit…
Quoted 26 lines · Michael S. Tsirkin
Quoted 11 lines · Igor Mammedov
Quoted 8 lines · On Wed, 4 May 2022 08:16:39 -0500 Suravee…
This is the maximum number of vCPU supported by
the AMD x2APIC virtualization.Signed-off-by Suravee Suthikulpanit<[email protected]>--- hw/i386/pc_q35.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 13 lines
hw/i386/pc_q35.c static void pc_q35_machine_options(MachineClass *m) · line 360
Quoted 10 lines
hw/i386/pc_q35.c +1
-1@@ -357,7 +357,7 @@ static void pc_q35_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_INTEL_IOMMU_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_RAMFB_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_VMBUS_BRIDGE ); - m->max_cpus =288 ; + m->max_cpus =512 ;Maybe we should bump it to KVM VCPU maximum, and make sure we error out if asked for combination of hardware/irqchip is not usable.
Quoted 3 lines
So what happens if one does 710 and then tries to use AMD x2APIC? We'd like that to error out, right?
Quoted 8 lines
Since the AMD SVM x2AVIC can support only upto 512 vCPUs, KVM would return error when QEMU tries to create more than 512 vcpus in the following call-path:
kvm_vm_ioctl_create_vcpu
kvm_arch_vcpu_create
svm_vcpu_create
avic_init_vcpu
what is actual error message that end user will get from that failure?
Quoted 10 lines
Also, I tried to find a way to get the KVM VCPU max value via
KVM_CAP_MAX_VCPUSioctl, but the accel/kvm/kvm-all.c:kvm_init() is called later thanhw/core/machine-smp.c:machine_parse_smp_config(), where it checks the specified QEMU -smp option.So, if there is no objection, I will send out a patch to change
m->max_cpus= 1024 to match current KVM limit.Best Regards,
Suravee
Quoted 36 lines · Igor Mammedov
Quoted 33 lines · On Thu, 19 May 2022 13:53:49 +0700 Suravee…
Quoted 25 lines · Michael S. Tsirkin
Quoted 11 lines · Igor Mammedov
Quoted 8 lines · On Wed, 4 May 2022 08:16:39 -0500 Suravee…
This is the maximum number of vCPU supported by
the AMD x2APIC virtualization.Signed-off-by Suravee Suthikulpanit<[email protected]>--- hw/i386/pc_q35.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 13 lines
hw/i386/pc_q35.c static void pc_q35_machine_options(MachineClass *m) · line 360
Quoted 10 lines
hw/i386/pc_q35.c +1
-1@@ -357,7 +357,7 @@ static void pc_q35_machine_options(MachineClass *m)machine_class_allow_dynamic_sysbus_dev (m,TYPE_INTEL_IOMMU_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_RAMFB_DEVICE );machine_class_allow_dynamic_sysbus_dev (m,TYPE_VMBUS_BRIDGE ); - m->max_cpus =288 ; + m->max_cpus =512 ;Maybe we should bump it to KVM VCPU maximum, and make sure we error out if asked for combination of hardware/irqchip is not usable.
Quoted 3 lines
So what happens if one does 710 and then tries to use AMD x2APIC? We'd like that to error out, right?
Since the AMD SVM x2AVIC can support only upto 512 vCPUs, KVM would return error when QEMU tries to create more than 512 vcpus in the following call-path:
Quoted 5 lines
Quoted 4 lines
kvm_vm_ioctl_create_vcpu
kvm_arch_vcpu_create
svm_vcpu_create
avic_init_vcpuwhat is actual error message that end user will get from that failure?
qemu-system-x86_64: kvm_init_vcpu: kvm_get_vcpu failed (512): Invalid argument
Best Regards,
Suravee