From: Stefan Berger <stefanb@linux.ibm.com>
To: jejb@linux.ibm.com, qemu-devel@nongnu.org
Cc: "Daniel P . Berrangé" <berrange@redhat.com>,
"Markus Armbruster" <armbru@redhat.com>
Subject: Re: [PATCH v5 2/2] tpm: add backend for mssim
Date: Thu, 5 Jan 2023 17:25:50 -0500 [thread overview]
Message-ID: <a52287af-3489-a310-b9cd-08f73dc7f340@linux.ibm.com> (raw)
In-Reply-To: <387334f6a4d2cf54f2fbfbebe7a06b931adf797a.camel@linux.ibm.com>
On 1/5/23 17:02, James Bottomley wrote:
> On Thu, 2023-01-05 at 11:20 -0500, Stefan Berger wrote:
>>
>>
>> On 1/5/23 08:00, James Bottomley wrote:
> [...]
>>> +The mssim backend supports snapshotting and migration, but the
>>> state
>>> +of the Microsoft Simulator server must be preserved (or the server
>>> +kept running) outside of QEMU for restore to be successful.
>>
>> My comments to v3 still apply here.
>
> You didn't make any v3 comments on migration.
https://lists.gnu.org/archive/html/qemu-devel/2022-12/msg03146.html
A user should be able to recreate, with today's code, what is claimed in the documentation regarding snapshotting for example.
Stefan
>
>> I also just tried migration and on the -incoming side it did not work
>> anymore. Did you test this?
>
> Well, yes, as I said. However, I seem to have left one change in my
> local tree which I forgot to sync to the patch:
>
> diff --git a/backends/tpm/tpm_mssim.c b/backends/tpm/tpm_mssim.c
> index 75dce165b8..125c8d0b15 100644
> --- a/backends/tpm/tpm_mssim.c
> +++ b/backends/tpm/tpm_mssim.c
> @@ -66,7 +66,7 @@ static void tpm_mssim_instance_finalize(Object *obj)
> {
> TPMmssim *t = TPM_MSSIM(obj);
>
> - if (t->ctrl_qc && !runstate_check(RUN_STATE_INMIGRATE))
> + if (t->cmd_qc && !runstate_check(RUN_STATE_POSTMIGRATE))
> tpm_send_ctrl(t, TPM_SIGNAL_POWER_OFF, NULL);
>
> object_unref(OBJECT(t->ctrl_qc));
>
> James
>
prev parent reply other threads:[~2023-01-05 22:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-05 13:00 [PATCH v5 0/2] tpm: add mssim backend James Bottomley
2023-01-05 13:00 ` [PATCH v5 1/2] tpm: convert tpmdev options processing to new visitor format James Bottomley
2023-01-05 14:59 ` Stefan Berger
2023-01-05 20:34 ` James Bottomley
2023-01-09 14:57 ` Daniel P. Berrangé
2023-01-05 13:00 ` [PATCH v5 2/2] tpm: add backend for mssim James Bottomley
2023-01-05 16:20 ` Stefan Berger
2023-01-05 22:02 ` James Bottomley
2023-01-05 22:25 ` Stefan Berger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a52287af-3489-a310-b9cd-08f73dc7f340@linux.ibm.com \
--to=stefanb@linux.ibm.com \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=jejb@linux.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).