Message ID | 1489092729-16871-2-git-send-email-ard.biesheuvel@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 BF26260417 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 9 Mar 2017 20:52:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B374628429 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 9 Mar 2017 20:52:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5E5D28334; Thu, 9 Mar 2017 20:52:50 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID 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 9652428334 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 9 Mar 2017 20:52: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=5hN1v2spXkHJaJrD0UBG3d5l88meHb71emgQI4YE6BY=; b=Ao0Axie7LIcT1JPoXDjZHpypE3 ypC1PdEuMS96Rba8BQv4hKxKKN4C1SLJWOqsfBdqb0hXelZ84no025g9NZBPEKnsgWLGa840fqWq0 nJ8+EUU5i2T4Pwz3FiMblB2HrS3eTkt9WuUvtomtQrrhs5P4i9yvQf2aDCZBqu8bvZY6OPj2wJ+Hi eE/Vx8Z61Fq4vC64A8jvKCLBB9dwPnG7cLDvVMfYzw3WcLSAuWQ6ou2Foe5csc0k92gERX1N82eW+ CyD3sjaE00atIVSSW6kQSFUo6RGxceDnc4v3I8ZDHsiXO5cNCC7UXzT6idbdsFlH5HW3+wZDJqTIc VrxRHzfg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cm53H-0007FU-44; Thu, 09 Mar 2017 20:52:47 +0000 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cm53A-00079e-5c for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2017 20:52:44 +0000 Received: by mail-wm0-x236.google.com with SMTP id v186so148480752wmd.0 for <linux-arm-kernel@lists.infradead.org>; Thu, 09 Mar 2017 12:52: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=Y1k1//Y5TDua1AYYvdtj9WAVwtOv73TA3hOSPqi/8ZU=; b=Chp3xAMVeXh3VNPP3ks/xNdB6kx2hKas0RfoD0ZyMKH33BOtXCOrdWyIHj44kvbV2U OI4KXcE0+LPjnnKzpwoW13+rUCekDQrFyePVs3XwvrSVPikYJlZ0/gyy8Ghi96NSpe1M 79IBgi81JUslx9txRUSaw9GV9vfvDw1XL9AT4= 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=Y1k1//Y5TDua1AYYvdtj9WAVwtOv73TA3hOSPqi/8ZU=; b=a+8r7fmlkyiitSbTqdZN7DOACWQUPWtHNOR93XurVgAaHZ3jv5b7l0+bU9a5hZ/zkV kJK2hhHg1we4UAfaqywflIoWnCuIV0tMrSW9EBUxB8qfl1vlV8UpaMu189E/SDm9+REB s9LvSQlMVyL28zQljJN2ycxcAbM7NkGZde36gOuglwMz5Bv7ndjmqR9sdpty6yyHm8Tq qmvPDzpPAJhU0BfKugoInPmYgZ4EbMPxXgkSfBoQw6kzma3yNTI+nhELezd9QVhKWdUT 4HESotOHIPYyT891R2MZ4yr9EWDjY+ZiaccpF/qrF1OyhHTI23g5f2dEelE+04J8vfGp /j+A== X-Gm-Message-State: AMke39leOY/fEq/PKF8BfdxrWnl8QXxscouYYIVnNEvvc4gZepT15HrWxHxylRpccwN2KxkW X-Received: by 10.28.97.2 with SMTP id v2mr31048173wmb.3.1489092738358; Thu, 09 Mar 2017 12:52:18 -0800 (PST) Received: from ards-macbook-pro.c.hoisthospitality.com ([109.74.56.122]) by smtp.gmail.com with ESMTPSA id g45sm9602085wrd.11.2017.03.09.12.52.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Mar 2017 12:52:17 -0800 (PST) From: Ard Biesheuvel <ard.biesheuvel@linaro.org> To: linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com, keescook@chromium.org, labbott@fedoraproject.org Subject: [PATCH v6 01/11] arm: kvm: move kvm_vgic_global_state out of .text section Date: Thu, 9 Mar 2017 21:51:59 +0100 Message-Id: <1489092729-16871-2-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1489092729-16871-1-git-send-email-ard.biesheuvel@linaro.org> References: <1489092729-16871-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170309_125240_360903_745D5843 X-CRM114-Status: UNSURE ( 9.96 ) X-CRM114-Notice: Please train this message. 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: catalin.marinas@arm.com, Ard Biesheuvel <ard.biesheuvel@linaro.org>, will.deacon@arm.com, kernel-hardening@lists.openwall.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/vgic/vgic.c b/virt/kvm/arm/vgic/vgic.c index 654dfd40e449..7713d96e85b7 100644 --- a/virt/kvm/arm/vgic/vgic.c +++ b/virt/kvm/arm/vgic/vgic.c @@ -29,7 +29,9 @@ #define DEBUG_SPINLOCK_BUG_ON(p) #endif -struct vgic_global __section(.hyp.text) kvm_vgic_global_state = {.gicv3_cpuif = STATIC_KEY_FALSE_INIT,}; +struct vgic_global kvm_vgic_global_state __ro_after_init = { + .gicv3_cpuif = STATIC_KEY_FALSE_INIT, +}; /* * Locking order is always: