+ Chinmay, Anu - FYI
On 9/23/25 08:09, Richard Henderson wrote:
We only need invalidate tbs from a single page, not flush
all translations.
Signed-off-by: Richard Henderson <[email protected]>
---
Cc: Nicholas Piggin <[email protected]>
Cc: Harsh Prateek Bora <[email protected]>
Cc: [email protected]
---
hw/ppc/spapr_hcall.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c
index c594d4b916..feb31d5dd8 100644
--- a/hw/ppc/spapr_hcall.c
+++ b/hw/ppc/spapr_hcall.c
@@ -8,7 +8,7 @@
#include "qemu/main-loop.h"
#include "qemu/module.h"
#include "qemu/error-report.h"
-#include "exec/tb-flush.h"
+#include "exec/translation-block.h"
#include "exec/target_page.h"
#include "helper_regs.h"
#include "hw/ppc/ppc.h"
@@ -301,7 +301,7 @@ static target_ulong h_page_init(PowerPCCPU *cpu,
SpaprMachineState *spapr,
if (kvm_enabled()) {
kvmppc_icbi_range(cpu, pdst, len);
} else if (tcg_enabled()) {
- tb_flush(CPU(cpu));
+ tb_invalidate_phys_range(CPU(cpu), dst, len);
Much needed improvement. Thanks.
Reviewed-by: Harsh Prateek Bora <[email protected]>
} else {
g_assert_not_reached();
}