mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-05 13:11:44 +00:00
Move all the kvm-ipc specific code into the relevant file, and modify the ipc callback to pass a ptr to struct kvm as well. Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
27 lines
547 B
C
27 lines
547 B
C
#ifndef KVM__IPC_H_
|
|
#define KVM__IPC_H_
|
|
|
|
#include <linux/types.h>
|
|
#include "kvm/kvm.h"
|
|
|
|
enum {
|
|
KVM_IPC_BALLOON = 1,
|
|
KVM_IPC_DEBUG = 2,
|
|
KVM_IPC_STAT = 3,
|
|
KVM_IPC_PAUSE = 4,
|
|
KVM_IPC_RESUME = 5,
|
|
KVM_IPC_STOP = 6,
|
|
KVM_IPC_PID = 7,
|
|
KVM_IPC_VMSTATE = 8,
|
|
};
|
|
|
|
int kvm_ipc__register_handler(u32 type, void (*cb)(struct kvm *kvm,
|
|
int fd, u32 type, u32 len, u8 *msg));
|
|
int kvm_ipc__init(struct kvm *kvm);
|
|
int kvm_ipc__exit(struct kvm *kvm);
|
|
|
|
int kvm_ipc__send(int fd, u32 type);
|
|
int kvm_ipc__send_msg(int fd, u32 type, u32 len, u8 *msg);
|
|
|
|
#endif
|