From patchwork Fri Aug 9 03:41:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 18902 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f71.google.com (mail-vb0-f71.google.com [209.85.212.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E091E25D87 for ; Fri, 9 Aug 2013 03:42:08 +0000 (UTC) Received: by mail-vb0-f71.google.com with SMTP id g17sf4400392vbg.6 for ; Thu, 08 Aug 2013 20:42:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=uye8Sy1dpdupwfGL3lNwSTuB90L+x6nVeLC7tkKX7Rk=; b=nwBaEPR7lRrzPE5VECU2CmQeCCi+VndpLeQn1m1PaMgCzwWeIFlfYbYQG2PoIhESuJ 3CBSriNb8WC8UjJzFo9tSoweJpGqrVX540RDFZXOQmUnEnizjr2Q0++cEwHlVOcnDZAQ rYuUmp24uv5qsq8Mj9XAFHJw8T5DXqKDWfU2tv6nc6wZppD1DZWcjpObBpW+zVJtOCpX s445j3xkgPdK7ooB4dIC7REyNrOsmFq6OaF5pkk4RPx4U+WJf/3i0ufqzffV8LLFWT9I 5jip2kCjdo1IQxGHUD6Y1g9wH/9tWSh1Myw/L3zczzfy9vWUSGAy0L6yPs34bQaAdq5H dMLg== X-Received: by 10.236.135.66 with SMTP id t42mr4617559yhi.36.1376019728312; Thu, 08 Aug 2013 20:42:08 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.97.197 with SMTP id ec5ls1345188qeb.26.gmail; Thu, 08 Aug 2013 20:42:08 -0700 (PDT) X-Received: by 10.220.13.15 with SMTP id z15mr5723884vcz.46.1376019728218; Thu, 08 Aug 2013 20:42:08 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id x9si4079610vec.80.2013.08.08.20.42.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 20:42:07 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id cz11so3679318veb.36 for ; Thu, 08 Aug 2013 20:42:07 -0700 (PDT) X-Gm-Message-State: ALoCoQlacs3KIkvyvvh16f6mewyAJ8Lt3/rigToO7eOWRMsyBGsWOT3yuL2TDY7LfVjZ2+55/oKi X-Received: by 10.52.243.201 with SMTP id xa9mr3893417vdc.106.1376019727106; Thu, 08 Aug 2013 20:42:07 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp50915vcz; Thu, 8 Aug 2013 20:42:06 -0700 (PDT) X-Received: by 10.68.230.131 with SMTP id sy3mr9389305pbc.34.1376019726137; Thu, 08 Aug 2013 20:42:06 -0700 (PDT) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx.google.com with ESMTPS id qh6si11800330pac.105.2013.08.08.20.42.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 20:42:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.46 is neither permitted nor denied by best guess record for domain of christoffer.dall@linaro.org) client-ip=209.85.220.46; Received: by mail-pa0-f46.google.com with SMTP id fa1so4481949pad.19 for ; Thu, 08 Aug 2013 20:42:05 -0700 (PDT) X-Received: by 10.66.254.41 with SMTP id af9mr9050881pad.174.1376019725753; Thu, 08 Aug 2013 20:42:05 -0700 (PDT) Received: from localhost.localdomain (c-67-169-183-77.hsd1.ca.comcast.net. [67.169.183.77]) by mx.google.com with ESMTPSA id nv6sm17449679pbc.6.2013.08.08.20.42.03 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 08 Aug 2013 20:42:04 -0700 (PDT) From: Christoffer Dall To: kvmarm@lists.cs.columbia.edu Cc: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, patches@linaro.org, Christoffer Dall Subject: [PATCH] ARM: KVM: Fix kvm_set_pte assignment Date: Thu, 8 Aug 2013 20:41:58 -0700 Message-Id: <1376019718-19378-1-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christoffer.dall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , THe kvm_set_pte function was actually assigning the entire struct to the structure member, which should work because the structure only has that one member, but it is still not very nice. Signed-off-by: Christoffer Dall --- arch/arm/include/asm/kvm_mmu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/kvm_mmu.h b/arch/arm/include/asm/kvm_mmu.h index 472ac70..9b28c41 100644 --- a/arch/arm/include/asm/kvm_mmu.h +++ b/arch/arm/include/asm/kvm_mmu.h @@ -64,7 +64,7 @@ void kvm_clear_hyp_idmap(void); static inline void kvm_set_pte(pte_t *pte, pte_t new_pte) { - pte_val(*pte) = new_pte; + *pte = new_pte; /* * flush_pmd_entry just takes a void pointer and cleans the necessary * cache entries, so we can reuse the function for ptes.