Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp454549ybt; Fri, 19 Jun 2020 06:00:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxLnBN6xHbwLMBnlo91hOQWBSWbZP4AYUR/4quEkJ+2K9+zIwlst2IvjV2Kx/szwL51mi9 X-Received: by 2002:a17:906:cd06:: with SMTP id oz6mr3741638ejb.434.1592571648153; Fri, 19 Jun 2020 06:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592571648; cv=none; d=google.com; s=arc-20160816; b=Qc96hIiea62kjXoWPXr95gClHWqh9/gCTObNCQqMvbBALYKBwVZooT8/UX8xl56Tr/ RtT2eLb2HcLw3FfkVqDSqRJEHLxnTaDfSiqDVkqHrGTl7mnZwNEHnwkXux+SjAiFNbbm txB6rjCjiBjwalbHiJVeHdGAlWiZKcjPGD2pHNOP2OHwmxgHf3T90KzqOtSMbmm+9+s9 gOalZc2+7VwNvBDP3yS7Hyc6TAIDDDEKQ0jRP6kigmPtNsI3+u/MwEAes/WvT6F8DSQ0 WqGSIDdqvNW9XRDQYG6FtHfXWAQfQYMI3rt4XHTG7d2+Ma+PY4p6tA2X0+9AAGvRIRXV 4xKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=uw1fRJk8W9uzHYW58SXoTwxg2AWOnCyPtVa0nujwxNo=; b=auIXItnRRb/R8BrJ+EHkyIk2DIPkcgW7ZSUlObH4V1Wf9R1FDk6P3wh9wTCDnbli4b qb7Csp482Fy23OGPY9iXZcCPQEruuhmKuhrJwKjbvvA3D/uTBBvqHh/1fgCWyzF/LRaT v4Q4noLn9ABO7M17VDt+hGQmp501XZV5vhc1yT0Htgd6pfS09i2qTzRsjuAnSYVvoe/F fZlEzWT1SYMOLkaJEWAGd/ZZgtzSr0br7sQ7CtZUgh12Yn+u1gAWXbrYYwXUqzzp8j9u 0+NIok297tDi/UayxqMR1ogZowpp8WR5o8ITFJJ48JeL7d70t1ZPIdEMftSCB6VF5qV3 WfWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=aAA1aFkx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id si29si3785353ejb.40.2020.06.19.06.00.26; Fri, 19 Jun 2020 06:00:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=aAA1aFkx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731341AbgFSMLN (ORCPT + 99 others); Fri, 19 Jun 2020 08:11:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728851AbgFSMLL (ORCPT ); Fri, 19 Jun 2020 08:11:11 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4368C06174E for ; Fri, 19 Jun 2020 05:11:10 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id h5so9477531wrc.7 for ; Fri, 19 Jun 2020 05:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=uw1fRJk8W9uzHYW58SXoTwxg2AWOnCyPtVa0nujwxNo=; b=aAA1aFkxA985YEVfjLAPiKf66EhzPWckcNx4xKon5snQWNwK/YtUsVhxAr8entll5J FqpecJvgTmxRT5+MvuHxJe9wSNpmI0nvvrBzF3a6gi+LUIybTOg+JYdbJqT0dZYlFxMk KKN+iSVJrEIms+E2BI5fXbNWVdsb2j9/Lm4zmMbjwR4aASLWSTAHS8bjK4ndoX9Radrz tAJ9VVNEEMY8zPNBspED7etWgK9KAxQVfeSI4+eLeelOpXXdGi5OUzXSQ1/NP3AapKjN 3YhofK/HVDX+bv/bUFdvGIO34LjDkJ5lop0TmHsA2yBXmfMLzQrW56prXHQF0G2R0N+F /h3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=uw1fRJk8W9uzHYW58SXoTwxg2AWOnCyPtVa0nujwxNo=; b=Vy2JUtjE+BJ87X/RSL9F1CHYUfU7AjCKRPQ5F0m+EcTWg1bX+EF06qbqXIqQl/XMW3 Z3iSjl2NCsoy64ZSFwjRbMtp+pbIhD70mnojZj+0ojwxzXJ0tKUJQ9jPaDMpeaVWK4Ky RcqOkwYfZkOOcptZGHVSGDPSOW7UY0cYBE/vNxYjUiJI2HdC4Tc/IM80tkcpvUzmwDsw 25twX/I6VvqRI53pY7T4OWGeodFkXTVe65xh9fKpxjUGr1bRhCOTrSEwQMiPuL5R6bSx BuKqLGn8pS5UsNisRDxcOMsfbnuSS/l0Iv/lPH21K+1AJpty3QzzTHQuJGjBkEuv7F5A QBLA== X-Gm-Message-State: AOAM5312tf9l3ZuuNLKZK6juQ3kVXqbW1+zIwIVv2sdf8Kp0t55bxmlj O6+p9EuIHzDQeOxsBq73ZXFoLg== X-Received: by 2002:a5d:4282:: with SMTP id k2mr3727602wrq.196.1592568669243; Fri, 19 Jun 2020 05:11:09 -0700 (PDT) Received: from google.com ([2a01:4b00:8523:2d03:d994:d48b:4a9:7c2b]) by smtp.gmail.com with ESMTPSA id l8sm6886721wrq.15.2020.06.19.05.11.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2020 05:11:08 -0700 (PDT) Date: Fri, 19 Jun 2020 13:11:06 +0100 From: David Brazdil To: Marc Zyngier Cc: Will Deacon , Catalin Marinas , James Morse , Julien Thierry , Suzuki K Poulose , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, android-kvm@google.com, kernel-team@android.com Subject: Re: [PATCH v3 03/15] arm64: kvm: Add build rules for separate nVHE object files Message-ID: <20200619121106.sz5qxxkb53ida5qa@google.com> References: <20200618122537.9625-1-dbrazdil@google.com> <20200618122537.9625-4-dbrazdil@google.com> <09976ea31931481f4e00d627dc5e06fe@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <09976ea31931481f4e00d627dc5e06fe@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Marc, > I guess that one of the first use of this __KVM_NVHE_HYPERVISOR__ > flag could be the has_vhe() predicate: if you're running the nVHE > code, you are *guaranteed* not to use VHE at all. Sure, I'll add that to the next respin. If I'm reading __is_defined correctly, it means I have to define the flag as =1. Easy. Thanks, -David