[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v4 03/20] ppc/pnv: add a core mask to PnvChip
From: |
Cédric Le Goater |
Subject: |
Re: [Qemu-ppc] [PATCH v4 03/20] ppc/pnv: add a core mask to PnvChip |
Date: |
Mon, 10 Oct 2016 14:56:25 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
>> @@ -227,11 +227,44 @@ static void ppc_powernv_init(MachineState *machine)
>> snprintf(chip_name, sizeof(chip_name), "chip[%d]", CHIP_HWID(i));
>> object_property_add_child(OBJECT(pnv), chip_name, chip,
>> &error_fatal);
>> object_property_set_int(chip, CHIP_HWID(i), "chip-id",
>> &error_fatal);
>> + object_property_set_int(chip, smp_cores, "nr-cores", &error_fatal);
>> + /*
>> + * We could customize cores_mask for the chip here. May be
>> + * using a powernv machine property, like 'num-chips'. Let the
>> + * chip choose the default for now.
>
> I don't think you need any special mechanism for this. If you just
> remove this explicit assignment the chip default will apply, but the
> user can alter it using -global.
Using a command line with :
-global powernv-chip-POWER8.cores-mask=0x7070
would work for one chip but not for more. Let's start with that, I will
remove the comment for now. multiple chip is for later.
Thanks,
C.
- Re: [Qemu-ppc] [PATCH v4 01/20] ppc/pnv: add skeleton PowerNV platform, (continued)
- [Qemu-ppc] [PATCH v4 02/20] ppc/pnv: add a PnvChip object, Cédric Le Goater, 2016/10/03
- [Qemu-ppc] [PATCH v4 03/20] ppc/pnv: add a core mask to PnvChip, Cédric Le Goater, 2016/10/03
- Re: [Qemu-ppc] [PATCH v4 03/20] ppc/pnv: add a core mask to PnvChip,
Cédric Le Goater <=
- Re: [Qemu-ppc] [PATCH v4 03/20] ppc/pnv: add a core mask to PnvChip, David Gibson, 2016/10/11
- Re: [Qemu-ppc] [PATCH v4 03/20] ppc/pnv: add a core mask to PnvChip, Cédric Le Goater, 2016/10/12
- Re: [Qemu-ppc] [PATCH v4 03/20] ppc/pnv: add a core mask to PnvChip, David Gibson, 2016/10/13
[Qemu-ppc] [PATCH v4 04/20] ppc/pnv: add a PIR handler to PnvChip, Cédric Le Goater, 2016/10/03
[Qemu-ppc] [PATCH v4 05/20] ppc/pnv: add a PnvCore object, Cédric Le Goater, 2016/10/03
[Qemu-ppc] [PATCH v4 06/20] ppc/pnv: add XSCOM infrastructure, Cédric Le Goater, 2016/10/03