]> git.proxmox.com Git - mirror_qemu.git/commit
tpm: Split off tpm_crb_reset function
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 1 Feb 2018 22:55:50 +0000 (17:55 -0500)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Sat, 3 Feb 2018 14:01:50 +0000 (09:01 -0500)
commitb8d44ab8febf8b9fe96644bc679bdd3cb75f83ff
treef74bb7395ef49903f5bd7666fb98d40355769c41
parente486b528229ed4ed5dfdac790c8152bfb2a265c9
tpm: Split off tpm_crb_reset function

Split off the tpm_crb_reset function part from tpm_crb_realize
that we need to run every time the machine resets.

Also register our reset function with the system since TYPE_DEVICE
seems to not get a reset otherwise.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
hw/tpm/tpm_crb.c