memory: track DIRTY_MEMORY_CODE in mr->dirty_log_mask
commit677e7805cf95f3b2bca8baf0888d1ebed7f0c606
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 Mar 2015 09:53:21 +0000 (23 10:53 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Jun 2015 15:09:59 +0000 (5 17:09 +0200)
tree79c5493f166c519f5f1598b209f7ddd50128a313
parent42af3e3a02f6d0c38c46465b7f0311eabf532f77
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>
include/exec/memory.h
memory.c