#include <linux/cdev.h>
#include <linux/list.h>
#include <linux/sched.h>
+#include <linux/slab.h>
+
+
+#ifdef V3_CONFIG_GRAPHICS_CONSOLE
+#include "palacios-graphics-console.h"
+#endif
+
+#ifdef V3_CONFIG_HOST_DEVICE
+#include "palacios-host-dev.h"
+#endif
-#include "palacios-console.h"
/* Global Control IOCTLs */
#define V3_START_GUEST 10
#define V3_ADD_MEMORY 50
+#define V3_START_NETWORK 60
/* VM Specific IOCTLs */
#define V3_VM_CONSOLE_CONNECT 20
-#define V3_VM_SERIAL_CONNECT 21
+#define V3_VM_STREAM_CONNECT 21
#define V3_VM_STOP 22
+#define V3_VM_FB_INPUT (256+1)
+#define V3_VM_FB_QUERY (256+2)
+
+#define V3_VM_HOST_DEV_CONNECT (10244+1)
+
+
struct v3_guest_img {
unsigned long long size;
void * guest_data;
unsigned long long num_pages;
};
+struct v3_network {
+ unsigned char socket;
+ unsigned char packet;
+ unsigned char vnet;
+};
+
+void * trace_malloc(size_t size, gfp_t flags);
+void trace_free(const void * objp);
struct v3_guest {
char name[128];
- struct list_head files;
+
+ struct rb_root vm_ctrls;
+ struct list_head exts;
+
struct list_head streams;
struct list_head sockets;
- struct palacios_console console;
+#ifdef V3_CONFIG_GRAPHICS_CONSOLE
+ struct palacios_graphics_console graphics_console;
+#endif
+
+#ifdef V3_CONFIG_HOST_DEVICE
+ struct palacios_host_dev hostdev;
+#endif
+
+
+ struct completion start_done;
struct completion thread_done;
dev_t vm_dev;