[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 11/13] increase MAX_CPUMASK_BITS from 255 to
From: |
Andrew Jones |
Subject: |
Re: [Qemu-devel] [PATCH v3 11/13] increase MAX_CPUMASK_BITS from 255 to 288 |
Date: |
Thu, 13 Oct 2016 15:01:41 +0200 |
User-agent: |
Mutt/1.6.0.1 (2016-04-01) |
On Thu, Oct 13, 2016 at 11:52:45AM +0200, Igor Mammedov wrote:
> so that it would be possible to increase maxcpus limit
> for x86 target. Keep spapr/virt_arm at limit they used
> to have 255.
>
> Signed-off-by: Igor Mammedov <address@hidden>
> ---
> CC: address@hidden
> CC: address@hidden
> CC: address@hidden
>
> include/sysemu/sysemu.h | 2 +-
> hw/arm/virt.c | 2 +-
> hw/ppc/spapr.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h
> index b668833..66c6f15 100644
> --- a/include/sysemu/sysemu.h
> +++ b/include/sysemu/sysemu.h
> @@ -173,7 +173,7 @@ extern int mem_prealloc;
> *
> * Note that cpu->get_arch_id() may be larger than MAX_CPUMASK_BITS.
> */
> -#define MAX_CPUMASK_BITS 255
> +#define MAX_CPUMASK_BITS 288
>
> #define MAX_OPTION_ROMS 16
> typedef struct QEMUOptionRom {
> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
> index 795740d..186b5bd 100644
> --- a/hw/arm/virt.c
> +++ b/hw/arm/virt.c
> @@ -1491,7 +1491,7 @@ static void virt_machine_class_init(ObjectClass *oc,
> void *data)
> * it later in machvirt_init, where we have more information about the
> * configuration of the particular instance.
> */
> - mc->max_cpus = MAX_CPUMASK_BITS;
> + mc->max_cpus = 255;
> mc->has_dynamic_sysbus = true;
> mc->block_default_type = IF_VIRTIO;
> mc->no_cdrom = 1;
> diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
> index 03e3803..fb3b498 100644
> --- a/hw/ppc/spapr.c
> +++ b/hw/ppc/spapr.c
> @@ -2388,7 +2388,7 @@ static void spapr_machine_class_init(ObjectClass *oc,
> void *data)
> mc->init = ppc_spapr_init;
> mc->reset = ppc_spapr_reset;
> mc->block_default_type = IF_SCSI;
> - mc->max_cpus = MAX_CPUMASK_BITS;
> + mc->max_cpus = 255;
> mc->no_parallel = 1;
> mc->default_boot_order = "";
> mc->default_ram_size = 512 * M_BYTE;
> --
> 2.7.4
>
>
Reviewed-by: Andrew Jones <address@hidden>
- Re: [Qemu-devel] [PATCH v3 08/13] pc: apic_common: reset APIC ID to initial ID when switching into x2APIC mode, (continued)
[Qemu-devel] [PATCH v3 10/13] pc: clarify FW_CFG_MAX_CPUS usage comment, Igor Mammedov, 2016/10/13
[Qemu-devel] [PATCH v3 11/13] increase MAX_CPUMASK_BITS from 255 to 288, Igor Mammedov, 2016/10/13
- Re: [Qemu-devel] [PATCH v3 11/13] increase MAX_CPUMASK_BITS from 255 to 288,
Andrew Jones <=
[Qemu-devel] [PATCH v3 13/13] pc: require IRQ remapping and EIM if there could be x2APIC CPUs, Igor Mammedov, 2016/10/13
- Re: [Qemu-devel] [PATCH v3 13/13] pc: require IRQ remapping and EIM if there could be x2APIC CPUs, Radim Krčmář, 2016/10/13
- [Qemu-devel] [PATCH v4 13/13] pc: require IRQ remapping and EIM if there could be x2APIC CPUs, Igor Mammedov, 2016/10/14
- Re: [Qemu-devel] [PATCH v4 13/13] pc: require IRQ remapping and EIM if there could be x2APIC CPUs, Eduardo Habkost, 2016/10/18
- Re: [Qemu-devel] [PATCH v4 13/13] pc: require IRQ remapping and EIM if there could be x2APIC CPUs, Igor Mammedov, 2016/10/18
- Re: [Qemu-devel] [PATCH v4 13/13] pc: require IRQ remapping and EIM if there could be x2APIC CPUs, Eduardo Habkost, 2016/10/18
- Re: [Qemu-devel] [PATCH v4 13/13] pc: require IRQ remapping and EIM if there could be x2APIC CPUs, Igor Mammedov, 2016/10/18
[Qemu-devel] [PATCH v3 12/13] pc: add 'etc/boot-cpus' fw_cfg file for machine with more than 255 CPUs, Igor Mammedov, 2016/10/13
Re: [Qemu-devel] [PATCH v3 00/13] pc: q35: x2APIC support in kvm_apic mode, Paolo Bonzini, 2016/10/13