Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lup1Q-0002nG-0T for qemu-devel@nongnu.org; Fri, 17 Apr 2009 10:26:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lup1P-0002me-Kg for qemu-devel@nongnu.org; Fri, 17 Apr 2009 10:26:27 -0400 Received: from [199.232.76.173] (port=42006 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lup1P-0002mX-9p for qemu-devel@nongnu.org; Fri, 17 Apr 2009 10:26:27 -0400 Received: from savannah.gnu.org ([199.232.41.3]:57819 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lup1O-0001qT-TH for qemu-devel@nongnu.org; Fri, 17 Apr 2009 10:26:27 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Lup1O-0002ei-8u for qemu-devel@nongnu.org; Fri, 17 Apr 2009 14:26:26 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1Lup1O-0002ee-3W for qemu-devel@nongnu.org; Fri, 17 Apr 2009 14:26:26 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Fri, 17 Apr 2009 14:26:26 +0000 Subject: [Qemu-devel] [7137] kvm: Cleanup unmap condition in kvm_set_phys_mem (Jan Kiszka) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/kvm-all.c Modified: trunk/kvm-all.c =================================================================== --- trunk/kvm-all.c 2009-04-17 14:26:21 UTC (rev 7136) +++ trunk/kvm-all.c 2009-04-17 14:26:25 UTC (rev 7137) @@ -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;