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