<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/include/hw/audio, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/include/hw/audio?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/include/hw/audio?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-05-14T10:33:44+00:00</updated>
<entry>
<title>introduce -audio as a replacement for -soundhw</title>
<updated>2022-05-14T10:33:44+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2022-04-27T10:27:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=039a68373c4544ff94871f945a733928b6dcfe93'/>
<id>urn:sha1:039a68373c4544ff94871f945a733928b6dcfe93</id>
<content type='text'>
-audio is used like "-audio pa,model=sb16".  It is almost as simple as
-soundhw, but it reuses the -audiodev parsing machinery and attaches an
audiodev to the newly-created device.  The main 'feature' is that
it knows about adding the codec device for model=intel-hda, and adding
the audiodev to the codec device.

In the future, it could be extended to support default models or
builtin devices, just like -nic, or even a default backend.  For now,
keep it simple.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>soundhw: extract soundhw help to a separate function</title>
<updated>2022-05-14T10:33:44+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2022-04-27T10:26:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=eef5fdf3d57dccc25505179f717adf636764ba02'/>
<id>urn:sha1:eef5fdf3d57dccc25505179f717adf636764ba02</id>
<content type='text'>
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>pc: remove -soundhw pcspk</title>
<updated>2022-05-07T05:46:59+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2022-04-27T10:01:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=6033b9ecd4f6a26b78f44a94813e1e464f5b0549'/>
<id>urn:sha1:6033b9ecd4f6a26b78f44a94813e1e464f5b0549</id>
<content type='text'>
The pcspk device is the only user of the init_isa function, and the only
-soundhw option which does not create a new device (it hacks into the
PCSpkState by hand).  Remove it, since it was deprecated.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>qom: Put name parameter before value / visitor parameter</title>
<updated>2020-07-10T13:18:08+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2020-07-07T16:05:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=5325cc34a2ca985283134c7e264be7851b112d4e'/>
<id>urn:sha1:5325cc34a2ca985283134c7e264be7851b112d4e</id>
<content type='text'>
The object_property_set_FOO() setters take property name and value in
an unusual order:

    void object_property_set_FOO(Object *obj, FOO_TYPE value,
                                 const char *name, Error **errp)

Having to pass value before name feels grating.  Swap them.

Same for object_property_set(), object_property_get(), and
object_property_parse().

Convert callers with this Coccinelle script:

    @@
    identifier fun = {
        object_property_get, object_property_parse, object_property_set_str,
        object_property_set_link, object_property_set_bool,
        object_property_set_int, object_property_set_uint, object_property_set,
        object_property_set_qobject
    };
    expression obj, v, name, errp;
    @@
    -    fun(obj, v, name, errp)
    +    fun(obj, name, v, errp)

Chokes on hw/arm/musicpal.c's lcd_refresh() with the unhelpful error
message "no position information".  Convert that one manually.

Fails to convert hw/arm/armsse.c, because Coccinelle gets confused by
ARMSSE being used both as typedef and function-like macro there.
Convert manually.

