Commit 494ada4234368b76583c2c1054a685488129dd76
1 parent
3c892168
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
Showing
1 changed file
with
1 additions
and
1 deletions
kvm-all.c
... | ... | @@ -550,7 +550,7 @@ void kvm_set_phys_mem(target_phys_addr_t start_addr, |
550 | 550 | |
551 | 551 | mem = kvm_lookup_slot(s, start_addr); |
552 | 552 | if (mem) { |
553 | - if ((flags == IO_MEM_UNASSIGNED) || (flags >= TLB_MMIO)) { | |
553 | + if (flags >= IO_MEM_UNASSIGNED) { | |
554 | 554 | mem->memory_size = 0; |
555 | 555 | mem->start_addr = start_addr; |
556 | 556 | mem->phys_offset = 0; | ... | ... |