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