Lines Matching refs:sched_poll
1208 struct sched_poll sched_poll; in kvm_xen_schedop_poll() local
1233 sched_poll.ports = (void *)(unsigned long)(sp32.ports); in kvm_xen_schedop_poll()
1234 sched_poll.nr_ports = sp32.nr_ports; in kvm_xen_schedop_poll()
1235 sched_poll.timeout = sp32.timeout; in kvm_xen_schedop_poll()
1237 if (kvm_read_guest_virt(vcpu, param, &sched_poll, in kvm_xen_schedop_poll()
1238 sizeof(sched_poll), &e)) { in kvm_xen_schedop_poll()
1244 if (unlikely(sched_poll.nr_ports > 1)) { in kvm_xen_schedop_poll()
1246 if (sched_poll.nr_ports > 128) { in kvm_xen_schedop_poll()
1251 ports = kmalloc_array(sched_poll.nr_ports, in kvm_xen_schedop_poll()
1260 if (kvm_read_guest_virt(vcpu, (gva_t)sched_poll.ports, ports, in kvm_xen_schedop_poll()
1261 sched_poll.nr_ports * sizeof(*ports), &e)) { in kvm_xen_schedop_poll()
1266 for (i = 0; i < sched_poll.nr_ports; i++) { in kvm_xen_schedop_poll()
1273 if (sched_poll.nr_ports == 1) in kvm_xen_schedop_poll()
1280 if (!wait_pending_event(vcpu, sched_poll.nr_ports, ports)) { in kvm_xen_schedop_poll()
1283 if (sched_poll.timeout) in kvm_xen_schedop_poll()
1285 jiffies + nsecs_to_jiffies(sched_poll.timeout)); in kvm_xen_schedop_poll()
1289 if (sched_poll.timeout) in kvm_xen_schedop_poll()
1301 if (unlikely(sched_poll.nr_ports > 1)) in kvm_xen_schedop_poll()