mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-03 21:20:31 -07:00
exec/ram_addr: call xen_hvm_modified_memory only if xen is enabled
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20250317183417.285700-12-pierrick.bouvier@linaro.org>
This commit is contained in:
parent
d21be2b619
commit
dea4acbdef
1 changed files with 6 additions and 2 deletions
|
|
@ -339,7 +339,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)
|
||||
|
|
@ -415,7 +417,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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue