[7137] kvm: Cleanup unmap condition in kvm_set_phys_mem (Jan Kiszka)
Revision: 7137
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7137 Author: aliguori Date: 2009-04-17 14:26:25 +0000 (Fri, 17 Apr 2009)
Log Message:
-----------
kvm: Cleanup unmap condition in kvm_set_phys_mem (Jan Kiszka)
Testing for TLB_MMIO on unmap makes no sense as A) that flag belongs to CPUTLBEntry and not to io_memory slots or physical addresses and B) we already use a different condition before mapping. So make this test consistent.
Signed-off-by Jan Kiszka <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/kvm-all.c
Modified: trunk/kvm-all.c
===================================================================
kvm-all.c +1 -1
@@ -550,7 +550,7 @@ mem =kvm_lookup_slot (s, start_addr);if (mem) { -if ((flags ==IO_MEM_UNASSIGNED ) || (flags >=TLB_MMIO )) { +if (flags >=IO_MEM_UNASSIGNED ) { mem->memory_size =0 ; mem->start_addr = start_addr; mem->phys_offset =0 ;