xref: /kvmtool/include/kvm/kvm-ipc.h (revision e1063726d98c7305326898daf14c2fab57eda091)
1 #ifndef KVM__IPC_H_
2 #define KVM__IPC_H_
3 
4 #include <linux/types.h>
5 #include "kvm/kvm.h"
6 
7 enum {
8 	KVM_IPC_BALLOON	= 1,
9 	KVM_IPC_DEBUG	= 2,
10 	KVM_IPC_STAT	= 3,
11 	KVM_IPC_PAUSE	= 4,
12 	KVM_IPC_RESUME	= 5,
13 	KVM_IPC_STOP	= 6,
14 	KVM_IPC_PID	= 7,
15 	KVM_IPC_VMSTATE	= 8,
16 };
17 
18 int kvm_ipc__register_handler(u32 type, void (*cb)(struct kvm *kvm,
19 				int fd, u32 type, u32 len, u8 *msg));
20 int kvm_ipc__init(struct kvm *kvm);
21 int kvm_ipc__exit(struct kvm *kvm);
22 
23 int kvm_ipc__send(int fd, u32 type);
24 int kvm_ipc__send_msg(int fd, u32 type, u32 len, u8 *msg);
25 
26 #endif
27