Mahendra Kutare
2010-Aug-12 17:11 UTC
[Xen-devel] Question regarding Hypervisor_sched_op function
Hi, I am trying to understand Hypervisor_sched_op function and I have few question regarding this - 1. I understand that a guest VM can use the above function with "yield", in order to relinquish CPU time to other guests with running tasks. a) So when the guest VM makes this call does it save/persist any scheduling information about its current processes like runqueue, process state - runnable, ready etc ? If it does can someone point to the code I can look at. c) When yielded guest VM is scheduled back by the hypervisor, does it uses the previous state of the processes which were yielded ? 2. Is there a way in which the Hypervisor_sched_op call can be made from hypervisor itself or Dom0 if required ? Thanks Mahendra _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Mahendra Kutare
2010-Aug-20 00:47 UTC
[Xen-users] Question regarding Hypervisor_sched_op function
Hi, I am trying to understand Hypervisor_sched_op function and I have few question regarding this - 1. I understand that a guest VM can use the above function with "yield", in order to relinquish CPU time to other guests with running tasks. a) So when the guest VM makes this call does it save/persist any scheduling information about its current processes like runqueue, process state - runnable, ready etc ? If it does can someone point to the code I can look at. c) When yielded guest VM is scheduled back by the hypervisor, does it uses the previous state of the processes which were yielded ? 2. Is there a way in which the Hypervisor_sched_op call can be made from hypervisor itself or Dom0 if required ? Thanks Mahendra _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users