From: Avi Kivity <avi@redhat.com>
To: Julia Lawall <julia@diku.dk>
Cc: kvm@vger.kernel.org, "Christian Bornträger" <borntrae@de.ibm.com>,
"Carsten Otte" <cotte@de.ibm.com>,
linux-s390@vger.kernel.org
Subject: Re: question about arch/s390/kvm/interrupt.c
Date: Sun, 12 Jul 2009 11:22:41 +0300 [thread overview]
Message-ID: <4A599D51.8030506@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0907101344350.9598@ask.diku.dk>
(copying some s390 people)
On 07/10/2009 02:47 PM, Julia Lawall wrote:
> 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
>
--
error compiling committee.c: too many arguments to function
next parent reply other threads:[~2009-07-12 8:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.64.0907101344350.9598@ask.diku.dk>
2009-07-12 8:22 ` Avi Kivity [this message]
2009-07-13 7:55 ` question about arch/s390/kvm/interrupt.c Carsten Otte
2009-07-16 15:17 ` [PATCH] kvm-390: fix wait_queue handling Christian Bornträger
2009-07-20 15:17 ` Marcelo Tosatti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A599D51.8030506@redhat.com \
--to=avi@redhat.com \
--cc=borntrae@de.ibm.com \
--cc=cotte@de.ibm.com \
--cc=julia@diku.dk \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox