[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v7 6/6] Add gicversion option to virt machine
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v7 6/6] Add gicversion option to virt machine |
Date: |
Fri, 31 Jul 2015 16:44:44 +0100 |
On 24 July 2015 at 10:55, Pavel Fedin <address@hidden> wrote:
> Set kernel_irqchip_type according to value of the option and pass it
> around where necessary. Instantiate devices and fdt nodes according
> to the choice.
>
> max_cpus for virt machine increased to 64. GICv2 compatibility check
> happens inside arm_gic_common_realize().
>
> gicdev = qdev_create(NULL, gictype);
> - qdev_prop_set_uint32(gicdev, "revision", 2);
> +
> + for (i = 0; i < vbi->smp_cpus; i++) {
> + CPUState *cpu = qemu_get_cpu(i);
> + CPUARMState *env = cpu->env_ptr;
> + env->nvic = gicdev;
> + }
We definitely need to come up with a something cleaner
than this (which is ugly for two reasons -- firstly
for borrowing the nvic pointer and secondly because
we shouldn't just be putting random pointers between
the two like this, ideally; and we definitely don't want
the board code to have to do it at this level.)
-- PMM
- Re: [Qemu-devel] [PATCH v7 5/6] Initial implementation of vGICv3, (continued)
- Re: [Qemu-devel] [PATCH v7 5/6] Initial implementation of vGICv3, Pavel Fedin, 2015/07/31
- Re: [Qemu-devel] [PATCH v7 5/6] Initial implementation of vGICv3, Peter Maydell, 2015/07/31
- Re: [Qemu-devel] [PATCH v7 5/6] Initial implementation of vGICv3, Peter Maydell, 2015/07/31
- Re: [Qemu-devel] [PATCH v7 5/6] Initial implementation of vGICv3, Pavel Fedin, 2015/07/31
- Re: [Qemu-devel] [PATCH v7 5/6] Initial implementation of vGICv3, Peter Maydell, 2015/07/31
- Re: [Qemu-devel] [PATCH v7 5/6] Initial implementation of vGICv3, Pavel Fedin, 2015/07/31
- Re: [Qemu-devel] [PATCH v7 5/6] Initial implementation of vGICv3, Peter Maydell, 2015/07/31
[Qemu-devel] [PATCH v7 1/6] Merge memory_region_init_reservation() into memory_region_init_io(), Pavel Fedin, 2015/07/24
[Qemu-devel] [PATCH v7 6/6] Add gicversion option to virt machine, Pavel Fedin, 2015/07/24
- Re: [Qemu-devel] [PATCH v7 6/6] Add gicversion option to virt machine,
Peter Maydell <=
[Qemu-devel] [PATCH v7 4/6] Introduce irqchip type specification for KVM, Pavel Fedin, 2015/07/24
[Qemu-devel] [PATCH v7 2/6] Implement GIC-500 base class, Pavel Fedin, 2015/07/24