qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 3/3] softmmu: Introduce cpu_address_space_sync


From: Richard Henderson
Subject: Re: [PATCH v2 3/3] softmmu: Introduce cpu_address_space_sync
Date: Fri, 15 Sep 2023 10:19:30 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1

On 9/15/23 09:57, Philippe Mathieu-Daudé wrote:
On 15/9/23 18:32, Richard Henderson wrote:
Synchronously check and update the address space for the
current cpu for any slow path access.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1866
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
  include/exec/memory.h |  6 ++++++
  accel/tcg/cputlb.c    |  2 ++
  softmmu/physmem.c     | 20 ++++++++++++++++++++
  3 files changed, 28 insertions(+)

diff --git a/include/exec/memory.h b/include/exec/memory.h
index 68284428f8..7ec842076f 100644
--- a/include/exec/memory.h
+++ b/include/exec/memory.h
@@ -2780,6 +2780,12 @@ void address_space_cache_destroy(MemoryRegionCache 
*cache);
  IOMMUTLBEntry address_space_get_iotlb_entry(AddressSpace *as, hwaddr addr,
                                              bool is_write, MemTxAttrs attrs);
+/*
+ * Ensure all cpu address spaces are up-to-date.
+ * Return true if changes made and tlb flushed.

No return value, stale comment?

Whoops, yes.

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]