From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHqG3-0003DC-4d for qemu-devel@nongnu.org; Mon, 07 Dec 2009 21:56:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHqFy-00037c-Pg for qemu-devel@nongnu.org; Mon, 07 Dec 2009 21:56:58 -0500 Received: from [199.232.76.173] (port=39389 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHqFy-00037W-85 for qemu-devel@nongnu.org; Mon, 07 Dec 2009 21:56:54 -0500 Received: from mail-ew0-f218.google.com ([209.85.219.218]:47328) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHqFx-0004yS-TY for qemu-devel@nongnu.org; Mon, 07 Dec 2009 21:56:54 -0500 Received: by ewy10 with SMTP id 10so1839279ewy.10 for ; Mon, 07 Dec 2009 18:56:51 -0800 (PST) MIME-Version: 1.0 Date: Mon, 7 Dec 2009 18:56:51 -0800 Message-ID: <43be52050912071856k8082afwb7dec1ce49667abe@mail.gmail.com> From: win Content-Type: multipart/alternative; boundary=001636c5ba6ccc5197047a2eb9b1 Subject: [Qemu-devel] [Question] How KQEMU works together with QEMU List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --001636c5ba6ccc5197047a2eb9b1 Content-Type: text/plain; charset=ISO-8859-1 Hi, everybody, I am a newbie to QEMU and have been reading the QEMU code for nearly one month. I got a picture of how QEMU works, but still cannot figure out how KQEMU works together with QEMU. Could you give me some clues to the following questions? 1) The interrupts in QEMU are driven by the SIGALRM and SIGIO signal, in whose signal handlers the cpu chain is reset and then the interrupts could be checked in the main loop. However, when executing code directly on the hardware using KQEMU, how to stop the code execution and check the interrupts? 2) As far as I know, KQEMU would change the IDT to hook some its own interrupt handlers. But in detail, what interrupt handlers are hooked? Is the timer interrupt handler included? How to restore the host's handler back to the IDT when KQEMU needs to be switched out? Thanks! I appreciate for your help. cheers, peter --001636c5ba6ccc5197047a2eb9b1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, everybody,
=A0=A0=A0 I am a newbie to QEMU and have been reading th= e QEMU code for nearly one month. I got a picture of how QEMU works, but st= ill cannot figure out how KQEMU works together with QEMU. Could you give me= some clues to the following questions?

=A0=A0=A0 1) The interrupts in QEMU are driven by the SIGALRM and SIGIO= signal, in whose signal handlers the cpu chain is reset and then the inter= rupts could be checked in the main loop. However, when executing code direc= tly on the hardware using KQEMU, how to stop the code execution and check t= he interrupts?

=A0=A0=A0 2) As far as I know, KQEMU would change the IDT to hook some = its own interrupt handlers. But in detail, what interrupt handlers are hook= ed? Is the timer interrupt handler included? How to restore the host's = handler back to the IDT when KQEMU needs to be switched out?
=A0
=A0=A0 Thanks!=A0 I appreciate for your help.

cheers,
pe= ter

--001636c5ba6ccc5197047a2eb9b1--