Fails to convert hw/rx/rx-gdbsim.c, because Coccinelle gets confused
by RXCPU being used both as typedef and function-like macro there.
Convert manually.  The other files using RXCPU that way don't need
conversion.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Message-Id: &lt;20200707160613.848843-27-armbru@redhat.com&gt;
[Straightforwad conflict with commit 2336172d9b "audio: set default
value for pcspk.iobase property" resolved]
</content>
</entry>
<entry>
<title>audio: set default value for pcspk.iobase property</title>
<updated>2020-07-06T15:01:11+00:00</updated>
<author>
<name>Gerd Hoffmann</name>
</author>
<published>2020-07-02T13:25:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=2336172d9b396b4fa4483712f5560a563c25352f'/>
<id>urn:sha1:2336172d9b396b4fa4483712f5560a563c25352f</id>
<content type='text'>
Allows dropping the explicit qdev_prop_set_uint32 call in pcspk_init.

Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Message-id: 20200702132525.6849-21-kraxel@redhat.com
</content>
</entry>
<entry>
<title>audio: rework pcspk_init()</title>
<updated>2020-07-06T15:01:11+00:00</updated>
<author>
<name>Gerd Hoffmann</name>
</author>
<published>2020-07-02T13:25:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=525d654d7a113e24e5c4efc21e6f2f8c952d21d9'/>
<id>urn:sha1:525d654d7a113e24e5c4efc21e6f2f8c952d21d9</id>
<content type='text'>
Instead of creating and returning the pc speaker accept it as argument.
That allows to rework the initialization workflow in followup patches.

Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Message-id: 20200702132525.6849-16-kraxel@redhat.com
</content>
</entry>
<entry>
<title>audio: add deprecated_register_soundhw</title>
<updated>2020-07-06T15:01:11+00:00</updated>
<author>
<name>Gerd Hoffmann</name>
</author>
<published>2020-07-02T13:25:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=542e0c557b2cbf6ae5f3be694638d17042388a01'/>
<id>urn:sha1:542e0c557b2cbf6ae5f3be694638d17042388a01</id>
<content type='text'>
Add helper function for -soundhw deprecation.  It can replace the
simple init functions which just call {isa,pci}_create_simple()
with a hardcoded type.  It also prints a deprecation message.

Signed-off-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Message-id: 20200702132525.6849-4-kraxel@redhat.com
</content>
</entry>
<entry>
<title>isa: Convert uses of isa_create() with Coccinelle</title>
<updated>2020-06-15T20:05:28+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2020-06-10T05:32:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=96927c744f9cd5205f95ef897c35695038dc2896'/>
<id>urn:sha1:96927c744f9cd5205f95ef897c35695038dc2896</id>
<content type='text'>
Replace

    dev = isa_create(bus, type_name);
    ...
    qdev_init_nofail(dev);

by

    dev = isa_new(type_name);
    ...
    isa_realize_and_unref(dev, bus, &amp;error_fatal);

Recent commit "qdev: New qdev_new(), qdev_realize(), etc." explains
why.

Coccinelle script:

    @@
    expression dev, bus, expr;
    expression list args;
    expression d;
    @@
    -    dev = isa_create(bus, args);
    +    dev = isa_new(args);
    (
         d = &amp;dev-&gt;qdev;
    |
         d = DEVICE(dev);
    )
         ... when != dev = expr
    -    qdev_init_nofail(d);
    +    isa_realize_and_unref(dev, bus, &amp;error_fatal);

    @@
    expression dev, bus, expr;
    expression list args;
    @@
    -    dev = isa_create(bus, args);
    +    dev = isa_new(args);
         ... when != dev = expr
    -    qdev_init_nofail(DEVICE(dev));
    +    isa_realize_and_unref(dev, bus, &amp;error_fatal);

    @@
    expression dev, bus, expr;
    expression list args;
    @@
    -    dev = DEVICE(isa_create(bus, args));
    +    ISADevice *isa_dev; // TODO move
    +    isa_dev = isa_new(args);
    +    dev = DEVICE(isa_dev);
         ... when != dev = expr
    -    qdev_init_nofail(dev);
    +    isa_realize_and_unref(isa_dev, bus, &amp;error_fatal);

Missing #include "qapi/error.h" added manually, whitespace changes
minimized 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-20-armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>Include hw/qdev-properties.h less</title>
<updated>2019-08-16T11:31:53+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2019-08-12T05:23:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=a27bd6c779badb8d76e4430d810ef710a1b98f4e'/>
<id>urn:sha1:a27bd6c779badb8d76e4430d810ef710a1b98f4e</id>
<content type='text'>
In my "build everything" tree, changing hw/qdev-properties.h triggers
a recompile of some 2700 out of 6600 objects (not counting tests and
objects that don't depend on qemu/osdep.h).

Many places including hw/qdev-properties.h (directly or via hw/qdev.h)
actually need only hw/qdev-core.h.  Include hw/qdev-core.h there
instead.

hw/qdev.h is actually pointless: all it does is include hw/qdev-core.h
and hw/qdev-properties.h, which in turn includes hw/qdev-core.h.
Replace the remaining uses of hw/qdev.h by hw/qdev-properties.h.

While there, delete a few superfluous inclusions of hw/qdev-core.h.

Touching hw/qdev-properties.h now recompiles some 1200 objects.

Cc: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Cc: "Daniel P. Berrangé" &lt;berrange@redhat.com&gt;
Cc: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
Message-Id: &lt;20190812052359.30071-22-armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>Include hw/hw.h exactly where needed</title>
<updated>2019-08-16T11:31:52+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2019-08-12T05:23:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=650d103d3ea959212f826acb9d3fe80cf30e347b'/>
<id>urn:sha1:650d103d3ea959212f826acb9d3fe80cf30e347b</id>
<content type='text'>
In my "build everything" tree, changing hw/hw.h triggers a recompile
of some 2600 out of 6600 objects (not counting tests and objects that
don't depend on qemu/osdep.h).

The previous commits have left only the declaration of hw_error() in
hw/hw.h.  This permits dropping most of its inclusions.  Touching it
now recompiles less than 200 objects.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Alistair Francis &lt;alistair.francis@wdc.com&gt;
Message-Id: &lt;20190812052359.30071-19-armbru@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Tested-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
</content>
</entry>
</feed>
