From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 07/20] KVM/MIPS32: Dynamic binary translation of select privileged instructions. Date: Thu, 01 Nov 2012 17:24:28 +0200 Message-ID: <5092942C.4080402@redhat.com> References: <3E678B37-B4C1-409F-A1CB-A7CC83B2D874@kymasys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, linux-mips@linux-mips.org To: Sanjay Lal Return-path: Received: from mx1.redhat.com ([209.132.183.28]:4493 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935828Ab2KAP1B (ORCPT ); Thu, 1 Nov 2012 11:27:01 -0400 In-Reply-To: <3E678B37-B4C1-409F-A1CB-A7CC83B2D874@kymasys.com> Sender: kvm-owner@vger.kernel.org List-ID: On 10/31/2012 05:19 PM, Sanjay Lal wrote: > Currently, the following instructions are translated: > - CACHE (indexed) > - CACHE (va based): translated to a synci, overkill on D-CACHE operations, but still much faster than a trap. > - mfc0/mtc0: the virtual COP0 registers for the guest are implemented as 2-D array > [COP#][SEL] and this is mapped into the guest kernel address space @ VA 0x0. > mfc0/mtc0 operations are transformed to load/stores. > Seems to be more of binary patching, yes? Binary translation usually involves hiding the translated code so the guest is not able to detect that it is patched. -- error compiling committee.c: too many arguments to function