commit | 7859cc6e39bf86f890bb1c72fd9ba41deb6ce2e7 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Wed Mar 14 16:19:39 2012 +0200 |
committer | Avi Kivity <avi@redhat.com> | Mon Mar 19 11:15:00 2012 +0200 |
tree | db5c49101a48ce36cca5568f6562767167766ef6 | |
parent | 0184e266cb7584feefaf4b54abbaa9fa81b62fac [diff] |
exec: fix write tlb entry misused as iotlb A couple of code paths check the lower bits of CPUTLBEntry::addr_write against io_mem_ram as a way of looking for a dirty RAM page. This works by accident since the value is zero, which matches all clear bits for TLB_INVALID, TLB_MMIO, and TLB_NOTDIRTY (indicating dirty RAM). Make it work by design by checking for the proper bits. Signed-off-by: Avi Kivity <avi@redhat.com>