X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fpalacios.h;h=b1618320f782c10ac887acdae90b2516603dcdac;hb=7451192e943534bd52f3f61dae1d7e9ec4317b30;hp=6c85ad879f4bfe028238193ced965ce7a4ced004;hpb=c79291850ac3605c924a2c5e9617028038bb8f63;p=palacios.releases.git diff --git a/linux_module/palacios.h b/linux_module/palacios.h index 6c85ad8..b161832 100644 --- a/linux_module/palacios.h +++ b/linux_module/palacios.h @@ -6,17 +6,35 @@ #include #include +#ifdef V3_CONFIG_CONSOLE #include "palacios-console.h" +#endif + +#ifdef V3_CONFIG_GRAPHICS_CONSOLE +#include "palacios-graphics-console.h" +#endif + +#ifdef V3_CONFIG_HOST_DEVICE +#include "palacios-host-dev.h" +#endif + /* 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 512+1 + + struct v3_guest_img { unsigned long long size; void * guest_data; @@ -28,8 +46,11 @@ struct v3_mem_region { 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); @@ -47,7 +68,18 @@ struct v3_guest { struct list_head streams; struct list_head sockets; +#ifdef V3_CONFIG_CONSOLE struct palacios_console console; +#endif + +#ifdef V3_CONFIG_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;