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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E821BC433EF for ; Mon, 27 Sep 2021 15:53:03 +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 AB38060F94 for ; Mon, 27 Sep 2021 15:53:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AB38060F94 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=5IJj5tYIUOwuJWxjEGpXuG+wLZS9LESrjaDb2kuh2Ho=; b=jEuEmdYmqDg5u5 KIkHp2Bp5mhUBSh8K6VRA+L1l3AVap41ZxdI+7IPpAxAvFvlyakWGBdhq3K/W49Pv7UFtJAdgttaP Sh6UsJGl9zNqTlTkN+nmRMr4aeVW7vQwzU79z7/cMgpeUL6U12raXkc/xrR/Zr1T6JbR8GfwCtNXJ ninBLEv01rZnL8S/C3s8c7xVNeLazI6/fj1Yg3YN7YhPSt4jdrQXXVkWtnKfkvWlFW48XMigR99Ez V6ti5G0iAlENAR0Xyxa2tYBNBokALGy64U+66cLLyUDJ5gazccBXftqtKIqsMmz3N8z/y5Na0/LOS ao8lRTZdJ9yNA0n9RiMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUsuG-003FyA-6O; Mon, 27 Sep 2021 15:51:04 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mUsu9-003Fuc-Qt for linux-arm-kernel@lists.infradead.org; Mon, 27 Sep 2021 15:50:59 +0000 Received: by mail-wr1-x430.google.com with SMTP id x20so8109377wrg.10 for ; Mon, 27 Sep 2021 08:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=bD2SU81ByuO8RLJO5RDrMC/8VFdSNtKnthXXLJULzNc=; b=KPdnEoeTKth8fMdTKgIpFSy869w3KC5nA4MquQVHTHDJxdBR+mmpeme/Bio+k5fsct y2gPk7IU4/ekMyVwex+F4Igu19Nrh2wt6I7SyCvDTksgnK629UvITvv4bAX7ih7lcWRM 7vuLfw5Ud7dNIApDLbNWlF1iGhWp67OsxOuMh7y13EiDfuRQB0XZ8i4wNWXULuygFEXt EHU0OkVvFJrwiZ6sBCasDhCoxTGRa6ctE6Iif7gQjbrBo3+p4lXVp+mNIZDYSD2h/McX oDXAoGzI0/emAX7x0ZxznathRbF+53ohnySmo1yOu+MF275OQKIHA4Wyyq5/+2uDhzJ3 mf/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=bD2SU81ByuO8RLJO5RDrMC/8VFdSNtKnthXXLJULzNc=; b=sQ86pFpbF6PKteiGXVg2N9NtK4bzNltUWmhLxWY3fzfWb9TcaWZLCaLxIeAYnzcwKg RufVmfD0uK4HjVGGBMtjRMHAyLOWqvjTnmCTiAEemeGar+s2kUXi8KorEcfVP2tZQzhz Nqc/5XrULtB1T2RmWWMWJ7h+g59Eoo0b7o1W1TnPK//de1uLK4yGoSvG2neBTuRsUqQw TO227JGcf57dQF99u7JE0SC7RGdk/kDtExSV9lSDFjKQjnd05xDEHheO3+pR9G/VTlLF f/r5Ne4Nrw7xP6K/Qer3kF/JuZHf1wuPHf50YP4lyI9Lc6tLYypeOsC3AA7KGSZ1AHzE DOPw== X-Gm-Message-State: AOAM532KUpPFjt3lyXqBbsE7c2qdUpkAuyxHTs89gm3PeB+O+92WDnCQ 69x3xIuZD+1pbK0SRxGTMDl0zw== X-Google-Smtp-Source: ABdhPJwk7UodlbcmeCXvgKd8A7K3G5BMhG4Ur82WbOKNPVZPKso9e2mYyfKX7AMU2xjSrywlN10B7w== X-Received: by 2002:a5d:648f:: with SMTP id o15mr664308wri.338.1632757852232; Mon, 27 Sep 2021 08:50:52 -0700 (PDT) Received: from google.com ([2a00:79e0:d:210:fa68:b369:184:c5a]) by smtp.gmail.com with ESMTPSA id 8sm6619875wmo.47.2021.09.27.08.50.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 08:50:51 -0700 (PDT) Date: Mon, 27 Sep 2021 16:50:49 +0100 From: Quentin Perret To: Fuad Tabba Cc: kvmarm@lists.cs.columbia.edu, maz@kernel.org, will@kernel.org, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, mark.rutland@arm.com, christoffer.dall@arm.com, drjones@redhat.com, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel-team@android.com Subject: Re: [RFC PATCH v1 01/30] KVM: arm64: placeholder to check if VM is protected Message-ID: References: <20210924125359.2587041-1-tabba@google.com> <20210924125359.2587041-2-tabba@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210924125359.2587041-2-tabba@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210927_085057_903425_63CE66FD X-CRM114-Status: GOOD ( 17.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hey Fuad, On Friday 24 Sep 2021 at 13:53:30 (+0100), Fuad Tabba wrote: > Add a function to check whether a VM is protected (under pKVM). > Since the creation of protected VMs isn't enabled yet, this is a > placeholder that always returns false. The intention is for this > to become a check for protected VMs in the future (see Will's RFC). > > No functional change intended. > > Acked-by: Will Deacon > Signed-off-by: Fuad Tabba > > Link: https://lore.kernel.org/kvmarm/20210603183347.1695-1-will@kernel.org/ > --- > arch/arm64/include/asm/kvm_host.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h > index 7cd7d5c8c4bc..adb21a7f0891 100644 > --- a/arch/arm64/include/asm/kvm_host.h > +++ b/arch/arm64/include/asm/kvm_host.h > @@ -763,6 +763,11 @@ void kvm_arch_free_vm(struct kvm *kvm); > > int kvm_arm_setup_stage2(struct kvm *kvm, unsigned long type); > > +static inline bool kvm_vm_is_protected(struct kvm *kvm) > +{ > + return false; > +} Nit: this isn't used before patch 25 I think, so maybe move to a later point in the series? That confused me a tiny bit :) Thanks, Quentin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel