All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Weil <sw@weilnetz.de>
To: Igor Mammedov <imammedo@redhat.com>
Cc: peter.maydell@linaro.org, jan.kiszka@siemens.com, mjt@tls.msk.ru,
	qemu-devel@nongnu.org, armbru@redhat.com, blauwirbel@gmail.com,
	kraxel@redhat.com, xen-devel@lists.xensource.com,
	i.mitsyanko@samsung.com, mdroth@linux.vnet.ibm.com,
	avi@redhat.com, anthony.perard@citrix.com, lersek@redhat.com,
	stefanha@linux.vnet.ibm.com, stefano.stabellini@eu.citrix.com,
	lcapitulino@redhat.com, rth@twiddle.net, kwolf@redhat.com,
	aliguori@us.ibm.com, mtosatti@redhat.com, pbonzini@redhat.com,
	afaerber@suse.de
Subject: Re: [Qemu-devel] [PATCH 0/5 v2] cpu: make a child of DeviceState
Date: Mon, 20 Aug 2012 06:52:51 +0200	[thread overview]
Message-ID: <5031C2A3.3060800@weilnetz.de> (raw)
In-Reply-To: <1345419579-25499-1-git-send-email-imammedo@redhat.com>

Am 20.08.2012 01:39, schrieb Igor Mammedov:
> this is th 3rd approach to make CPU a child of DeviceState
> for both kinds of targets *-user and *-softmmu. It seems
> with current state of qemu it doesn't take too much effort
> to make it compile. Please check if it doesn't break
> something on other targets/archs/hosts than i386.
>
> what's tested:
>    - compile tested building all targets on FC17x64 host.
>    - briefly tested i386 user and softmmu targets
>
> Anthony Liguori (1):
>    qdev: split up header so it can be used in cpu.h
>
> Igor Mammedov (4):
>    move qemu_irq typedef out of cpu-common.h
>    qapi-types.h doesn't really need to include qemu-common.h
>    cleanup error.h, included qapi-types.h aready has stdbool.h
>    make CPU a child of DeviceState
>
>   error.h               |    1 -
>   hw/arm-misc.h         |    1 +
>   hw/bt.h               |    2 +
>   hw/devices.h          |    2 +
>   hw/irq.h              |    2 +
>   hw/mc146818rtc.c      |    1 +
>   hw/omap.h             |    1 +
>   hw/qdev-addr.c        |    1 +
>   hw/qdev-core.h        |  240 ++++++++++++++++++++++++++++++++
>   hw/qdev-monitor.h     |   16 ++
>   hw/qdev-properties.c  |    1 +
>   hw/qdev-properties.h  |  128 +++++++++++++++++
>   hw/qdev.c             |    1 +
>   hw/qdev.h             |  371 +------------------------------------------------
>   hw/soc_dma.h          |    1 +
>   hw/xen.h              |    1 +
>   include/qemu/cpu.h    |    6 +-
>   qemu-common.h         |    1 -
>   scripts/qapi-types.py |    2 +-
>   sysemu.h              |    1 +
>   20 files changed, 407 insertions(+), 373 deletions(-)
>   create mode 100644 hw/qdev-core.h
>   create mode 100644 hw/qdev-monitor.h
>   create mode 100644 hw/qdev-properties.h
>

I'd prefer if you could keep the following simple pattern:

* Start includes in *.c files with config.h (optionally)
   and qemu-common.h.

* Don't include standard include files which are already
   included in qemu-common.h

* Don't include qemu-common.h in *.h files.

Regards,

Stefan Weil

WARNING: multiple messages have this Message-ID (diff)
From: Stefan Weil <sw@weilnetz.de>
To: Igor Mammedov <imammedo@redhat.com>
Cc: peter.maydell@linaro.org, jan.kiszka@siemens.com, mjt@tls.msk.ru,
	qemu-devel@nongnu.org, armbru@redhat.com, blauwirbel@gmail.com,
	kraxel@redhat.com, xen-devel@lists.xensource.com,
	i.mitsyanko@samsung.com, mdroth@linux.vnet.ibm.com,
	avi@redhat.com, anthony.perard@citrix.com, lersek@redhat.com,
	stefanha@linux.vnet.ibm.com, stefano.stabellini@eu.citrix.com,
	lcapitulino@redhat.com, rth@twiddle.net, kwolf@redhat.com,
	aliguori@us.ibm.com, mtosatti@redhat.com, pbonzini@redhat.com,
	afaerber@suse.de
Subject: Re: [PATCH 0/5 v2] cpu: make a child of DeviceState
Date: Mon, 20 Aug 2012 06:52:51 +0200	[thread overview]
Message-ID: <5031C2A3.3060800@weilnetz.de> (raw)
In-Reply-To: <1345419579-25499-1-git-send-email-imammedo@redhat.com>

