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