[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 12/16] exec/ram_addr: call xen_hvm_modified_memory only if xen is
From: |
Pierrick Bouvier |
Subject: |
[PATCH 12/16] exec/ram_addr: call xen_hvm_modified_memory only if xen is enabled |
Date: |
Sun, 9 Mar 2025 21:58:38 -0700 |
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
---
include/exec/ram_addr.h | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/include/exec/ram_addr.h b/include/exec/ram_addr.h
index 7c011fadd11..098fccb5835 100644
--- a/include/exec/ram_addr.h
+++ b/include/exec/ram_addr.h
@@ -342,7 +342,9 @@ static inline void
cpu_physical_memory_set_dirty_range(ram_addr_t start,
}
}
- xen_hvm_modified_memory(start, length);
+ if (xen_enabled()) {
+ xen_hvm_modified_memory(start, length);
+ }
}
#if !defined(_WIN32)
@@ -418,7 +420,9 @@ uint64_t cpu_physical_memory_set_dirty_lebitmap(unsigned
long *bitmap,
}
}
- xen_hvm_modified_memory(start, pages << TARGET_PAGE_BITS);
+ if (xen_enabled()) {
+ xen_hvm_modified_memory(start, pages << TARGET_PAGE_BITS);
+ }
} else {
uint8_t clients = tcg_enabled() ? DIRTY_CLIENTS_ALL :
DIRTY_CLIENTS_NOCODE;
--
2.39.5
- [PATCH 01/16] exec/memory_ldst: extract memory_ldst declarations from cpu-all.h, (continued)
- [PATCH 01/16] exec/memory_ldst: extract memory_ldst declarations from cpu-all.h, Pierrick Bouvier, 2025/03/10
- [PATCH 02/16] exec/memory_ldst_phys: extract memory_ldst_phys declarations from cpu-all.h, Pierrick Bouvier, 2025/03/10
- [PATCH 03/16] include: move target_words_bigendian() from tswap to bswap, Pierrick Bouvier, 2025/03/10
- [PATCH 04/16] exec/memory.h: make devend_memop target agnostic, Pierrick Bouvier, 2025/03/10
- [PATCH 06/16] exec/cpu-all.h: we can now remove ld/st macros, Pierrick Bouvier, 2025/03/10
- [PATCH 05/16] qemu/bswap: implement {ld,st}.*_p as functions, Pierrick Bouvier, 2025/03/10
- [PATCH 07/16] codebase: prepare to remove cpu.h from exec/exec-all.h, Pierrick Bouvier, 2025/03/10
- [PATCH 09/16] exec/memory-internal: remove dependency on cpu.h, Pierrick Bouvier, 2025/03/10
- [PATCH 10/16] exec/ram_addr: remove dependency on cpu.h, Pierrick Bouvier, 2025/03/10
- [PATCH 12/16] exec/ram_addr: call xen_hvm_modified_memory only if xen is enabled,
Pierrick Bouvier <=
- [PATCH 08/16] exec/exec-all: remove dependency on cpu.h, Pierrick Bouvier, 2025/03/10
- [PATCH 11/16] system/kvm: make kvm_flush_coalesced_mmio_buffer() accessible for common code, Pierrick Bouvier, 2025/03/10
- [PATCH 13/16] hw/xen: add stubs for various functions, Pierrick Bouvier, 2025/03/10
- [PATCH 15/16] system/memory: make compilation unit common, Pierrick Bouvier, 2025/03/10
- [PATCH 14/16] system/physmem: compilation unit is now common to all targets, Pierrick Bouvier, 2025/03/10
- [PATCH 16/16] system/ioport: make compilation unit common, Pierrick Bouvier, 2025/03/10
- Re: [PATCH 00/16] make system memory API available for common code, BALATON Zoltan, 2025/03/10