mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
memory: track DIRTY_MEMORY_CODE in mr->dirty_log_mask
DIRTY_MEMORY_CODE is only needed for TCG. By adding it directly to mr->dirty_log_mask, we avoid testing for TCG everywhere a region is checked for the enabled/disabled state of dirty logging. Reviewed-by: Fam Zheng <famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
42af3e3a02
commit
677e7805cf
2 changed files with 6 additions and 2 deletions
|
@ -604,8 +604,8 @@ bool memory_region_is_logging(MemoryRegion *mr, uint8_t client);
|
|||
* memory_region_get_dirty_log_mask: return the clients for which a
|
||||
* memory region is logging writes.
|
||||
*
|
||||
* Returns a bitmap of clients, which right now will be either 0 or
|
||||
* (1 << DIRTY_MEMORY_VGA).
|
||||
* Returns a bitmap of clients, in which the DIRTY_MEMORY_* constants
|
||||
* are the bit indices.
|
||||
*
|
||||
* @mr: the memory region being queried
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue