summaryrefslogtreecommitdiff
path: root/kvm-all.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-17 14:26:25 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-17 14:26:25 +0000
commit494ada4234368b76583c2c1054a685488129dd76 (patch)
tree08b54045cb29f432160990e91ff83ea9ab1c1e75 /kvm-all.c
parent3c892168a02b4ff9ef8c398599940b8f16a32437 (diff)
downloadqemu-494ada4234368b76583c2c1054a685488129dd76.tar.gz
qemu-494ada4234368b76583c2c1054a685488129dd76.tar.bz2
qemu-494ada4234368b76583c2c1054a685488129dd76.zip
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 <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7137 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-all.c b/kvm-all.c
index 7198b32697..e5c0d36d9c 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -550,7 +550,7 @@ void kvm_set_phys_mem(target_phys_addr_t start_addr,
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;