From patchwork Sat Dec 10 20:47:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 9469491 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A5A58607F0 for ; Sat, 10 Dec 2016 20:49:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95E9828417 for ; Sat, 10 Dec 2016 20:49:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8ACAB284E6; Sat, 10 Dec 2016 20:49:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 51D62284E5 for ; Sat, 10 Dec 2016 20:49:55 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cFoZN-0002Jv-Rs; Sat, 10 Dec 2016 20:48:33 +0000 Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cFoYP-0001uJ-JL for linux-arm-kernel@lists.infradead.org; Sat, 10 Dec 2016 20:47:36 +0000 Received: by mail-lf0-x230.google.com with SMTP id b14so21783342lfg.2 for ; Sat, 10 Dec 2016 12:47:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MT8eDdFGqv5KLbdj0yUXnu47OQ6bFZFrpmmEbgDG6RM=; b=isoa7VP0CdwGAPa2cCBeYv9jhZYRr1e/uikL70q5z2iI7dOO6kbOGAjhD/2N491o+K fjKm2LK7rQaOxLRinWc/9jXuhINnDIemsabMLzwtLqo1LOb+CD+hCPMleDqASt1JVLL9 Rcsc9epRKsnrzQWlOTor7Y3g6da2OqcyB43Xg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MT8eDdFGqv5KLbdj0yUXnu47OQ6bFZFrpmmEbgDG6RM=; b=TMfZ3ngi9gW6F71EXn/rDWIoVSxFWGa1Dz/rFm4HoP9KniBbjdrOnVata9usFhm7EZ 1d89t6CsEu7vqma9BsmJaYSraLzZz2lOTNyxAJvML0Ze2BYvf4uwRi+GXy+qeF0toqJ+ qXT3YO6BqV4aTrIEdLvpBfXP8MvElCJxBbZHQzAmUyTzdQM7YrklxN7FOrOfJBXtZQYa 275gOQHcgLqf33p9kaznq6lDkkXkGkoiRRgDs53hXIb42Q8ec1DQoYfQn3bDXEAIm90m ebGfSYq5y497jc9qp6WHHlk7t7Z1145762EuqTahFX4lnLa9BJ9/gX6rLKkx+rDCuJ2K eaTg== X-Gm-Message-State: AKaTC02bWYhwGsY/ecgD4eqAjekT3T19H0dh/Ds5qw80fwEemmMrFPjTyfGQhEWqOFaocEqd X-Received: by 10.25.131.144 with SMTP id f138mr5754463lfd.60.1481402831408; Sat, 10 Dec 2016 12:47:11 -0800 (PST) Received: from localhost.localdomain (x1-6-50-6a-03-de-ec-c2.cpe.webspeed.dk. [2.108.209.202]) by smtp.gmail.com with ESMTPSA id 29sm7578325lft.43.2016.12.10.12.47.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 10 Dec 2016 12:47:10 -0800 (PST) From: Christoffer Dall To: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org Subject: [RFC PATCH 6/7] KVM: arm/arm64: Remove unnecessary timer BUG_ON operations Date: Sat, 10 Dec 2016 21:47:11 +0100 Message-Id: <20161210204712.21830-7-christoffer.dall@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20161210204712.21830-1-christoffer.dall@linaro.org> References: <20161210204712.21830-1-christoffer.dall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161210_124734_151609_AB78F61C X-CRM114-Status: GOOD ( 10.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marc Zyngier , Christoffer Dall MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP We don't need BUG_ON operations for the timer code here anymore as this is not a likely case to get wrong and they are in the critical path so may potentially add overhead. Signed-off-by: Christoffer Dall --- virt/kvm/arm/arch_timer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/virt/kvm/arm/arch_timer.c b/virt/kvm/arm/arch_timer.c index beede1b..242728a 100644 --- a/virt/kvm/arm/arch_timer.c +++ b/virt/kvm/arm/arch_timer.c @@ -367,8 +367,6 @@ void kvm_timer_sync_hwstate(struct kvm_vcpu *vcpu) { struct arch_timer_cpu *timer = &vcpu->arch.timer_cpu; - BUG_ON(timer_is_armed(timer)); - /* * If we entered the guest with the timer output asserted we have to * check if the guest has modified the timer so that we should lower