public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* question about arch/s390/kvm/interrupt.c
@ 2009-07-10 11:47 Julia Lawall
  2009-07-12  8:22 ` Avi Kivity
  0 siblings, 1 reply; 5+ messages in thread
From: Julia Lawall @ 2009-07-10 11:47 UTC (permalink / raw)
  To: avi, kvm

In a recent version of linux-next, the function kvm_s390_handle_wait 
contains the following code:

        add_wait_queue(&vcpu->arch.local_int.wq, &wait);
        while (list_empty(&vcpu->arch.local_int.list) &&
                list_empty(&vcpu->arch.local_int.float_int->list) &&
                (!vcpu->arch.local_int.timer_due) &&
                !signal_pending(current)) {
                set_current_state(TASK_INTERRUPTIBLE);
                spin_unlock_bh(&vcpu->arch.local_int.lock);
                spin_unlock(&vcpu->arch.local_int.float_int->lock);
                vcpu_put(vcpu);
                schedule();
                vcpu_load(vcpu);
                spin_lock(&vcpu->arch.local_int.float_int->lock);
                spin_lock_bh(&vcpu->arch.local_int.lock);
        }
        __unset_cpu_idle(vcpu);
        __set_current_state(TASK_RUNNING);
        remove_wait_queue(&vcpu->wq, &wait);

It seems a bit odd that the first argument to add_wait queue is 
&vcpu->arch.local_int.wq but the first argument to remove_wait_queue is 
&vcpu->wq.  I don't see any obvious evidence that they are the same thing, 
but perhaps I am missing something.  Should either call be changed?

julia

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-20 15:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-10 11:47 question about arch/s390/kvm/interrupt.c Julia Lawall
2009-07-12  8:22 ` Avi Kivity
2009-07-13  7:55   ` Carsten Otte
2009-07-16 15:17   ` [PATCH] kvm-390: fix wait_queue handling Christian Bornträger
2009-07-20 15:17     ` Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox