[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH 0/4] QOM'ify work for ppc
From: |
赵小强 |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH 0/4] QOM'ify work for ppc |
Date: |
Tue, 3 Jan 2017 22:02:21 +0800 |
Hi,david:
To my understanding,what must be put in the realize function is code which
depends on property values. What's the benefit of moving memory region
initialization into realize function? I can not figure out, can you make some
explanations?
Thanks for your review.
Best wishes !
> 在 2017年1月3日,06:28,David Gibson <address@hidden> 写道:
>
>> On Sat, Dec 31, 2016 at 09:18:27AM +0800, xiaoqiang zhao wrote:
>> This is some QOM'ify work relate with ppc.
>> See each commit message for details.
>>
>> xiaoqiang zhao (4):
>> hw/gpio: QOM'ify mpc8xxx.c
>> hw/ppc: QOM'ify e500.c
>> hw/ppc: QOM'ify ppce500_spin.c
>> hw/ppc: QOM'ify spapr_vio.c
>>
>> hw/gpio/mpc8xxx.c | 20 +++++++++++---------
>> hw/ppc/e500.c | 17 ++++-------------
>> hw/ppc/ppce500_spin.c | 18 ++++++++----------
>> hw/ppc/spapr_vio.c | 2 --
>> 4 files changed, 23 insertions(+), 34 deletions(-)
>
> Patches 1-3 all have the same problem - they move memory region
> initialization and similar to an instance_init function. This is not
> how things are generally done in the qdev model. Instead that phase
> of initialization should be done from a dc->realize() function.
>
> --
> David Gibson | I'll have my music baroque, and my code
> david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
> | _way_ _around_!
> http://www.ozlabs.org/~dgibson
> [attachment]
>
> signature.asc
> download:
> http://preview.mail.163.com/xdownload?filename=signature.asc&mid=1tbiqBVTxlc67OfNrwABst&part=2&sign=95585277ead1794d396d48ba29e73240&time=1483402980&uid=zxq_yx_007%40163.com
>
> preview:
> http://preview.mail.163.com/preview?mid=1tbiqBVTxlc67OfNrwABst&part=2&sign=95585277ead1794d396d48ba29e73240&time=1483402980&uid=zxq_yx_007%40163.com
>
- Re: [Qemu-ppc] [PATCH 0/4] QOM'ify work for ppc, David Gibson, 2017/01/02
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 0/4] QOM'ify work for ppc,
赵小强 <=
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 0/4] QOM'ify work for ppc, David Gibson, 2017/01/03
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 0/4] QOM'ify work for ppc, 赵小强, 2017/01/04
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 0/4] QOM'ify work for ppc, Peter Maydell, 2017/01/04
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 0/4] QOM'ify work for ppc, David Gibson, 2017/01/04
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 0/4] QOM'ify work for ppc, 赵小强, 2017/01/04
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 0/4] QOM'ify work for ppc, David Gibson, 2017/01/04