56 lines
2.1 KiB
Diff
56 lines
2.1 KiB
Diff
From d77454aef08828ab25881dbd9acb25f3d6f59d10 Mon Sep 17 00:00:00 2001
|
|
From: Paolo Bonzini <pbonzini@redhat.com>
|
|
Date: Fri, 18 Jul 2025 18:03:49 +0200
|
|
Subject: [PATCH 086/115] i386/tdvf: Fix build on 32-bit host
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
|
|
RH-MergeRequest: 391: TDX support, including attestation and device assignment
|
|
RH-Jira: RHEL-15710 RHEL-20798 RHEL-49728
|
|
RH-Acked-by: Yash Mankad <None>
|
|
RH-Acked-by: Peter Xu <peterx@redhat.com>
|
|
RH-Acked-by: David Hildenbrand <david@redhat.com>
|
|
RH-Commit: [86/115] 99b8d992079a248091911010238eb20588acca6a (bonzini/rhel-qemu-kvm)
|
|
|
|
Use PRI formats where required.
|
|
|
|
Cc: Isaku Yamahata <isaku.yamahata@intel.com>
|
|
Signed-off-by: Cédric Le Goater <clg@redhat.com>
|
|
Link: https://lore.kernel.org/r/20250602173101.1052983-3-clg@redhat.com
|
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
(cherry picked from commit 6f1035fc65406c4e72e1dbd76e64924415edd616)
|
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
---
|
|
hw/i386/tdvf.c | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/hw/i386/tdvf.c b/hw/i386/tdvf.c
|
|
index 88453cf3a5..6fcc794880 100644
|
|
--- a/hw/i386/tdvf.c
|
|
+++ b/hw/i386/tdvf.c
|
|
@@ -101,16 +101,16 @@ static int tdvf_parse_and_check_section_entry(const TdvfSectionEntry *src,
|
|
|
|
/* sanity check */
|
|
if (entry->size < entry->data_len) {
|
|
- error_report("Broken metadata RawDataSize 0x%x MemoryDataSize 0x%lx",
|
|
+ error_report("Broken metadata RawDataSize 0x%x MemoryDataSize 0x%"PRIx64,
|
|
entry->data_len, entry->size);
|
|
return -1;
|
|
}
|
|
if (!QEMU_IS_ALIGNED(entry->address, TDVF_ALIGNMENT)) {
|
|
- error_report("MemoryAddress 0x%lx not page aligned", entry->address);
|
|
+ error_report("MemoryAddress 0x%"PRIx64" not page aligned", entry->address);
|
|
return -1;
|
|
}
|
|
if (!QEMU_IS_ALIGNED(entry->size, TDVF_ALIGNMENT)) {
|
|
- error_report("MemoryDataSize 0x%lx not page aligned", entry->size);
|
|
+ error_report("MemoryDataSize 0x%"PRIx64" not page aligned", entry->size);
|
|
return -1;
|
|
}
|
|
|
|
--
|
|
2.50.1
|
|
|