qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Marcel Apfelbaum <marcel.a@redhat.com>
To: "Andreas Färber" <afaerber@suse.de>
Cc: mst@redhat.com, aik@ozlabs.ru, qemu-devel@nongnu.org,
	mdroth@linux.vnet.ibm.com, blauwirbel@gmail.com,
	jcmvbkbc@gmail.com, pbonzini@redhat.com,
	edgar.iglesias@gmail.com, gxt@mprc.pku.edu.cn,
	Rob Herring <robh@kernel.org>,
	proljc@gmail.com, agraf@suse.de, scottwood@freescale.com,
	borntraeger@de.ibm.com, hpoussin@reactos.org,
	aliguori@amazon.com, lersek@redhat.com, chouteau@adacore.com,
	jan.kiszka@web.de, stefanha@redhat.com,
	Igor Mammedov <imammedo@redhat.com>,
	cornelia.huck@de.ibm.com, lcapitulino@redhat.com,
	peter.crosthwaite@xilinx.com, armbru@redhat.com,
	michael@walle.cc, qemu-ppc@nongnu.org, peter.chubb@nicta.com.au,
	aurelien@aurel32.net
Subject: Re: [Qemu-devel] [PATCH 1/4] machine: conversion of QEMUMachineInitArgs to MachineState
Date: Sun, 18 May 2014 11:51:20 +0300	[thread overview]
Message-ID: <1400403080.12073.8.camel@localhost.localdomain> (raw)
In-Reply-To: <537659F6.3090705@suse.de>

