]> git.proxmox.com Git - mirror_qemu.git/commit
tpm_crb: mark command buffer as dirty on request completion
authorAnthony PERARD <anthony.perard@citrix.com>
Mon, 11 Apr 2022 14:47:49 +0000 (15:47 +0100)
committerStefan Berger <stefanb@linux.ibm.com>
Wed, 8 Jun 2022 00:37:25 +0000 (20:37 -0400)
commite37a0ef4605e5d2041785ff3fc89ca6021faf7a0
tree7925dbcabc22cc87499ca7d7387beed459f30525
parent4d84bb6c8b42cc781a02e1ac6648875966abc877
tpm_crb: mark command buffer as dirty on request completion

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
destination.

Mark the memory region of the command buffer as dirty once a request
is completed.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Message-id: 20220411144749.47185-1-anthony.perard@citrix.com
hw/tpm/tpm_crb.c