Message ID | 20171220113606.7030-2-christoffer.dall@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 25AA86019C for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 20 Dec 2017 11:40:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E5B5288C5 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 20 Dec 2017 11:40:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 126AC294DF; Wed, 20 Dec 2017 11:40:56 +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.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ADD2029604 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 20 Dec 2017 11:40:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ZjKxHm0ArhooRMR3WuNO1CF/yOv6VhkKNSCb4Cu1e6w=; b=RZCsJaHiXGGjq7OP5znyFSman8 TantjizH1UdZWq1o1GV00WhlZTPuDxI+tIl+w2bsfGelIbEZDj7sleo5qq69BW974fwthd3csxILJ DBPkvdCAfVltGVksScXgz3ZfWU4E+u0pMVVvd/GTAgPpu1x2k7gCZsO0h9h/nRKjfRI9yosKmoIqj oW16wnpM1v5HBObz6A+bv5Nh0W2JQAHahPjF0vIiJOvdSRCbmX0vaUNzky0QlMCpqHoGRX4iA/H7o 09aHQ9zG9BeU4jy/2hAafAytIxl3h4dBkoePtgJnLTkuo8QpWGXjmsjRwlKNSbix9ERBwcbfowVVn UTv92kpg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eRcjv-0001Iz-Fm; Wed, 20 Dec 2017 11:40:47 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eRcfl-0006On-MK for linux-arm-kernel@lists.infradead.org; Wed, 20 Dec 2017 11:36:33 +0000 Received: by mail-wm0-x243.google.com with SMTP id 9so9225292wme.4 for <linux-arm-kernel@lists.infradead.org>; Wed, 20 Dec 2017 03:36:19 -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=4u4pcgdPi/S0sZxnUWXe/CJVNTRbDFNZVSWA/dWAEfc=; b=g0MERfhNFQa76zXMN4qn2d7fFPRgiMZXbdzmJMZPa5uloYjyaW4LfrgLNB9renCA7O zpRJOuY+ARmVDbCDheBNPCFpmtC+7yi2I4QWY48iwu2Lzrbxnw0ZAc+6Pejv5KIX4mBg OjhAWDJhYwBdrSs58ptG+RPc6LwHNbV1lZfHo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4u4pcgdPi/S0sZxnUWXe/CJVNTRbDFNZVSWA/dWAEfc=; b=hfcLTOBX6zPQdc0RCl300n2xnl+tX+ncEDUUj9JnPM2YtEPoOGNEB2TnP64dfhRc5x HGSqGtswGF5Szukqy1NMGXbQfrK5F59blkEjk7jEagxGZLJm15sEksrgzdg0JPFkFrI0 iWVgb9jlE1CfdJ0tlsnIPv+0+ZDEknxUVHGZDQV2k+PwoC0HUhuryuJyP8NbewOLj70g 3HswO9OM6nGfkgQdcLvcUjJNC7I71P5rLCg4RZqmpwOZBNWqC6dhre5mRuJUFJqWguHT 6n0P//0dT+iy+PWAeF2P4lCcb45+oCiAe/uGx0YHiX0FLxPwzvZ5SQSzXsYH70+G+2qy vk2A== X-Gm-Message-State: AKGB3mLqdJ7/r6lXmxBNbp7NlroQ/hZPMqJxMmEI9RiNT++CrTmJTdT+ J3HltGaTnmcd6NBn8KJ86dX9wg== X-Google-Smtp-Source: ACJfBosbHFXlrcxkbJVMtxbtCJ4tSp5tQ+QWMrlYliJXyO3HMiJNYbYjQfuvVbsNxIzrd2aoaQh1+A== X-Received: by 10.80.165.226 with SMTP id b31mr5022089edc.172.1513769777946; Wed, 20 Dec 2017 03:36:17 -0800 (PST) Received: from localhost.localdomain (x50d2404e.cust.hiper.dk. [80.210.64.78]) by smtp.gmail.com with ESMTPSA id v15sm13978880edb.41.2017.12.20.03.36.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Dec 2017 03:36:17 -0800 (PST) From: Christoffer Dall <christoffer.dall@linaro.org> To: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Subject: [PATCH v9 1/9] KVM: arm/arm64: Remove redundant preemptible checks Date: Wed, 20 Dec 2017 12:35:58 +0100 Message-Id: <20171220113606.7030-2-christoffer.dall@linaro.org> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171220113606.7030-1-christoffer.dall@linaro.org> References: <20171220113606.7030-1-christoffer.dall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171220_033629_777489_66B45353 X-CRM114-Status: GOOD ( 10.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Marc Zyngier <marc.zyngier@arm.com>, Andre Przywara <andre.przywara@arm.com>, Christoffer Dall <christoffer.dall@linaro.org>, kvm@vger.kernel.org, Eric Auger <eric.auger@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/virt/kvm/arm/arm.c b/virt/kvm/arm/arm.c index 6b60c98a6e22..3610e132df8b 100644 --- a/virt/kvm/arm/arm.c +++ b/virt/kvm/arm/arm.c @@ -71,7 +71,6 @@ static DEFINE_PER_CPU(unsigned char, kvm_arm_hardware_enabled); static void kvm_arm_set_running_vcpu(struct kvm_vcpu *vcpu) { - BUG_ON(preemptible()); __this_cpu_write(kvm_arm_running_vcpu, vcpu); } @@ -81,7 +80,6 @@ static void kvm_arm_set_running_vcpu(struct kvm_vcpu *vcpu) */ struct kvm_vcpu *kvm_arm_get_running_vcpu(void) { - BUG_ON(preemptible()); return __this_cpu_read(kvm_arm_running_vcpu); }