<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/include/chardev, branch master</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/include/chardev?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/include/chardev?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-09-29T10:38:05+00:00</updated>
<entry>
<title>chardev: src buffer const for write functions</title>
<updated>2022-09-29T10:38:05+00:00</updated>
<author>
<name>Arwed Meyer</name>
</author>
<published>2022-09-11T18:18:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8f9abdf586d48552273abe38cf55058f7d0c85fd'/>
<id>urn:sha1:8f9abdf586d48552273abe38cf55058f7d0c85fd</id>
<content type='text'>
Make source buffers const for char be write functions.
This allows using buffers returned by fifo as buf parameter and source buffer
should not be changed by write functions anyway.

Signed-off-by: Arwed Meyer &lt;arwed.meyer@gmx.de&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-Id: &lt;20220911181840.8933-3-arwed.meyer@gmx.de&gt;
</content>
</entry>
<entry>
<title>Clean up ill-advised or unusual header guards</title>
<updated>2022-05-11T14:50:01+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2022-05-06T13:49:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9c0928045ce4b97fc59cb285b7a4b559d21e5da0'/>
<id>urn:sha1:9c0928045ce4b97fc59cb285b7a4b559d21e5da0</id>
<content type='text'>
Leading underscores are ill-advised because such identifiers are
reserved.  Trailing underscores are merely ugly.  Strip both.

Our header guards commonly end in _H.  Normalize the exceptions.

Macros should be ALL_CAPS.  Normalize the exception.

Done with scripts/clean-header-guards.pl.

include/hw/xen/interface/ and tools/virtiofsd/ left alone, because
these were imported from Xen and libfuse respectively.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20220506134911.2856099-3-armbru@redhat.com&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
</content>
</entry>
<entry>
<title>Replace GCC_FMT_ATTR with G_GNUC_PRINTF</title>
<updated>2022-03-22T10:40:51+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2022-02-20T16:39:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9edc6313da34699ebd2bae4573ea22339b26450a'/>
<id>urn:sha1:9edc6313da34699ebd2bae4573ea22339b26450a</id>
<content type='text'>
One less qemu-specific macro. It also helps to make some headers/units
only depend on glib, and thus moved in standalone projects eventually.

Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Reviewed-by: Richard W.M. Jones &lt;rjones@redhat.com&gt;
</content>
</entry>
<entry>
<title>ui/dbus: add chardev backend &amp; interface</title>
<updated>2021-12-21T06:50:22+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2021-07-22T15:43:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=3e301c8d7ef0259c7e19277ea93a9915b55a1c6d'/>
<id>urn:sha1:3e301c8d7ef0259c7e19277ea93a9915b55a1c6d</id>
<content type='text'>
Add a new chardev backend which allows D-Bus client to handle the
chardev stream &amp; events.

Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Acked-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
</content>
</entry>
<entry>
<title>chardev: make socket derivable</title>
<updated>2021-12-21T06:50:22+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2021-07-25T20:03:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=fa670c808a2523f05c4b0cb0df9cb01b56c4069e'/>
<id>urn:sha1:fa670c808a2523f05c4b0cb0df9cb01b56c4069e</id>
<content type='text'>
Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Acked-by: Gerd Hoffmann &lt;kraxel@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
</content>
</entry>
<entry>
<title>chardev: add some comments about the class methods</title>
<updated>2021-09-14T12:57:11+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2021-08-04T15:48:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=78e3e1d046e64b86e8c9bf3011d5a2a795b5e373'/>
<id>urn:sha1:78e3e1d046e64b86e8c9bf3011d5a2a795b5e373</id>
<content type='text'>
Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Reviewed-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Message-Id: &lt;20210804154848.557328-5-marcandre.lureau@redhat.com&gt;
</content>
</entry>
<entry>
<title>chardev: remove needless class method</title>
<updated>2021-09-14T12:53:55+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2021-07-22T15:47:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=5eed493d01c3253a24ffa71c61e07dacad41cf05'/>
<id>urn:sha1:5eed493d01c3253a24ffa71c61e07dacad41cf05</id>
<content type='text'>
"chr_option_parsed" is only implemented by the "mux" chardev, we can
specialize the code there to avoid the needless generic class method.

Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Reviewed-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>chardev: mark explicitly first argument as poisoned</title>
<updated>2021-08-05T12:15:33+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2021-08-04T13:01:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=bf7b1eab252bc56b6bbb12a8909eae738435d6ae'/>
<id>urn:sha1:bf7b1eab252bc56b6bbb12a8909eae738435d6ae</id>
<content type='text'>
Since commit 9894dc0cdcc397ee5b26370bc53da6d360a363c2 "char: convert
from GIOChannel to QIOChannel", the first argument to the watch callback
can actually be a QIOChannel, which is not a GIOChannel (but a QEMU
Object).

Even though we never used that pointer, change the callback type to warn
the users. Possibly a better fix later, we may want to store the
callback and call it from intermediary functions.

Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Reviewed-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>chardev: Fix yank with the chardev-change case</title>
<updated>2021-04-01T11:27:44+00:00</updated>
<author>
<name>Lukas Straub</name>
</author>
<published>2021-03-30T18:13:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=feb774ca3fc08afc1404f75c06fbaeea5fdbcd19'/>
<id>urn:sha1:feb774ca3fc08afc1404f75c06fbaeea5fdbcd19</id>
<content type='text'>
When changing from chardev-socket (which supports yank) to
chardev-socket again, it fails, because the new chardev attempts
to register a new yank instance. This in turn fails, as there
still is the yank instance from the current chardev. Also,
the old chardev shouldn't unregister the yank instance when it
is freed.

To fix this, now the new chardev only registers a yank instance if
the current chardev doesn't support yank and thus hasn't registered
one already. Also, when the old chardev is freed, it now only
unregisters the yank instance if the new chardev doesn't need it.

If the initialization of the new chardev fails, it still has
chr-&gt;handover_yank_instance set and won't unregister the yank
instance when it is freed.

s-&gt;registered_yank is always true here, as chardev-change only works
on user-visible chardevs and those are guraranteed to register a
yank instance as they are initialized via
chardev_new()
 qemu_char_open()
  cc-&gt;open() (qmp_chardev_open_socket()).

Signed-off-by: Lukas Straub &lt;lukasstraub2@web.de&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Tested-by: Li Zhang &lt;li.zhang@cloud.ionos.com&gt;
Message-Id: &lt;9637888d7591d2971975188478bb707299a1dc04.1617127849.git.lukasstraub2@web.de&gt;
</content>
</entry>
<entry>
<title>chardev: do not use machine_init_done</title>
<updated>2020-12-15T17:51:51+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2020-11-30T18:44:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=5a1ee6077b89ee9a803aaf8d1c98004701f63684'/>
<id>urn:sha1:5a1ee6077b89ee9a803aaf8d1c98004701f63684</id>
<content type='text'>
machine_init_done is not the right flag to check when preconfig
is taken into account; for example "./qemu-system-x86_64 -serial
mon:stdio -preconfig" does not print the QEMU monitor header until after
exit_preconfig.  Add back a custom bool for mux character devices.  This
partially undoes commit c7278b4355 ("chardev: introduce chr_machine_done
hook", 2018-03-12), but it keeps the cleaner logic using a function
pointer in ChardevClass.

Reviewed-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
</feed>
