X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_io.c;h=bd5648d48a222955de50ac23c63026e25ab09695;hb=dc87c976e1423a304f7d4c8848c85874c58e05b5;hp=4f58d042574618c9dacc55722ffd152ef8a1e6e4;hpb=1ca13097c7c85318c400c3811ccbb54ac6c619f1;p=palacios.git diff --git a/palacios/src/palacios/vmm_io.c b/palacios/src/palacios/vmm_io.c index 4f58d04..bd5648d 100644 --- a/palacios/src/palacios/vmm_io.c +++ b/palacios/src/palacios/vmm_io.c @@ -52,8 +52,9 @@ void add_io_hook(vmm_io_map_t * io_map, vmm_io_hook_t * io_hook) { } void hook_io_port(vmm_io_map_t * io_map, uint_t port, - int (*read)(ushort_t port, void * dst, uint_t length), - int (*write)(ushort_t port, void * src, uint_t length)) { + int (*read)(ushort_t port, void * dst, uint_t length, void * priv_data), + int (*write)(ushort_t port, void * src, uint_t length, void * priv_data), + void * priv_data) { vmm_io_hook_t * io_hook = os_hooks->malloc(sizeof(vmm_io_hook_t)); io_hook->port = port; @@ -62,6 +63,8 @@ void hook_io_port(vmm_io_map_t * io_map, uint_t port, io_hook->next = NULL; io_hook->prev = NULL; + io_hook->priv_data = priv_data; + add_io_hook(io_map, io_hook); return;