kvm-all.c (760df0d121a836dcbf3726b80b820115aef21b30) | kvm-all.c (19f703477314a5db09ffc3c0f6be9c45645f8302) |
---|---|
1/* 2 * QEMU KVM support 3 * 4 * Copyright IBM, Corp. 2008 5 * Red Hat, Inc. 2008 6 * 7 * Authors: 8 * Anthony Liguori <aliguori@us.ibm.com> --- 2164 unchanged lines hidden (view full) --- 2173 if (s->coalesced_mmio_ring) { 2174 struct kvm_coalesced_mmio_ring *ring = s->coalesced_mmio_ring; 2175 while (ring->first != ring->last) { 2176 struct kvm_coalesced_mmio *ent; 2177 2178 ent = &ring->coalesced_mmio[ring->first]; 2179 2180 if (ent->pio == 1) { | 1/* 2 * QEMU KVM support 3 * 4 * Copyright IBM, Corp. 2008 5 * Red Hat, Inc. 2008 6 * 7 * Authors: 8 * Anthony Liguori <aliguori@us.ibm.com> --- 2164 unchanged lines hidden (view full) --- 2173 if (s->coalesced_mmio_ring) { 2174 struct kvm_coalesced_mmio_ring *ring = s->coalesced_mmio_ring; 2175 while (ring->first != ring->last) { 2176 struct kvm_coalesced_mmio *ent; 2177 2178 ent = &ring->coalesced_mmio[ring->first]; 2179 2180 if (ent->pio == 1) { |
2181 address_space_rw(&address_space_io, ent->phys_addr, 2182 MEMTXATTRS_UNSPECIFIED, ent->data, 2183 ent->len, true); | 2181 address_space_write(&address_space_io, ent->phys_addr, 2182 MEMTXATTRS_UNSPECIFIED, ent->data, 2183 ent->len); |
2184 } else { 2185 cpu_physical_memory_write(ent->phys_addr, ent->data, ent->len); 2186 } 2187 smp_wmb(); 2188 ring->first = (ring->first + 1) % KVM_COALESCED_MMIO_MAX; 2189 } 2190 } 2191 --- 901 unchanged lines hidden --- | 2184 } else { 2185 cpu_physical_memory_write(ent->phys_addr, ent->data, ent->len); 2186 } 2187 smp_wmb(); 2188 ring->first = (ring->first + 1) % KVM_COALESCED_MMIO_MAX; 2189 } 2190 } 2191 --- 901 unchanged lines hidden --- |