Il 30/09/2014 03:05, Don Slutz ha scritto: > > Basically current_cpu is NULL here, and I think that no CPU objects > have been created for Xen. So there is no VCPU object to select.
CPU objects are created for Xen HVM, though not for PV. You would have to visit the list of CPUs and fill in an array in XenIOState (e.g. "X86CPU **cpu_by_ioreq_id" array in XenIOState). Then you can set current_cpu = state->cpu_by_ioreq_id[state->send_vcpu]; handle_ioreq(req); current_cpu = NULL; in cpu_handle_ioreq. Paolo