uint_t read_size = 0;
if (hook == NULL) {
+ PrintDebug("Hook Not present for in on port %x\n", io_info->port);
// error, we should not have exited on this port
return -1;
}
}
- if (hook->read(io_info->port, &(info->vm_regs.rax), read_size) != read_size) {
+ if (hook->read(io_info->port, &(info->vm_regs.rax), read_size, hook->priv_data) != read_size) {
// not sure how we handle errors.....
+ PrintDebug("Read Failure for in on port %x\n", io_info->port);
return -1;
}
if (hook == NULL) {
+ PrintDebug("Hook Not present for ins on port %x\n", io_info->port);
// error, we should not have exited on this port
return -1;
}
// either page fault or gpf...
}
- if (hook->read(io_info->port, (char*)host_addr, read_size) != read_size) {
+ if (hook->read(io_info->port, (char*)host_addr, read_size, hook->priv_data) != read_size) {
// not sure how we handle errors.....
+ PrintDebug("Read Failure for ins on port %x\n", io_info->port);
return -1;
}
uint_t write_size = 0;
if (hook == NULL) {
+ PrintDebug("Hook Not present for out on port %x\n", io_info->port);
// error, we should not have exited on this port
return -1;
}
}
- if (hook->write(io_info->port, &(info->vm_regs.rax), write_size) != write_size) {
+ if (hook->write(io_info->port, &(info->vm_regs.rax), write_size, hook->priv_data) != write_size) {
// not sure how we handle errors.....
+ PrintDebug("Write Failure for out on port %x\n", io_info->port);
return -1;
}
if (hook == NULL) {
+ PrintDebug("Hook Not present for outs on port %x\n", io_info->port);
// error, we should not have exited on this port
return -1;
}
// either page fault or gpf...
}
- if (hook->write(io_info->port, (char*)host_addr, write_size) != write_size) {
+ if (hook->write(io_info->port, (char*)host_addr, write_size, hook->priv_data) != write_size) {
// not sure how we handle errors.....
+ PrintDebug("Write Failure for outs on port %x\n", io_info->port);
return -1;
}