<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/hw/cris, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/hw/cris?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/hw/cris?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2021-05-02T15:24:51+00:00</updated>
<entry>
<title>Do not include exec/address-spaces.h if it's not really necessary</title>
<updated>2021-05-02T15:24:51+00:00</updated>
<author>
<name>Thomas Huth</name>
</author>
<published>2021-04-16T17:13:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=ee86213aa3ff73c49ced340e4d409943a1f752a3'/>
<id>urn:sha1:ee86213aa3ff73c49ced340e4d409943a1f752a3</id>
<content type='text'>
Stop including exec/address-spaces.h in files that don't need it.

Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
Message-Id: &lt;20210416171314.2074665-5-thuth@redhat.com&gt;
Signed-off-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
</content>
</entry>
<entry>
<title>hw: Replace anti-social QOM type names</title>
<updated>2021-03-19T14:18:43+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2021-03-04T14:02:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=e178113ff6465b55893c2b048b0a4be82a7bbd25'/>
<id>urn:sha1:e178113ff6465b55893c2b048b0a4be82a7bbd25</id>
<content type='text'>
Several QOM type names contain ',':

    ARM,bitband-memory
    etraxfs,pic
    etraxfs,serial
    etraxfs,timer
    fsl,imx25
    fsl,imx31
    fsl,imx6
    fsl,imx6ul
    fsl,imx7
    grlib,ahbpnp
    grlib,apbpnp
    grlib,apbuart
    grlib,gptimer
    grlib,irqmp
    qemu,register
    SUNW,bpp
    SUNW,CS4231
    SUNW,DBRI
    SUNW,DBRI.prom
    SUNW,fdtwo
    SUNW,sx
    SUNW,tcx
    xilinx,zynq_slcr
    xlnx,zynqmp
    xlnx,zynqmp-pmu-soc
    xlnx,zynq-xadc

These are all device types.  They can't be plugged with -device /
device_add, except for xlnx,zynqmp-pmu-soc, and I doubt that one
actually works.

They *can* be used with -device / device_add to request help.
Usability is poor, though: you have to double the comma, like this:

    $ qemu-system-x86_64 -device SUNW,,fdtwo,help

Trap for the unwary.  The fact that this was broken in
device-introspect-test for more than six years until commit e27bd49876
fixed it demonstrates that "the unwary" includes seasoned developers.

One QOM type name contains ' ': "ICH9 SMB".  Because having to
remember just one way to quote would be too easy.

Rename the "SUNW,FOO types to "sun-FOO".  Summarily replace ',' and '
' by '-' in the other type names.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20210304140229.575481-2-armbru@redhat.com&gt;
Reviewed-by: Mark Cave-Ayland &lt;mark.cave-ayland@ilande.co.uk&gt;
Acked-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>cris: do not use ram_size global</title>
<updated>2020-12-10T17:15:07+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2020-10-28T10:19:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=58a70f169e33446a1a666145faaa1602b8a2ad3d'/>
<id>urn:sha1:58a70f169e33446a1a666145faaa1602b8a2ad3d</id>
<content type='text'>
Use the machine properties instead.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>load_elf: Remove unused address variables from callers</title>
<updated>2020-09-25T23:52:08+00:00</updated>
<author>
<name>BALATON Zoltan</name>
</author>
<published>2020-07-05T17:22:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=617160c9e1f8022563c33aa7fd204535d4d49f8c'/>
<id>urn:sha1:617160c9e1f8022563c33aa7fd204535d4d49f8c</id>
<content type='text'>
Several callers of load_elf() pass pointers for lowaddr and highaddr
parameters which are then not used for anything. This may stem from a
misunderstanding that load_elf need a value here but in fact it can
take NULL to ignore these values. Remove such unused variables and
pass NULL instead from callers that don't need these.

Signed-off-by: BALATON Zoltan &lt;balaton@eik.bme.hu&gt;
Reviewed-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Reviewed-by: Alistair Francis &lt;alistair.francis@wdc.com&gt;
Acked-by: David Gibson &lt;david@gibson.dropbear.id.au&gt;
Acked-by: Max Filippov &lt;jcmvbkbc@gmail.com&gt;
Message-Id: &lt;20200705174020.BDD0174633F@zero.eik.bme.hu&gt;
Signed-off-by: Alistair Francis &lt;alistair.francis@wdc.com&gt;
</content>
</entry>
<entry>
<title>meson: convert hw/arch*</title>
<updated>2020-08-21T10:30:33+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2019-08-17T09:55:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=2c44220d055d12142f27cf513848f17d6007ae35'/>
<id>urn:sha1:2c44220d055d12142f27cf513848f17d6007ae35</id>
<content type='text'>
Each architecture's sourceset is placed in an hw_arch dictionary, and picked up
from there when building the per-emulator static_library.

Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>sysbus: Convert to sysbus_realize() etc. with Coccinelle</title>
<updated>2020-06-15T20:05:28+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2020-06-10T05:32:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=3c6ef471ee67bf5a22a9e0ecfdc45ca7d2393216'/>
<id>urn:sha1:3c6ef471ee67bf5a22a9e0ecfdc45ca7d2393216</id>
<content type='text'>
Convert from qdev_realize(), qdev_realize_and_unref() with null @bus
argument to sysbus_realize(), sysbus_realize_and_unref().

