mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-06-16 02:15:47 +00:00
29443dabe7
Lets cheat some more and ignore MMIO accesses altogether. Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
20 lines
404 B
C
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;
|
|
}
|