<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/backends/tpm, branch master</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/backends/tpm?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/backends/tpm?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-09-13T14:27:17+00:00</updated>
<entry>
<title>tpm_emulator: Have swtpm relock storage upon migration fall-back</title>
<updated>2022-09-13T14:27:17+00:00</updated>
<author>
<name>Stefan Berger</name>
</author>
<published>2022-09-12T17:47:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=99bdcd2cc2d05833f5c11caca22193f8dd878ae9'/>
<id>urn:sha1:99bdcd2cc2d05833f5c11caca22193f8dd878ae9</id>
<content type='text'>
Swtpm may release the lock once the last one of its state blobs has been
migrated out. In case of VM migration failure QEMU now needs to notify
swtpm that it should again take the lock, which it can otherwise only do
once it has received the first TPM command from the VM.

Only try to send the lock command if swtpm supports it. It will not have
released the lock (and support shared storage setups) if it doesn't
support the locking command since the functionality of releasing the lock
upon state blob reception and the lock command were added to swtpm
'together'.

If QEMU sends the lock command and the storage has already been locked
no error is reported.

If swtpm does not receive the lock command (from older version of QEMU),
it will lock the storage once the first TPM command has been received. So
sending the lock command is an optimization.

Signed-off-by: Stefan Berger &lt;stefanb@linux.ibm.com&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-id: 20220912174741.1542330-3-stefanb@linux.ibm.com
</content>
</entry>
<entry>
<title>tpm_emulator: Use latest tpm_ioctl.h from swtpm project</title>
<updated>2022-09-13T14:27:17+00:00</updated>
<author>
<name>Stefan Berger</name>
</author>
<published>2022-09-12T17:47:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=efef4756c7f66e51fd5bfa132680ee0fb585f7a5'/>
<id>urn:sha1:efef4756c7f66e51fd5bfa132680ee0fb585f7a5</id>
<content type='text'>
Use the latest tpm_ioctl.h from upstream swtpm project.

Signed-off-by: Stefan Berger &lt;stefanb@linux.ibm.com&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-id: 20220912174741.1542330-2-stefanb@linux.ibm.com
</content>
</entry>
<entry>
<title>tpm_emulator: Avoid double initialization during migration</title>
<updated>2022-09-09T21:55:45+00:00</updated>
<author>
<name>Ross Lagerwall</name>
</author>
<published>2022-08-01T14:25:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=a0bcec03761477371ff7c2e80dc07fff14222d92'/>
<id>urn:sha1:a0bcec03761477371ff7c2e80dc07fff14222d92</id>
<content type='text'>
When resuming after a migration, the backend sends CMD_INIT to the
emulator from the startup callback, then it sends the migration state
from the vmstate to the emulator, then it sends CMD_INIT again. Skip the
first CMD_INIT during a migration to avoid initializing the TPM twice.

Signed-off-by: Ross Lagerwall &lt;ross.lagerwall@citrix.com&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Tested-by: Stefan Berger &lt;stefanb@linux.ibm.com&gt;
Signed-off-by: Stefan Berger &lt;stefanb@linux.ibm.com&gt;
</content>
</entry>
<entry>
<title>backends/tpm: Exclude headers and macros that don't exist on win32</title>
<updated>2022-08-25T13:24:09+00:00</updated>
<author>
<name>Bin Meng</name>
</author>
<published>2022-08-24T09:39:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=d1c637ecff6f8c13cc9983b96a7aad2922d283f9'/>
<id>urn:sha1:d1c637ecff6f8c13cc9983b96a7aad2922d283f9</id>
<content type='text'>
These headers and macros do not exist on Windows. Exclude them.

