From patchwork Tue Dec 19 14:56:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 122383 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4256790qgn; Tue, 19 Dec 2017 06:56:34 -0800 (PST) X-Google-Smtp-Source: ACJfBotMjBZmaT7/0okDUA+3RvwCeyTsDunebei2C7PQABfsIZvPEmU41Pel8fodal3T7Pax3P9u X-Received: by 10.99.113.7 with SMTP id m7mr3267112pgc.293.1513695393985; Tue, 19 Dec 2017 06:56:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513695393; cv=none; d=google.com; s=arc-20160816; b=Fw4DiWOOs5G+OZXJlhVQ0rZyX48wghAOJALRNIrE9PiD56mYM/4TVfBqP47ND0LQe1 i52beQ81oxswQkPsr3BWDdaL86Onmd9T9vBkV59unTpYDrXtt/6Wz4iwjOxy9DqZV+E6 7H7AuhhllPaFN58flMxKU9SpeVbl4NvobUFx1dEOAKp+Ystgh/5ZmRqngWuhYTM3tdvb bfJPcO8146/8bQDtXGfbt2EuGUzW7wk2ll7GjomlFwgSGbYGUSSl6z0nQwhqaKibxB37 DedOHhdYQzMAXQn3faIW5x5s51UAXgvquDkqzo5W87ga8n3iZ/MFmiHthPbZGVrC8dZN M2zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=bxe+e+kqWnK98FUkj6QHLratrS/bfDBS6qDvoGN/QcM=; b=cPukdR7g+VlCEiArvJEvZsFlq6/HEcVMbEpnKGzl65B+SggxMbZc4/c01X2qXfS7f4 cFN6DXrSKRY3SlTted8NaaZus+jwGssTZ7yxd2XWuvchkFOzpkwWSYDTMoSdPAfkwSD0 4N7GLElqKHAsPv/DcQN+K96GplutVd2x/HbKqmzMYcONnLTmIdgSt7tVSfKf4gc0dJxn dPjMe9vYeUJLKY8ytIVsCfp9rywERTrff70Ds64n9kQdfVaFxwcVxxdZgMaUBbBvxMo+ EY1+lown+X6gUulugljxkTQLAkhRGGyzjNpvXKBwWWtL1aFerDLXWAmx0u+kr6dSzTSw 8qwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p3si11262047pfg.369.2017.12.19.06.56.33; Tue, 19 Dec 2017 06:56:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936684AbdLSO42 (ORCPT + 28 others); Tue, 19 Dec 2017 09:56:28 -0500 Received: from mx2.suse.de ([195.135.220.15]:50192 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935186AbdLSO40 (ORCPT ); Tue, 19 Dec 2017 09:56:26 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 719E8AC65; Tue, 19 Dec 2017 14:56:25 +0000 (UTC) From: Alexander Graf To: kvm-ppc@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paul Mackerras Subject: [PATCH] KVM: PPC: Book3S HV: Remove vcpu->arch.dec usage Date: Tue, 19 Dec 2017 15:56:24 +0100 Message-Id: <20171219145624.46724-1-agraf@suse.de> X-Mailer: git-send-email 2.12.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Book3S in HV mode, we don't use the vcpu->arch.dec field at all. Instead, all logic is built around vcpu->arch.dec_expires. So let's remove the one remaining piece of code that was setting it. Signed-off-by: Alexander Graf --- Looking through the DEC logic, I fail to see any code that allows save or restore of DEC. Do we maybe miss out on that register for (live) migration? --- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 1 - 1 file changed, 1 deletion(-) -- 2.12.3 diff --git a/arch/powerpc/kvm/book3s_hv_rmhandlers.S b/arch/powerpc/kvm/book3s_hv_rmhandlers.S index 2659844784b8..c8ffd69adfec 100644 --- a/arch/powerpc/kvm/book3s_hv_rmhandlers.S +++ b/arch/powerpc/kvm/book3s_hv_rmhandlers.S @@ -957,7 +957,6 @@ ALT_FTR_SECTION_END_IFCLR(CPU_FTR_ARCH_300) mftb r7 subf r3,r7,r8 mtspr SPRN_DEC,r3 - std r3,VCPU_DEC(r4) ld r5, VCPU_SPRG0(r4) ld r6, VCPU_SPRG1(r4)