[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [7137] kvm: Cleanup unmap condition in kvm_set_phys_mem (Ja
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [7137] kvm: Cleanup unmap condition in kvm_set_phys_mem (Jan Kiszka) |
Date: |
Fri, 17 Apr 2009 14:26:26 +0000 |
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 <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [7137] kvm: Cleanup unmap condition in kvm_set_phys_mem (Jan Kiszka),
Anthony Liguori <=