2 * Internal definitions for a target's KVM support
4 * This work is licensed under the terms of the GNU GPL, version 2 or later.
5 * See the COPYING file in the top-level directory.
10 #define QEMU_KVM_INT_H
12 #include "exec/memory.h"
13 #include "qemu/accel.h"
14 #include "sysemu/kvm.h"
16 typedef struct KVMSlot
19 ram_addr_t memory_size
;
24 /* Dirty bitmap cache for the slot */
25 unsigned long *dirty_bmap
;
26 unsigned long dirty_bmap_size
;
27 /* Cache of the address space ID */
29 /* Cache of the offset in ram address space */
30 ram_addr_t ram_start_offset
;
33 typedef struct KVMMemoryListener
{
34 MemoryListener listener
;
39 void kvm_memory_listener_register(KVMState
*s
, KVMMemoryListener
*kml
,
40 AddressSpace
*as
, int as_id
, const char *name
);
42 void kvm_set_max_memslot_size(hwaddr max_slot_size
);
45 * kvm_hwpoison_page_add:
48 * @ram_addr: the address in the RAM for the poisoned page
50 * Add a poisoned page to the list
54 void kvm_hwpoison_page_add(ram_addr_t ram_addr
);