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 KVM_IPC_VMSTATE = 8, 15 }; 16 17 int kvm_ipc__register_handler(u32 type, void (*cb)(int fd, u32 type, u32 len, u8 *msg)); 18 int kvm_ipc__start(int sock); 19 int kvm_ipc__stop(void); 20 21 int kvm_ipc__send(int fd, u32 type); 22 int kvm_ipc__send_msg(int fd, u32 type, u32 len, u8 *msg); 23 24 #endif 25