[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/4] machine: conversion of QEMUMachi
From: |
Andreas Färber |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/4] machine: conversion of QEMUMachineInitArgs to MachineState |
Date: |
Fri, 16 May 2014 20:33:26 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
Am 16.05.2014 16:39, schrieb Igor Mammedov:
> On Wed, 7 May 2014 17:42:57 +0300
> Marcel Apfelbaum <address@hidden> 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 <address@hidden>
>> ---
>> - 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.
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
ms_machine.diff
Description: Text Data
- [Qemu-ppc] [Qemu-devel] [PATCH 4/4] hw/machine: qemu machine opts as properties to QemuMachineState, (continued)
- [Qemu-ppc] [Qemu-devel] [PATCH 4/4] hw/machine: qemu machine opts as properties to QemuMachineState, Marcel Apfelbaum, 2014/05/07
- [Qemu-ppc] [Qemu-devel] [PATCH 1/4] machine: conversion of QEMUMachineInitArgs to MachineState, Marcel Apfelbaum, 2014/05/07
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/4] machine: conversion of QEMUMachineInitArgs to MachineState, Laszlo Ersek, 2014/05/12
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/4] machine: conversion of QEMUMachineInitArgs to MachineState, Cornelia Huck, 2014/05/13
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/4] machine: conversion of QEMUMachineInitArgs to MachineState, Michael S. Tsirkin, 2014/05/13
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/4] machine: conversion of QEMUMachineInitArgs to MachineState, Andreas Färber, 2014/05/13
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/4] machine: conversion of QEMUMachineInitArgs to MachineState, Markus Armbruster, 2014/05/15
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/4] machine: conversion of QEMUMachineInitArgs to MachineState, Igor Mammedov, 2014/05/16
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 1/4] machine: conversion of QEMUMachineInitArgs to MachineState, Igor Mammedov, 2014/05/16
[Qemu-ppc] [Qemu-devel] [PATCH 3/4] vl.c: do not set 'type' property in obj_set_property, Marcel Apfelbaum, 2014/05/07
Re: [Qemu-ppc] [Qemu-devel] [Qemu-detvel] [PATCH 0/4] machine: QemuOpts per machine, Marcel Apfelbaum, 2014/05/13