Coccinelle script:

    @@
    expression dev, errp;
    @@
    -    qdev_realize(DEVICE(dev), NULL, errp);
    +    sysbus_realize(SYS_BUS_DEVICE(dev), errp);

    @@
    expression sysbus_dev, dev, errp;
    @@
    +    sysbus_dev = SYS_BUS_DEVICE(dev);
    -    qdev_realize_and_unref(dev, NULL, errp);
    +    sysbus_realize_and_unref(sysbus_dev, errp);
    -    sysbus_dev = SYS_BUS_DEVICE(dev);

    @@
    expression sysbus_dev, dev, errp;
    expression expr;
    @@
         sysbus_dev = SYS_BUS_DEVICE(dev);
         ... when != dev = expr;
    -    qdev_realize_and_unref(dev, NULL, errp);
    +    sysbus_realize_and_unref(sysbus_dev, errp);

    @@
    expression dev, errp;
    @@
    -    qdev_realize_and_unref(DEVICE(dev), NULL, errp);
    +    sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), errp);

    @@
    expression dev, errp;
    @@
    -    qdev_realize_and_unref(dev, NULL, errp);
    +    sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), errp);

Whitespace changes minimized manually.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Acked-by: Alistair Francis &lt;alistair.francis@wdc.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Reviewed-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Message-Id: &lt;20200610053247.1583243-46-armbru@redhat.com&gt;
[Conflicts in hw/misc/empty_slot.c and hw/sparc/leon3.c resolved]
</content>
</entry>
<entry>
<title>qdev: Convert uses of qdev_create() with Coccinelle</title>
<updated>2020-06-15T20:00:10+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2020-06-10T05:31:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=3e80f6902c13f6edb6675c0f33edcbbf0163ec32'/>
<id>urn:sha1:3e80f6902c13f6edb6675c0f33edcbbf0163ec32</id>
<content type='text'>
This is the transformation explained in the commit before previous.
Takes care of just one pattern that needs conversion.  More to come in
this series.

Coccinelle script:

    @ depends on !(file in "hw/arm/highbank.c")@
    expression bus, type_name, dev, expr;
    @@
    -    dev = qdev_create(bus, type_name);
    +    dev = qdev_new(type_name);
         ... when != dev = expr
    -    qdev_init_nofail(dev);
    +    qdev_realize_and_unref(dev, bus, &amp;error_fatal);

    @@
    expression bus, type_name, dev, expr;
    identifier DOWN;
    @@
    -    dev = DOWN(qdev_create(bus, type_name));
    +    dev = DOWN(qdev_new(type_name));
         ... when != dev = expr
    -    qdev_init_nofail(DEVICE(dev));
    +    qdev_realize_and_unref(DEVICE(dev), bus, &amp;error_fatal);

    @@
    expression bus, type_name, expr;
    identifier dev;
    @@
    -    DeviceState *dev = qdev_create(bus, type_name);
    +    DeviceState *dev = qdev_new(type_name);
         ... when != dev = expr
    -    qdev_init_nofail(dev);
    +    qdev_realize_and_unref(dev, bus, &amp;error_fatal);

    @@
    expression bus, type_name, dev, expr, errp;
    symbol true;
    @@
    -    dev = qdev_create(bus, type_name);
    +    dev = qdev_new(type_name);
         ... when != dev = expr
    -    object_property_set_bool(OBJECT(dev), true, "realized", errp);
    +    qdev_realize_and_unref(dev, bus, errp);

    @@
    expression bus, type_name, expr, errp;
    identifier dev;
    symbol true;
    @@
    -    DeviceState *dev = qdev_create(bus, type_name);
    +    DeviceState *dev = qdev_new(type_name);
         ... when != dev = expr
    -    object_property_set_bool(OBJECT(dev), true, "realized", errp);
    +    qdev_realize_and_unref(dev, bus, errp);

The first rule exempts hw/arm/highbank.c, because it matches along two
control flow paths there, with different @type_name.  Covered by the
next commit's manual conversions.