On Fri, 2014-05-16 at 20:33 +0200, Andreas Färber wrote:
> Am 16.05.2014 16:39, schrieb Igor Mammedov:
> > On Wed,  7 May 2014 17:42:57 +0300
> > Marcel Apfelbaum <marcel.a@redhat.com> wrote:
> > 
> >> Total removal of QEMUMachineInitArgs struct. QEMUMachineInitArgs's fields
> >> are copied into MachineState. Removed duplicated fields from MachineState.
> >>
> >> All the other changes are only mechanical refactoring, no semantic changes.
> >>
> >> Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
> >> ---
> >>    - I am perfectly aware that patches touching a lot of files
> >>      are not desirable, but this one is a very simple replacement
> >>      patch:
> >>        QEMUMachineInitArgs -> MachineState
> >>        args -> ms
> >>    - This is the simplest way to get rid of QEMUMachineInitArgs fast.
> >>
> > Patch doesn't apply cleanly on current master
> 
> patch -p1 applied all hunks ...
> 
> > 
> > [...]
> > 
> >>  
> >>  #define PC_Q35_MACHINE_OPTIONS \
> >> diff --git a/hw/i386/xen_machine_pv.c b/hw/i386/xen_machine_pv.c
> >> index 9adb57f..fb7a817 100644
> >> --- a/hw/i386/xen_machine_pv.c
> >> +++ b/hw/i386/xen_machine_pv.c
> >> @@ -28,11 +28,11 @@
> > ^^^ file was moved
> 
> ... and prompted for the hw/xenpv/xen_machine_pv.c path.
> 
> > I've reviewed all targets, it looks good.
> > +1 to afaerber's comment s/ms/machine/ 
> 
> 4 "args->" were missed in exynos4_boards.c debug output.
> 
> for f in hw/*/*.c; do
>   sed -i 's/*ms\\)/*machine\\)/g' $f
>   sed -i 's/*ms,/*machine,/g' $f
>   sed -i 's/ ms->/ machine->/g' $f
>   sed -i 's/(ms->/(machine->/g' $f
>   sed -i 's/!ms->/!machine->/g' $f
>   sed -i 's/(ms)/(machine)/g' $f
>   sed -i 's/(ms,/(machine,/g' $f
>   sed -i 's/ ms,/ machine,/g' $f
>   sed -i 's/, ms)/, machine)/g' $f
> done
> git checkout -- hw/ppc/ppc4xx_pci.c # false "(ms," positive
> 
> highbank.c had a conflicting "machine" argument -> machine_id.
> 
> e500.c needed tweaking due to passing ms in a struct. And it was
> shallow-copying *ms, which must not be done for QOM. Passing the pointer
> instead.

Thanks for the help, Andreas!
Marcel

> 
> Andreas
> 

  reply	other threads:[~2014-05-18  8:51 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-07 14:42 [Qemu-devel] [Qemu-detvel] [PATCH 0/4] machine: QemuOpts per machine Marcel Apfelbaum
2014-05-07 14:42 ` [Qemu-devel] [PATCH 1/4] machine: conversion of QEMUMachineInitArgs to MachineState Marcel Apfelbaum
2014-05-12 16:00   ` Laszlo Ersek
2014-05-13 13:25   ` Cornelia Huck
2014-05-13 15:44   ` Michael S. Tsirkin
2014-05-13 17:34   ` Andreas Färber
2014-05-15 15:04   ` Markus Armbruster
2014-05-18  8:37     ` Marcel Apfelbaum
2014-05-16 14:39   ` Igor Mammedov
2014-05-16 18:33     ` Andreas Färber
2014-05-18  8:51       ` Marcel Apfelbaum [this message]
2014-05-16 16:20   ` Igor Mammedov
2014-05-16 18:38     ` Andreas Färber
2014-05-18  8:48       ` Marcel Apfelbaum
2014-05-07 14:42 ` [Qemu-devel] [PATCH 2/4] qapi: output visitor crashes qemu if it encounters a NULL value Marcel Apfelbaum
2014-05-13 17:36   ` Andreas Färber
2014-05-13 19:08     ` Eric Blake
2014-05-14 17:00       ` Andreas Färber
2014-05-14 17:29         ` Marcel Apfelbaum
2014-05-14 18:25           ` Luiz Capitulino
2014-05-14 19:51             ` Markus Armbruster
2014-05-14 20:38             ` Michael Roth
2014-05-18  8:42               ` Marcel Apfelbaum
2014-05-14 20:26           ` Andreas Färber
2014-05-15 16:13   ` Markus Armbruster
2014-05-15 16:27     ` Michael Roth
2014-05-15 17:19       ` Markus Armbruster
2014-05-15 17:55         ` Michael Roth
2014-05-07 14:42 ` [Qemu-devel] [PATCH 3/4] vl.c: do not set 'type' property in obj_set_property Marcel Apfelbaum
2014-05-13 17:39   ` Andreas Färber
2014-05-15 16:15   ` Markus Armbruster
2014-05-15 16:38     ` Andreas Färber
2014-05-15 17:13       ` Paolo Bonzini
2014-05-07 14:43 ` [Qemu-devel] [PATCH 4/4] hw/machine: qemu machine opts as properties to QemuMachineState Marcel Apfelbaum
2014-05-13 17:54   ` Andreas Färber
2014-05-13 13:13 ` [Qemu-devel] [Qemu-detvel] [PATCH 0/4] machine: QemuOpts per machine Marcel Apfelbaum

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=1400403080.12073.8.camel@localhost.localdomain \
    --to=marcel.a@redhat.com \
    --cc=afaerber@suse.de \
    --cc=agraf@suse.de \
    --cc=aik@ozlabs.ru \
    --cc=aliguori@amazon.com \
    --cc=armbru@redhat.com \
    --cc=aurelien@aurel32.net \
    --cc=blauwirbel@gmail.com \
    --cc=borntraeger@de.ibm.com \
    --cc=chouteau@adacore.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=edgar.iglesias@gmail.com \
    --cc=gxt@mprc.pku.edu.cn \
    --cc=hpoussin@reactos.org \
    --cc=imammedo@redhat.com \
    --cc=jan.kiszka@web.de \
    --cc=jcmvbkbc@gmail.com \
    --cc=lcapitulino@redhat.com \
    --cc=lersek@redhat.com \
    --cc=mdroth@linux.vnet.ibm.com \
    --cc=michael@walle.cc \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.chubb@nicta.com.au \
    --cc=peter.crosthwaite@xilinx.com \
    --cc=proljc@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=robh@kernel.org \
    --cc=scottwood@freescale.com \
    --cc=stefanha@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).