| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1/1] xen-hvm.c: Add support for Xen access to vmport
 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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |