[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 11/12] include core qdev code into *-user, too
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-devel] [PATCH 11/12] include core qdev code into *-user, too |
Date: |
Fri, 19 Oct 2012 13:59:09 -0300 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Oct 17, 2012 at 08:21:17PM +0100, Peter Maydell wrote:
> On 17 October 2012 19:11, Anthony Liguori <address@hidden> wrote:
> > It's dangerously close to bike-shedding, but i don't think qdev belongs
> > in qom/. It's not core infrastructure. It's the device base class and
> > belongs IMHO in hw/.
>
> "-user emulators don't get anything from hw/" is one of those semi
> arbitrary but easily definable lines that I'd prefer it if we didn't
> break. (Although IIRC there was a directory-renaming proposal recently
> which maybe defines some different lines instead.)
I just rememberd another reason for moving qdev-core to qom: the CPU
class itself (that's going to be a child of DeviceState) is already
inside qom. Keeping qdev-core it on hw/ would mean having a qom->hw->qom
dependency chain (qom/cpu.c -> hw/qdev.c -> qom/object.c).
So, by now I am keeping the proposed patch as-is (moving qdev-core to
qom/).
--
Eduardo
- [Qemu-devel] [PATCH 09/12] move qemu_irq typedef out of cpu-common.h, (continued)
- [Qemu-devel] [PATCH 09/12] move qemu_irq typedef out of cpu-common.h, Eduardo Habkost, 2012/10/16
- [Qemu-devel] [PATCH 12/12] qom: make CPU a child of DeviceState, Eduardo Habkost, 2012/10/16
- [Qemu-devel] [PATCH 04/12] qdev: rename qdev.c to qdev-core.c, Eduardo Habkost, 2012/10/16
- [Qemu-devel] [PATCH 03/12] qdev: separate core from the code used only by qemu-system-*, Eduardo Habkost, 2012/10/16
- [Qemu-devel] [PATCH 01/12] qdev: split up header so it can be used in cpu.h, Eduardo Habkost, 2012/10/16
- [Qemu-devel] [PATCH 11/12] include core qdev code into *-user, too, Eduardo Habkost, 2012/10/16
- Re: [Qemu-devel] [PATCH 11/12] include core qdev code into *-user, too, Igor Mammedov, 2012/10/22