]> git.proxmox.com Git - mirror_qemu.git/blame - include/sysemu/kvm_int.h
Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging
[mirror_qemu.git] / include / sysemu / kvm_int.h
CommitLineData
8571ed35
PB
1/*
2 * Internal definitions for a target's KVM support
3 *
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.
6 *
7 */
8
9#ifndef QEMU_KVM_INT_H
10#define QEMU_KVM_INT_H
11
12#include "sysemu/sysemu.h"
13#include "sysemu/accel.h"
14#include "sysemu/kvm.h"
15
16typedef struct KVMSlot
17{
18 hwaddr start_addr;
19 ram_addr_t memory_size;
20 void *ram;
21 int slot;
22 int flags;
6c090d4a 23 int old_flags;
8571ed35
PB
24} KVMSlot;
25
7bbda04c
PB
26typedef struct KVMMemoryListener {
27 MemoryListener listener;
28 KVMSlot *slots;
38bfe691 29 int as_id;
7bbda04c
PB
30} KVMMemoryListener;
31
8571ed35
PB
32#define TYPE_KVM_ACCEL ACCEL_CLASS_NAME("kvm")
33
34#define KVM_STATE(obj) \
35 OBJECT_CHECK(KVMState, (obj), TYPE_KVM_ACCEL)
36
38bfe691
PB
37void kvm_memory_listener_register(KVMState *s, KVMMemoryListener *kml,
38 AddressSpace *as, int as_id);
39
8571ed35 40#endif