Am 20.08.2012 01:39, schrieb Igor Mammedov:
> this is th 3rd approach to make CPU a child of DeviceState
> for both kinds of targets *-user and *-softmmu. It seems
> with current state of qemu it doesn't take too much effort
> to make it compile. Please check if it doesn't break
> something on other targets/archs/hosts than i386.
>
> what's tested:
>    - compile tested building all targets on FC17x64 host.
>    - briefly tested i386 user and softmmu targets
>
> Anthony Liguori (1):
>    qdev: split up header so it can be used in cpu.h
>
> Igor Mammedov (4):
>    move qemu_irq typedef out of cpu-common.h
>    qapi-types.h doesn't really need to include qemu-common.h
>    cleanup error.h, included qapi-types.h aready has stdbool.h
>    make CPU a child of DeviceState
>
>   error.h               |    1 -
>   hw/arm-misc.h         |    1 +
>   hw/bt.h               |    2 +
>   hw/devices.h          |    2 +
>   hw/irq.h              |    2 +
>   hw/mc146818rtc.c      |    1 +
>   hw/omap.h             |    1 +
>   hw/qdev-addr.c        |    1 +
>   hw/qdev-core.h        |  240 ++++++++++++++++++++++++++++++++
>   hw/qdev-monitor.h     |   16 ++
>   hw/qdev-properties.c  |    1 +
>   hw/qdev-properties.h  |  128 +++++++++++++++++
>   hw/qdev.c             |    1 +
>   hw/qdev.h             |  371 +------------------------------------------------
>   hw/soc_dma.h          |    1 +
>   hw/xen.h              |    1 +
>   include/qemu/cpu.h    |    6 +-
>   qemu-common.h         |    1 -
>   scripts/qapi-types.py |    2 +-
>   sysemu.h              |    1 +
>   20 files changed, 407 insertions(+), 373 deletions(-)
>   create mode 100644 hw/qdev-core.h
>   create mode 100644 hw/qdev-monitor.h
>   create mode 100644 hw/qdev-properties.h
>

I'd prefer if you could keep the following simple pattern:

* Start includes in *.c files with config.h (optionally)
   and qemu-common.h.

* Don't include standard include files which are already
   included in qemu-common.h

* Don't include qemu-common.h in *.h files.

Regards,

Stefan Weil

  parent reply	other threads:[~2012-08-20  4:52 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-19 23:39 [Qemu-devel] [PATCH 0/5 v2] cpu: make a child of DeviceState Igor Mammedov
2012-08-19 23:39 ` Igor Mammedov
2012-08-19 23:39 ` [Qemu-devel] [PATCH 1/5] move qemu_irq typedef out of cpu-common.h Igor Mammedov
2012-08-19 23:39   ` Igor Mammedov
2012-08-20  4:41   ` [Qemu-devel] " Stefan Weil
2012-08-20  4:41     ` Stefan Weil
2012-08-20 11:13     ` [Qemu-devel] " Igor Mammedov
2012-08-20 11:13       ` Igor Mammedov
2012-08-20 19:46       ` [Qemu-devel] " Blue Swirl
2012-08-20 19:46         ` Blue Swirl
2012-08-20 20:14         ` [Qemu-devel] " Anthony Liguori
2012-08-20 20:14           ` Anthony Liguori
2012-08-19 23:39 ` [Qemu-devel] [PATCH 2/5] qdev: split up header so it can be used in cpu.h Igor Mammedov
2012-08-19 23:39   ` Igor Mammedov
2012-08-19 23:39 ` [Qemu-devel] [PATCH 3/5] qapi-types.h doesn't really need to include qemu-common.h Igor Mammedov
2012-08-19 23:39   ` Igor Mammedov
2012-08-20 15:22   ` [Qemu-devel] " Luiz Capitulino
2012-08-20 15:22     ` Luiz Capitulino
2012-08-20 19:59     ` [Qemu-devel] " Igor Mammedov
2012-08-20 19:59       ` Igor Mammedov
2012-08-19 23:39 ` [Qemu-devel] [PATCH 4/5] cleanup error.h, included qapi-types.h aready has stdbool.h Igor Mammedov
2012-08-19 23:39   ` Igor Mammedov
2012-08-20 15:28   ` [Qemu-devel] " Luiz Capitulino
2012-08-20 15:28     ` Luiz Capitulino
2012-08-20 20:00     ` [Qemu-devel] [Xen-devel] " Igor Mammedov
2012-08-20 20:00       ` Igor Mammedov
2012-08-19 23:39 ` [Qemu-devel] [PATCH 5/5] make CPU a child of DeviceState Igor Mammedov
2012-08-19 23:39   ` Igor Mammedov
2012-08-21 14:03   ` [Qemu-devel] " Eduardo Habkost
2012-08-21 14:03     ` Eduardo Habkost
2012-08-20  4:52 ` Stefan Weil [this message]
2012-08-20  4:52   ` [PATCH 0/5 v2] cpu: make " Stefan Weil
2012-08-20 11:47   ` [Qemu-devel] " Igor Mammedov
2012-08-20 11:47     ` Igor Mammedov
2012-08-20 20:07     ` [Qemu-devel] [RFC] How should QEMU code handle include statements (was: Re: [PATCH 0/5 v2] cpu: make a child of DeviceState) Stefan Weil
2012-08-20 20:07       ` Stefan Weil
2012-08-21 10:19       ` [Qemu-devel] [RFC] How should QEMU code handle include statements Avi Kivity
2012-08-21 10:19         ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5031C2A3.3060800@weilnetz.de \
    --to=sw@weilnetz.de \
    --cc=afaerber@suse.de \
    --cc=aliguori@us.ibm.com \
    --cc=anthony.perard@citrix.com \
    --cc=armbru@redhat.com \
    --cc=avi@redhat.com \
    --cc=blauwirbel@gmail.com \
    --cc=i.mitsyanko@samsung.com \
    --cc=imammedo@redhat.com \
    --cc=jan.kiszka@siemens.com \
    --cc=kraxel@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=lcapitulino@redhat.com \
    --cc=lersek@redhat.com \
    --cc=mdroth@linux.vnet.ibm.com \
    --cc=mjt@tls.msk.ru \
    --cc=mtosatti@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=stefanha@linux.vnet.ibm.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.