[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Fwd: Next vcpu in queue
Hi, In connection with my previous mail, I have attached a file. This file has source code picked up from the book, 'The definitive guide to Xen hypervisor', for adding a simple scheduler to xen. In the functions, rrobin_vcpu_init and rrobin_vcpu_destroy, the book uses (probably a macro call) VCPU_NEXT(struct vcpu). But there is no definition given for that function. It would be great if you can point to an existing function from xen 3.3.1 source code can be used. Also, in the function rrobin_schedule (s_time_t ), the function __get_per_cpu is used (line no. 82) , which is not existing in 3.3.1 code. I want to return an idle task. Could you guide me as to which function in the 3.3.1 source code would be appropriate for the same? Thank you very much. Regards Ananth ---------- Forwarded message ---------- From: Ananth <cbananth@xxxxxxxxx> Date: Fri, Apr 24, 2009 at 9:35 AM Subject: Next vcpu in queue To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx> Hi, I am using xen 3.3.1 I want to destroy the head element of that list and assign the next in line vcpu as the head. I have declared a pointer struct vcpu * vcpu_list_head. I would like to assign vpu_list_head = ' get the next vcpu in queue which can be scheduled'. I am not sure if there is a already a function available which can do this. Please guide. Thank you Attachment:
sched_rrobin.txt _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |