Signed-off-by: Steven Smith, sos22@cam.ac.uk
struct xenbus_driver *drv = to_xenbus_driver(_dev->driver);
const struct xenbus_device_id *id;
- BUG_ON(!dev->driver);
-
if (!drv->probe)
return -ENODEV;
long rc = 0;
if ( (vcpu >= MAX_VIRT_CPUS) || (d->vcpu[vcpu] == NULL) ) {
- printf("vcpu %d bad.\n", vcpu);
return -EINVAL;
}
if ( !port_is_valid(d, port) )
{
- printf("port %d bad.\n", port);
rc = -EINVAL;
goto out;
}
chn->notify_vcpu_id = vcpu;
break;
default:
- printf("evtchn type %d can't be rebound.\n", chn->state);
rc = -EINVAL;
break;
}
return -ESRCH;
/* Don't pickle vcpus which are currently running */
if (!test_bit(_VCPUF_down, &v->vcpu_flags)) {
- printf("Pickling a live vcpu?\n");
return -EBUSY;
}
c = xmalloc(vcpu_guest_context_t);
case SCHEDOP_vcpu_pickle:
{
ret = do_vcpu_pickle((int)(op >> SCHEDOP_vcpushift), arg);
- printf("Pickle result %ld.\n", ret);
break;
}