From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Brook Subject: Re: [Qemu-devel] Re: [PATCH 2/6] qemu-kvm: Modify and introduce wrapper functions to access phys_ram_dirty. Date: Wed, 17 Mar 2010 00:05:03 +0000 Message-ID: <201003170005.03822.paul@codesourcery.com> References: <1268736839-27371-1-git-send-email-tamura.yoshiaki@lab.ntt.co.jp> <4BA006DB.3070205@twiddle.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: Richard Henderson , Blue Swirl , ohmura.kei@lab.ntt.co.jp, kvm@vger.kernel.org, Yoshiaki Tamura , Avi Kivity To: qemu-devel@nongnu.org Return-path: Received: from mail.codesourcery.com ([38.113.113.100]:38851 "EHLO mail.codesourcery.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751462Ab0CQAFX (ORCPT ); Tue, 16 Mar 2010 20:05:23 -0400 In-Reply-To: <4BA006DB.3070205@twiddle.net> Sender: kvm-owner@vger.kernel.org List-ID: > Where does the translator need access to this original code? I was > just thinking about this problem today, wondering how much overhead > there is with this SMC page protection thing. When an MMU fault occurs qemu re-translates the TB with additional annotations to determine which guest instruction caused the fault. See translate-all.c:cpu_restore_state(). Paul From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NrglL-00073W-TL for qemu-devel@nongnu.org; Tue, 16 Mar 2010 20:05:27 -0400 Received: from [199.232.76.173] (port=38371 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrglL-000735-Hv for qemu-devel@nongnu.org; Tue, 16 Mar 2010 20:05:27 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NrglK-0007nQ-Rj for qemu-devel@nongnu.org; Tue, 16 Mar 2010 20:05:27 -0400 Received: from mx20.gnu.org ([199.232.41.8]:57806) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NrglK-0007nM-LN for qemu-devel@nongnu.org; Tue, 16 Mar 2010 20:05:26 -0400 Received: from mail.codesourcery.com ([38.113.113.100]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NrglJ-0005Kp-N4 for qemu-devel@nongnu.org; Tue, 16 Mar 2010 20:05:26 -0400 From: Paul Brook Subject: Re: [Qemu-devel] Re: [PATCH 2/6] qemu-kvm: Modify and introduce wrapper functions to access phys_ram_dirty. Date: Wed, 17 Mar 2010 00:05:03 +0000 References: <1268736839-27371-1-git-send-email-tamura.yoshiaki@lab.ntt.co.jp> <4BA006DB.3070205@twiddle.net> In-Reply-To: <4BA006DB.3070205@twiddle.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201003170005.03822.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: ohmura.kei@lab.ntt.co.jp, kvm@vger.kernel.org, Yoshiaki Tamura , Blue Swirl , Avi Kivity , Richard Henderson > Where does the translator need access to this original code? I was > just thinking about this problem today, wondering how much overhead > there is with this SMC page protection thing. When an MMU fault occurs qemu re-translates the TB with additional annotations to determine which guest instruction caused the fault. See translate-all.c:cpu_restore_state(). Paul