[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 7/9] hw/kvm/arm_gic: Implement support for KV
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v6 7/9] hw/kvm/arm_gic: Implement support for KVM in-kernel ARM GIC |
Date: |
Sun, 24 Feb 2013 16:20:44 +0000 |
On 23 February 2013 15:29, Andreas Färber <address@hidden> wrote:
>> +static int kvm_arm_gic_init(SysBusDevice *dev)
>
> Please make this a realize function ...
Will do. As you've probably guessed, this was written some time
ago and I never updated it to match our current recommendations.
>> + KVMARMGICClass *kgc = KVM_ARM_GIC_GET_CLASS(s);
>> +
>> + kgc->parent_init(dev);
>
> ... and call sbc->init(dev) here as long as the base class is not updated.
Maybe I should just update the base class?
>> +static void kvm_arm_gic_class_init(ObjectClass *klass, void *data)
>> +{
>> + DeviceClass *dc = DEVICE_CLASS(klass);
>> + SysBusDeviceClass *sbc = SYS_BUS_DEVICE_CLASS(klass);
>> + ARMGICCommonClass *agcc = ARM_GIC_COMMON_CLASS(klass);
>> + KVMARMGICClass *kgc = KVM_ARM_GIC_CLASS(klass);
>
> Please separate variable definitions and rest of block by a white line,
> here and elsewhere.
OK.
-- PMM
- [Qemu-devel] [PATCH v6 0/9] QEMU: Support KVM on ARM, Peter Maydell, 2013/02/22
- [Qemu-devel] [PATCH v6 3/9] ARM: KVM: Add support for KVM on ARM architecture, Peter Maydell, 2013/02/22
- [Qemu-devel] [PATCH v6 7/9] hw/kvm/arm_gic: Implement support for KVM in-kernel ARM GIC, Peter Maydell, 2013/02/22
- [Qemu-devel] [PATCH v6 2/9] linux-headers: resync from mainline to add ARM KVM headers, Peter Maydell, 2013/02/22
- [Qemu-devel] [PATCH v6 4/9] ARM KVM: save and load VFP registers from kernel, Peter Maydell, 2013/02/22
- [Qemu-devel] [PATCH v6 9/9] MAINTAINERS: add entry for ARM KVM guest cores, Peter Maydell, 2013/02/22
- [Qemu-devel] [PATCH v6 8/9] configure: Enable KVM on ARM, Peter Maydell, 2013/02/22
- [Qemu-devel] [PATCH v6 5/9] hw/arm_gic: Add presave/postload hooks, Peter Maydell, 2013/02/22
- [Qemu-devel] [PATCH v6 6/9] target-arm: Use MemoryListener to identify GIC base address for KVM, Peter Maydell, 2013/02/22
- [Qemu-devel] [PATCH v6 1/9] oslib-posix: Align to permit transparent hugepages on ARM Linux, Peter Maydell, 2013/02/22