Signed-off-by: Bin Meng &lt;bin.meng@windriver.com&gt;
Reviewed-by: Stefan Berger &lt;stefanb@linux.ibm.com&gt;
Message-Id: &lt;20220824094029.1634519-15-bmeng.cn@gmail.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>Remove qemu-common.h include from most units</title>
<updated>2022-04-06T12:31:55+00:00</updated>
<author>
<name>Marc-André Lureau</name>
</author>
<published>2022-03-23T15:57:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=0f9668e0c197ab6de95f61a906703a1d127c11f8'/>
<id>urn:sha1:0f9668e0c197ab6de95f61a906703a1d127c11f8</id>
<content type='text'>
Signed-off-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-Id: &lt;20220323155743.1585078-33-marcandre.lureau@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>configure, meson: move TPM check to meson</title>
<updated>2022-02-21T09:35:53+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2021-12-21T11:38:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=0d04c4c9de3f260eb65f832983655d1a1206cc15'/>
<id>urn:sha1:0d04c4c9de3f260eb65f832983655d1a1206cc15</id>
<content type='text'>
The check is simply for a POSIX system.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>qapi: Convert simple union TpmTypeOptions to flat one</title>
<updated>2021-09-27T06:22:25+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2021-09-17T14:31:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=39dc3e4a4e3a485c8a8688bd29476fdbf95b0bb5'/>
<id>urn:sha1:39dc3e4a4e3a485c8a8688bd29476fdbf95b0bb5</id>
<content type='text'>
Simple unions predate flat unions.  Having both complicates the QAPI
schema language and the QAPI generator.  We haven't been using simple
unions in new code for a long time, because they are less flexible and
somewhat awkward on the wire.

To prepare for their removal, convert simple union TpmTypeOptions to
an equivalent flat one, with existing enum TpmType replacing implicit
enum TpmTypeOptionsKind.  Adds some boilerplate to the schema, which
is a bit ugly, but a lot easier to maintain than the simple union
feature.

Cc: Stefan Berger &lt;stefanb@linux.vnet.ibm.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Acked-by: Stefan Berger &lt;stefanb@linux.ibm.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-Id: &lt;20210917143134.412106-6-armbru@redhat.com&gt;
[Indentation tidied up]
</content>
</entry>
<entry>
<title>migration: Unify failure check for migrate_add_blocker()</title>
<updated>2021-08-26T15:15:28+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2021-07-20T12:54:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=436c831a281ed950110dbc3e3baea24054c37298'/>
<id>urn:sha1:436c831a281ed950110dbc3e3baea24054c37298</id>
<content type='text'>
Most callers check the return value.  Some check whether it set an
error.  Functionally equivalent, but the former tends to be easier on
the eyes, so do that everywhere.

Prior art: commit c6ecec43b2 "qemu-option: Check return value instead
of @err where convenient".

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20210720125408.387910-10-armbru@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Acked-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
</content>
</entry>
<entry>
<title>docs: fix references to docs/devel/tracing.rst</title>
<updated>2021-06-02T04:51:09+00:00</updated>
<author>
<name>Stefano Garzarella</name>
</author>
<published>2021-05-17T15:16:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=d0fb9657a33dd3d1db1b492c4dcc7c778e40e5c0'/>
<id>urn:sha1:d0fb9657a33dd3d1db1b492c4dcc7c778e40e5c0</id>
<content type='text'>
Commit e50caf4a5c ("tracing: convert documentation to rST")
converted docs/devel/tracing.txt to docs/devel/tracing.rst.

We still have several references to the old file, so let's fix them
with the following command:

  sed -i s/tracing.txt/tracing.rst/ $(git grep -l docs/devel/tracing.txt)

Signed-off-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Message-Id: &lt;20210517151702.109066-2-sgarzare@redhat.com&gt;
Signed-off-by: Thomas Huth &lt;thuth@redhat.com&gt;
</content>
</entry>
<entry>
<title>backends/tpm: Replace qemu_mutex_lock calls with QEMU_LOCK_GUARD</title>
<updated>2021-05-13T15:43:56+00:00</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
</author>
<published>2021-05-12T07:07:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=bf5dcf8f2cf61283a46aea14867adbec1a20fe3d'/>
<id>urn:sha1:bf5dcf8f2cf61283a46aea14867adbec1a20fe3d</id>
<content type='text'>
Simplify the tpm_emulator_ctrlcmd() handler by replacing a pair of
qemu_mutex_lock/qemu_mutex_unlock calls by the WITH_QEMU_LOCK_GUARD
macro.

Reviewed-by: Stefan Berger &lt;stefanb@linux.ibm.com&gt;
Reviewed-by: Christophe de Dinechin &lt;dinechin@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Message-Id: &lt;20210512070713.3286188-1-philmd@redhat.com&gt;
Signed-off-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
</content>
</entry>
</feed>