Missing #include "qapi/error.h" added manually.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Message-Id: &lt;20200610053247.1583243-10-armbru@redhat.com&gt;
[Conflicts in hw/misc/empty_slot.c and hw/sparc/leon3.c resolved]
</content>
</entry>
<entry>
<title>hw: Make MachineClass::is_default a boolean type</title>
<updated>2020-02-28T19:57:19+00:00</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
</author>
<published>2020-02-07T16:19:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=ea0ac7f6f8f313f810858dd1ba4e7fae602e01bd'/>
<id>urn:sha1:ea0ac7f6f8f313f810858dd1ba4e7fae602e01bd</id>
<content type='text'>
There's no good reason for it to be type int, change it to bool.

Suggested-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Message-Id: &lt;20200207161948.15972-3-philmd@redhat.com&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Reviewed-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
</content>
</entry>
<entry>
<title>cris/axis_dev88: use memdev for RAM</title>
<updated>2020-02-19T16:49:57+00:00</updated>
<author>
<name>Igor Mammedov</name>
</author>
<published>2020-02-19T16:09:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=17c38c759c0505808286772314bf434af5f6e4aa'/>
<id>urn:sha1:17c38c759c0505808286772314bf434af5f6e4aa</id>
<content type='text'>
memory_region_allocate_system_memory() API is going away, so
replace it with memdev allocated MemoryRegion. The later is
initialized by generic code, so board only needs to opt in
to memdev scheme by providing
  MachineClass::default_ram_id
and using MachineState::ram instead of manually initializing
RAM memory region.

Signed-off-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-Id: &lt;20200219160953.13771-41-imammedo@redhat.com&gt;
</content>
</entry>
<entry>
<title>hw/core/loader: Let load_elf() populate a field with CPU-specific flags</title>
<updated>2020-01-29T18:28:52+00:00</updated>
<author>
<name>Aleksandar Markovic</name>
</author>
<published>2020-01-26T22:55:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=6cdda0ff4bad7edbb4c94a52234138bf2ac9a6b6'/>
<id>urn:sha1:6cdda0ff4bad7edbb4c94a52234138bf2ac9a6b6</id>
<content type='text'>
While loading the executable, some platforms (like AVR) need to
detect CPU type that executable is built for - and, with this patch,
this is enabled by reading the field 'e_flags' of the ELF header of
the executable in question. The change expands functionality of
the following functions:

  - load_elf()
  - load_elf_as()
  - load_elf_ram()
  - load_elf_ram_sym()

The argument added to these functions is called 'pflags' and is of
type 'uint32_t*' (that matches 'pointer to 'elf_word'', 'elf_word'
being the type of the field 'e_flags', in both 32-bit and 64-bit
variants of ELF header). Callers are allowed to pass NULL as that
argument, and in such case no lookup to the field 'e_flags' will
happen, and no information will be returned, of course.

CC: Richard Henderson &lt;rth@twiddle.net&gt;
CC: Peter Maydell &lt;peter.maydell@linaro.org&gt;
CC: Edgar E. Iglesias &lt;edgar.iglesias@gmail.com&gt;
CC: Michael Walle &lt;michael@walle.cc&gt;
CC: Thomas Huth &lt;huth@tuxfamily.org&gt;
CC: Laurent Vivier &lt;laurent@vivier.eu&gt;
CC: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
CC: Aleksandar Rikalo &lt;aleksandar.rikalo@rt-rk.com&gt;
CC: Aurelien Jarno &lt;aurelien@aurel32.net&gt;
CC: Jia Liu &lt;proljc@gmail.com&gt;
CC: David Gibson &lt;david@gibson.dropbear.id.au&gt;
CC: Mark Cave-Ayland &lt;mark.cave-ayland@ilande.co.uk&gt;
CC: BALATON Zoltan &lt;balaton@eik.bme.hu&gt;
CC: Christian Borntraeger &lt;borntraeger@de.ibm.com&gt;
CC: Thomas Huth &lt;thuth@redhat.com&gt;
CC: Artyom Tarasenko &lt;atar4qemu@gmail.com&gt;
CC: Fabien Chouteau &lt;chouteau@adacore.com&gt;
CC: KONRAD Frederic &lt;frederic.konrad@adacore.com&gt;
CC: Max Filippov &lt;jcmvbkbc@gmail.com&gt;

Reviewed-by: Aleksandar Rikalo &lt;aleksandar.rikalo@rt-rk.com&gt;
Signed-off-by: Michael Rolnik &lt;mrolnik@gmail.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Signed-off-by: Aleksandar Markovic &lt;amarkovic@wavecomp.com&gt;
Message-Id: &lt;1580079311-20447-24-git-send-email-aleksandar.markovic@rt-rk.com&gt;
</content>
</entry>
</feed>
