All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Zhi Hui Li <zhihuili@linux.vnet.ibm.com>
Cc: Kevin Wolf <kwolf@redhat.com>, QEMU-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] question about irq update
Date: Fri, 15 Jun 2012 11:04:15 +0200	[thread overview]
Message-ID: <4FDAFA8F.5000600@redhat.com> (raw)
In-Reply-To: <4FDAF574.4000208@linux.vnet.ibm.com>

Il 15/06/2012 10:42, Zhi Hui Li ha scritto:
> 
> bool qtest_get_irq(QTestState *s, int num)
> {
>     /* dummy operation in order to make sure irq is up to date */
>     qtest_inb(s, 0);
> 
>     return s->irq_level[num];
> }
> 
> but I don't know how it can make the irq up to date
> and why we will read from the address of 0 ?

It just forces libqtest to read any pending events.

Paolo

  reply	other threads:[~2012-06-15  9:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-15  8:42 [Qemu-devel] question about irq update Zhi Hui Li
2012-06-15  9:04 ` Paolo Bonzini [this message]
2012-06-15  9:11   ` Zhi Hui Li

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=4FDAFA8F.5000600@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=zhihuili@linux.vnet.ibm.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.