2 * Kernel-based Virtual Machine test driver
4 * This test driver provides a simple way of testing kvm, without a full
7 * Copyright (C) 2006 Qumranet
11 * Avi Kivity <avi@qumranet.com>
12 * Yaniv Kamay <yaniv@qumranet.com>
14 * This work is licensed under the GNU LGPL license, version 2.
19 #define MAX_IO_TABLE 50
21 typedef int (io_table_handler_t
)(void *, int, int, uint64_t, uint64_t *);
27 io_table_handler_t
*handler
;
34 struct io_table_entry entries
[MAX_IO_TABLE
];
37 struct io_table_entry
*io_table_lookup(struct io_table
*io_table
,
39 int io_table_register(struct io_table
*io_table
, uint64_t start
, uint64_t size
,
40 io_table_handler_t
*handler
, void *opaque
);