* [PULL v1 0/1] Merge tpm 2020/01/29 v1 @ 2020-01-29 13:08 Stefan Berger 2020-01-29 13:08 ` [PULL v1 1/1] tpm-ppi: page-align PPI RAM Stefan Berger 2020-01-30 14:18 ` [PULL v1 0/1] Merge tpm 2020/01/29 v1 Peter Maydell 0 siblings, 2 replies; 3+ messages in thread From: Stefan Berger @ 2020-01-29 13:08 UTC (permalink / raw) To: qemu-devel; +Cc: peter.maydell, Stefan Berger This patch fixes a post-copy migration error due to an unaligned start address. Stefan The following changes since commit 4c60e3289875ae6c516a37523bcecb87f68ce67c: Merge remote-tracking branch 'remotes/rth/tags/pull-pa-20200127' into staging (2020-01-28 15:11:04 +0000) are available in the Git repository at: git://github.com/stefanberger/qemu-tpm.git tags/pull-tpm-2020-01-29-1 for you to fetch changes up to 71e415c8a75c130875f14d6b2136825789feb297: tpm-ppi: page-align PPI RAM (2020-01-29 07:27:07 -0500) ---------------------------------------------------------------- Merge tpm 2020/01/29 v1 ---------------------------------------------------------------- Marc-André Lureau (1): tpm-ppi: page-align PPI RAM hw/tpm/tpm_ppi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.24.1 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PULL v1 1/1] tpm-ppi: page-align PPI RAM 2020-01-29 13:08 [PULL v1 0/1] Merge tpm 2020/01/29 v1 Stefan Berger @ 2020-01-29 13:08 ` Stefan Berger 2020-01-30 14:18 ` [PULL v1 0/1] Merge tpm 2020/01/29 v1 Peter Maydell 1 sibling, 0 replies; 3+ messages in thread From: Stefan Berger @ 2020-01-29 13:08 UTC (permalink / raw) To: qemu-devel Cc: peter.maydell, qemu-stable, Dr . David Alan Gilbert, Marc-André Lureau, Philippe Mathieu-Daudé, Stefan Berger From: Marc-André Lureau <marcandre.lureau@redhat.com> post-copy migration fails on destination with error such as: 2019-12-26T10:22:44.714644Z qemu-kvm: ram_block_discard_range: Unaligned start address: 0x559d2afae9a0 Use qemu_memalign() to constrain the PPI RAM memory alignment. Cc: qemu-stable@nongnu.org Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Message-id: 20200103074000.1006389-3-marcandre.lureau@redhat.com --- hw/tpm/tpm_ppi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/tpm/tpm_ppi.c b/hw/tpm/tpm_ppi.c index ff314592b4..6d9c1a3e40 100644 --- a/hw/tpm/tpm_ppi.c +++ b/hw/tpm/tpm_ppi.c @@ -43,7 +43,8 @@ void tpm_ppi_reset(TPMPPI *tpmppi) void tpm_ppi_init(TPMPPI *tpmppi, struct MemoryRegion *m, hwaddr addr, Object *obj) { - tpmppi->buf = g_malloc0(HOST_PAGE_ALIGN(TPM_PPI_ADDR_SIZE)); + tpmppi->buf = qemu_memalign(qemu_real_host_page_size, + HOST_PAGE_ALIGN(TPM_PPI_ADDR_SIZE)); memory_region_init_ram_device_ptr(&tpmppi->ram, obj, "tpm-ppi", TPM_PPI_ADDR_SIZE, tpmppi->buf); vmstate_register_ram(&tpmppi->ram, DEVICE(obj)); -- 2.24.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PULL v1 0/1] Merge tpm 2020/01/29 v1 2020-01-29 13:08 [PULL v1 0/1] Merge tpm 2020/01/29 v1 Stefan Berger 2020-01-29 13:08 ` [PULL v1 1/1] tpm-ppi: page-align PPI RAM Stefan Berger @ 2020-01-30 14:18 ` Peter Maydell 1 sibling, 0 replies; 3+ messages in thread From: Peter Maydell @ 2020-01-30 14:18 UTC (permalink / raw) To: Stefan Berger; +Cc: QEMU Developers On Wed, 29 Jan 2020 at 13:09, Stefan Berger <stefanb@linux.vnet.ibm.com> wrote: > > This patch fixes a post-copy migration error due to an unaligned start address. > > Stefan > > The following changes since commit 4c60e3289875ae6c516a37523bcecb87f68ce67c: > > Merge remote-tracking branch 'remotes/rth/tags/pull-pa-20200127' into staging (2020-01-28 15:11:04 +0000) > > are available in the Git repository at: > > git://github.com/stefanberger/qemu-tpm.git tags/pull-tpm-2020-01-29-1 > > for you to fetch changes up to 71e415c8a75c130875f14d6b2136825789feb297: > > tpm-ppi: page-align PPI RAM (2020-01-29 07:27:07 -0500) > > ---------------------------------------------------------------- > Merge tpm 2020/01/29 v1 > > ---------------------------------------------------------------- > Marc-André Lureau (1): > tpm-ppi: page-align PPI RAM > > hw/tpm/tpm_ppi.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/5.0 for any user-visible changes. -- PMM ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-01-30 14:19 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-01-29 13:08 [PULL v1 0/1] Merge tpm 2020/01/29 v1 Stefan Berger 2020-01-29 13:08 ` [PULL v1 1/1] tpm-ppi: page-align PPI RAM Stefan Berger 2020-01-30 14:18 ` [PULL v1 0/1] Merge tpm 2020/01/29 v1 Peter Maydell
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).