From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF4A9CA9EAF for ; Fri, 25 Oct 2019 01:43:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C772121E6F for ; Fri, 25 Oct 2019 01:43:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Jd4tVIGo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C772121E6F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=x8ndEIDpVvnVnPt1960sQ6FSaZNBlraRMOAXtJHNgI0=; b=Jd4tVIGob489D0 J+zUMDXcWne5/GRvlxpGIFgbcVlb6jFALlbqI4pzGCqxWs1I5uGUW5CGAEKBj94c+dCz12gt45nh7 ZqZydsIxw18fQhBc+pIvN5IJsVnSn1jOFzZrS2unDuCpLScRjblq3rOqE/qEU2MplzAVvCGxpAJiX Hv3uwBvKCyaWSMR8swuJDt3WLaEa0Yt5opMh271f7JDh/v46EFbYy5Rf3zDEf6fCsHM9jpmDZCreK yrqzKDwGlALuL46F2M9jr/SD68QIINwFJG7G/FmHaOFsf8RxEiFKvi9d2bf/zZZuPhvyvGmvlS19Z gsXC/BJMyzCM6Pmx1l6A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNod8-0001Ud-CN; Fri, 25 Oct 2019 01:43:06 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNod4-0001U5-R1 for linux-arm-kernel@lists.infradead.org; Fri, 25 Oct 2019 01:43:04 +0000 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1EF3721D7F; Fri, 25 Oct 2019 01:43:01 +0000 (UTC) Date: Thu, 24 Oct 2019 21:42:59 -0400 From: Steven Rostedt To: Masahiro Yamada Subject: Re: [PATCH v2 16/17] arm64: disable SCS for hypervisor code Message-ID: <20191024214259.1b37535c@gandalf.local.home> In-Reply-To: References: <20191018161033.261971-1-samitolvanen@google.com> <20191024225132.13410-1-samitolvanen@google.com> <20191024225132.13410-17-samitolvanen@google.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191024_184302_896765_79473D13 X-CRM114-Status: GOOD ( 16.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Kees Cook , Ard Biesheuvel , Catalin Marinas , Jann Horn , Nick Desaulniers , Linux Kernel Mailing List , Miguel Ojeda , Masami Hiramatsu , Sami Tolvanen , clang-built-linux , Kernel Hardening , Laura Abbott , Will Deacon , Dave Martin , linux-arm-kernel Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 25 Oct 2019 10:29:47 +0900 Masahiro Yamada wrote: > On Fri, Oct 25, 2019 at 7:52 AM wrote: > > > > Signed-off-by: Sami Tolvanen > > --- > > arch/arm64/kvm/hyp/Makefile | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/arch/arm64/kvm/hyp/Makefile b/arch/arm64/kvm/hyp/Makefile > > index ea710f674cb6..8289ea086e5e 100644 > > --- a/arch/arm64/kvm/hyp/Makefile > > +++ b/arch/arm64/kvm/hyp/Makefile > > @@ -28,3 +28,6 @@ GCOV_PROFILE := n > > KASAN_SANITIZE := n > > UBSAN_SANITIZE := n > > KCOV_INSTRUMENT := n > > + > > +ORIG_CFLAGS := $(KBUILD_CFLAGS) > > +KBUILD_CFLAGS = $(subst $(CC_FLAGS_SCS),,$(ORIG_CFLAGS)) > > > $(subst ... ) is not the correct use here. > > It works like sed, s/$(CC_CFLAGS_SCS)// > instead of matching by word. > > > > > KBUILD_CFLAGS := $(filter-out $(CC_FLAGS_SCS), $(KBUILD_CFLAGS)) > > is more correct, and simpler. I guess that would work too. Not sure why I never used it. I see mips used it for their -pg flags. -- Steve _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel