Re: [PATCH] tpm_crb: mark command buffer as dirty on request completion

2022-06-01 Thread Stefan Berger
On 4/11/22 10:47, Anthony PERARD via wrote: From: Anthony PERARD At the moment, there doesn't seems to be any way to know that QEMU made modification to the command buffer. This is potentially an issue on Xen while migrating a guest, as modification to the buffer after the migration as start

Re: [PATCH] tpm_crb: mark command buffer as dirty on request completion

2022-05-10 Thread Anthony PERARD via
On Mon, Apr 11, 2022 at 12:31:01PM -0400, Stefan Berger wrote: > On 4/11/22 10:47, Anthony PERARD wrote: > > From: Anthony PERARD > The state of the registers is saved using this here: > > static const VMStateDescription vmstate_tpm_crb = { > .name = "tpm-crb", > .pre_save = tpm_crb_pre_s

Re: [PATCH] tpm_crb: mark command buffer as dirty on request completion

2022-05-02 Thread Marc-André Lureau
Hi On Mon, Apr 11, 2022 at 8:32 PM Stefan Berger wrote: > > > On 4/11/22 10:47, Anthony PERARD wrote: > > From: Anthony PERARD > > > > At the moment, there doesn't seems to be any way to know that QEMU > > made modification to the command buffer. This is potentially an issue > > on Xen while mi

Re: [PATCH] tpm_crb: mark command buffer as dirty on request completion

2022-04-11 Thread Stefan Berger
On 4/11/22 10:47, Anthony PERARD wrote: From: Anthony PERARD At the moment, there doesn't seems to be any way to know that QEMU made modification to the command buffer. This is potentially an issue on Xen while migrating a guest, as modification to the buffer after the migration as started c

[PATCH] tpm_crb: mark command buffer as dirty on request completion

2022-04-11 Thread Anthony PERARD via
From: Anthony PERARD At the moment, there doesn't seems to be any way to know that QEMU made modification to the command buffer. This is potentially an issue on Xen while migrating a guest, as modification to the buffer after the migration as started could be ignored and not transfered to the des