Files
kvmtool/mmio.c
T
Pekka Enberg 29443dabe7 kvm: Ignore MMIO accesses
Lets cheat some more and ignore MMIO accesses altogether.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
2015-06-01 16:39:39 +01:00

20 lines
404 B
C

#include "kvm/kvm.h"
#include <stdio.h>
static const char *to_direction(uint8_t is_write)
{
if (is_write)
return "write";
return "read";
}
bool kvm__emulate_mmio(struct kvm *self, uint64_t phys_addr, uint8_t *data, uint32_t len, uint8_t is_write)
{
fprintf(stderr, "Warning: Ignoring MMIO %s at %016" PRIx64 " (length %" PRIu32 ")\n",
to_direction(is_write), phys_addr, len);
return true;
}