* [Qemu-devel] Query regarding Iotrhead
@ 2014-02-03 12:57 Ayaz Akram
2014-02-03 14:49 ` Stefan Hajnoczi
0 siblings, 1 reply; 2+ messages in thread
From: Ayaz Akram @ 2014-02-03 12:57 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 389 bytes --]
While debugging using gdb, I found that the interrupt related flow is not
handled in io thread i.e. on using info thread, I found: Thread 2(iothread)
is at __lll_lock_wait() while Thread 1 is at qemu_set_irq(in irq.c)..
Initially I thought that this interrupt related
code(kbd_update_irq--->qemu_Set_irq......) should be handled through
iothread(event loop).. Can u help me regarding this
[-- Attachment #2: Type: text/html, Size: 420 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] Query regarding Iotrhead
2014-02-03 12:57 [Qemu-devel] Query regarding Iotrhead Ayaz Akram
@ 2014-02-03 14:49 ` Stefan Hajnoczi
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2014-02-03 14:49 UTC (permalink / raw)
To: Ayaz Akram; +Cc: qemu-devel
On Mon, Feb 3, 2014 at 1:57 PM, Ayaz Akram <aaqemu@gmail.com> wrote:
> While debugging using gdb, I found that the interrupt related flow is not
> handled in io thread i.e. on using info thread, I found: Thread 2(iothread)
> is at __lll_lock_wait() while Thread 1 is at qemu_set_irq(in irq.c)..
> Initially I thought that this interrupt related
> code(kbd_update_irq--->qemu_Set_irq......) should be handled through
> iothread(event loop).. Can u help me regarding this
When guest code accesses a hardware register, the currently executing
vcpu thread looks up the device and calls the function to emulate I/O
access for the device. If this function calls qemu_set_irq() then the
interrupt will be raised from the vcpu thread.
Here are some examples where this can happen:
hw/input/pckbd.c:kbd_write_command()
hw/input/pckbd.c:kbd_write_data()
In other words, the guest is accessing the keyboard controller and the
emulation code raises a interrupt when a particular register is being
accessed.
PS: If you want to ask questions in real-time, please use #qemu on
irc.oftc.net. Don't send private emails begging for help.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-03 14:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-03 12:57 [Qemu-devel] Query regarding Iotrhead Ayaz Akram
2014-02-03 14:49 ` Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).