#include "system/address-spaces.h"
#include "xen-emu.h"
#include "trace.h"
+#include "system/memory.h"
#include "system/runstate.h"
#include "hw/pci/msi.h"
static int kvm_gva_rw(CPUState *cs, uint64_t gva, void *_buf, size_t sz,
bool is_write)
{
+ AddressSpace *as = cpu_addressspace(cs, MEMTXATTRS_UNSPECIFIED);
uint8_t *buf = (uint8_t *)_buf;
uint64_t gpa;
size_t len;
len = sz;
}
- cpu_physical_memory_rw(gpa, buf, len, is_write);
+ address_space_rw(as, gpa, MEMTXATTRS_UNSPECIFIED, buf, len, is_write);
buf += len;
sz -= len;