Re: [PATCH v3 1/4] tpm: mark correct memory region range dirty when clearing RAM

2021-07-26 Thread David Hildenbrand
On 26.07.21 18:57, Peter Xu wrote: On Mon, Jul 26, 2021 at 06:03:43PM +0200, David Hildenbrand wrote: 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 Fixes: ffab1be7069

Re: [PATCH v3 1/4] tpm: mark correct memory region range dirty when clearing RAM

2021-07-26 Thread Peter Xu
On Mon, Jul 26, 2021 at 06:03:43PM +0200, David Hildenbrand wrote: > 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 > Fixes: ffab1be70692 ("tpm: clear RAM when "m

[PATCH v3 1/4] tpm: mark correct memory region range dirty when clearing RAM

2021-07-26 Thread David Hildenbrand
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 Fixes: ffab1be70692 ("tpm: clear RAM when "memory overwrite" requested") Cc: Marc-André Lureau Cc: Paolo Bonzini Cc: "Mic

[PATCH v3 1/4] tpm: mark correct memory region range dirty when clearing RAM

2021-07-21 Thread David Hildenbrand
We might not start at the beginning of the memory region. We could also calculate via the difference in the host address; however, memory_region_set_dirty() also relies on memory_region_get_ram_addr() internally, so let's just use that. Acked-by: Stefan Berger Fixes: ffab1be70692 ("tpm: clear RAM