qemu/hw/tpm
David Hildenbrand 45e576c745 tpm: mark correct memory region range dirty when clearing RAM
We might not start at the beginning of the memory region. Let's
calculate the offset into the memory region via the difference in the
host addresses.

Acked-by: Stefan Berger <stefanb@linux.ibm.com>
Fixes: ffab1be706 ("tpm: clear RAM when "memory overwrite" requested")
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: Alex Williamson <alex.williamson@redhat.com>
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: Igor Mammedov <imammedo@redhat.com>
Cc: Claudio Fontana <cfontana@suse.de>
Cc: Thomas Huth <thuth@redhat.com>
Cc: "Alex Bennée" <alex.bennee@linaro.org>
Cc: Peter Xu <peterx@redhat.com>
Cc: Laurent Vivier <lvivier@redhat.com>
Cc: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <20210727082545.17934-2-david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-10-02 08:43:21 +02:00
..
Kconfig tpm: Move backend code under the 'backends/' directory 2020-06-19 07:25:55 -04:00
meson.build meson: convert hw/tpm 2020-08-21 06:30:27 -04:00
tpm_crb.c Do not include exec/address-spaces.h if it's not really necessary 2021-05-02 17:24:51 +02:00
tpm_ppi.c tpm: mark correct memory region range dirty when clearing RAM 2021-10-02 08:43:21 +02:00
tpm_ppi.h hw/tpm: Move 'hw/acpi/tpm.h' inclusion from header to sources 2020-06-19 07:25:15 -04:00
tpm_prop.h qdev: Move qdev_prop_tpm declaration to tpm_prop.h 2020-12-18 15:20:17 -05:00
tpm_spapr.c tpm: tpm_spapr: Remove unused tracepoint 2021-01-25 20:56:38 -05:00
tpm_tis_common.c hw/tpm: Make 'tpm_util.h' publicly accessible as "sysemu/tpm_util.h" 2020-06-19 07:25:48 -04:00
tpm_tis_isa.c tpm: put some tpm devices into the correct category 2021-02-20 12:36:19 +01:00
tpm_tis_sysbus.c tpm: put some tpm devices into the correct category 2021-02-20 12:36:19 +01:00
tpm_tis.h hw/tpm: Do not include 'qemu/osdep.h' in header 2020-06-19 07:24:59 -04:00
trace-events docs: fix references to docs/devel/tracing.rst 2021-06-02 06:51:09 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00