From: Christoffer Dall Subject: Re: [PATCH v4 07/10] ARM: KVM: Emulation framework and CP15 emulation Date: Tue, 9 Aug 2011 13:40:28 +0200 Message-ID: <90DE7AE7-40FA-47AA-84EC-7B79D00BD0DA@virtualopensystems.com> References: <20110806103821.27198.41231.stgit@localhost6.localdomain6> <20110806103949.27198.28630.stgit@localhost6.localdomain6> <4E411740.6050007@redhat.com> <7566E2E1-F1E4-4683-9DA5-271738A5A14D@virtualopensystems.com> <4E411C55.3040902@redhat.com> Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Cc: Christoffer Dall , kvm@vger.kernel.org, catalin.marinas@arm.com, tech@virtualopensystems.com, android-virt@lists.cs.columbia.edu To: Avi Kivity Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:42480 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753397Ab1HILkb convert rfc822-to-8bit (ORCPT ); Tue, 9 Aug 2011 07:40:31 -0400 Received: by mail-fx0-f46.google.com with SMTP id 19so6405712fxh.19 for ; Tue, 09 Aug 2011 04:40:30 -0700 (PDT) In-Reply-To: <4E411C55.3040902@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Aug 9, 2011, at 1:39 PM, Avi Kivity wrote: > On 08/09/2011 02:34 PM, Christoffer Dall wrote: >> > >> >> + >> >> +/** >> >> + * emulate_cp15_c15_access -- emulates cp15 accesses for CRn == 15 >> >> + * @vcpu: The VCPU pointer >> >> + * @p: The coprocessor parameters struct pointer holding trap inst. details >> >> + * >> >> + * The CP15 c15 register is implementation defined, but some guest kernels >> >> + * attempt to read/write a diagnostics register here. We always return 0 and >> >> + * ignore writes and hope for the best. This may need to be refined. >> >> + */ >> >> +static int emulate_cp15_c15_access(struct kvm_vcpu *vcpu, >> >> + struct coproc_params *p) >> >> +{ >> >> + trace_kvm_emulate_cp15_imp(p->Op1, p->Rt1, p->CRn, p->CRm, >> >> + p->Op2, p->is_write); >> > >> > _imp? >> >> implementation defined co-processor 15 operations. Took me 10 minutes to dig out from memory, so, ok, this is not super informative or clear:) Will try to come up with something better or the right comment somewhere or something. >> > > Ah, okay. It's not related to the kvm implementation, it's architecturally implementation defined. exactly. > > -- > error compiling committee.c: too many arguments to function >