target/arm/arm-powerctl: Fix psci info return values
[qemu/ar7.git] / include / sysemu / kvm_int.h
blob888557a1ca3c22a5ce117c87704e38d49841aedc
1 /*
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.
7 */
9 #ifndef QEMU_KVM_INT_H
10 #define QEMU_KVM_INT_H
12 #include "sysemu/sysemu.h"
13 #include "sysemu/accel.h"
14 #include "sysemu/kvm.h"
16 typedef struct KVMSlot
18 hwaddr start_addr;
19 ram_addr_t memory_size;
20 void *ram;
21 int slot;
22 int flags;
23 } KVMSlot;
25 typedef struct KVMMemoryListener {
26 MemoryListener listener;
27 KVMSlot *slots;
28 int as_id;
29 } KVMMemoryListener;
31 #define TYPE_KVM_ACCEL ACCEL_CLASS_NAME("kvm")
33 #define KVM_STATE(obj) \
34 OBJECT_CHECK(KVMState, (obj), TYPE_KVM_ACCEL)
36 void kvm_memory_listener_register(KVMState *s, KVMMemoryListener *kml,
37 AddressSpace *as, int as_id);
39 #endif