Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1603376rdb; Mon, 8 Jan 2024 04:53:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwwWfj7Nw2/tAZJ3eKR2vBDjuBaQT2afZ39YFyjpG2/S1kvN7GMPO/Aey3iAUpKZ5YbtsP X-Received: by 2002:a05:6870:c08e:b0:1fb:75c:400a with SMTP id c14-20020a056870c08e00b001fb075c400amr5332071oad.106.1704718415556; Mon, 08 Jan 2024 04:53:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704718415; cv=none; d=google.com; s=arc-20160816; b=a4jX8IcvSPGIUK+saAKUvFylkumOzlGUO/c2H8T7quG6cHKzqSfAN4ig3XMlagpgIc kaPXadej/36eCi9om1+kO8PBMjIOezCUFxW8M0TaTDeLJzsoe4r1nbX9HQPtwLbczPwv Xm6CdSkqt5vPupnaY3kceUaVhxMOHO7AQWUdKeCMDlzUXQcABJliiRkoJCLB32I0yxcF sfNjYfiIx4OBdAqe6XOq0j5pSzIlHzPH+ePEOrgfX7SIT5d1lwg48bHapJgR6m0prHd3 psXeFEsaxMVkX0nh2TRCDMxK4sFNlmwEylW/f0l1/P6q3FCy+mqI2FCsIvsboxFynHIg fbRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:to:from :dkim-signature; bh=fD1GykFikbXTFKh3tVS8W6aZYCFQw2YGT7ld2MYyAJI=; fh=4N0ilCeWNPUMy3p+fwQEcpDcSktLq8IMxbqwLAweA1k=; b=JscGbmtE7EdOJYque0kusi48oPlBKREsZHfCQSjbro+lbaxM3JfO3skXj4Hb804DY0 eOf44qo0XeRxAksVnOWCCkgSzqzu+tjFpIhkqsfqfdzQI02PcmNNulue71ZZWImIQRUo CLcI9R4NYjvvdSh6GHPf/FhWGMZKxXz02OyidYGF3Eji9NhKz2bSIVGWqTJowibU78re FXOGn6srDuw0W9akRS/k7pbo0IATC4x3BfvQh2dZOi6yUEQCxLlxMu+jSQ+k/5b8E8nG Ex54kjWga4qm6hlacmMKPqOrmc+4Xf5olVpVMJfEvFkgXr8kQ7/rza53/S1LIjQFwH0Q BkbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ftxwX6d8; spf=pass (google.com: domain of linux-kernel+bounces-19574-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19574-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q24-20020a638c58000000b005b92b048254si5895128pgn.201.2024.01.08.04.53.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:53:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19574-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ftxwX6d8; spf=pass (google.com: domain of linux-kernel+bounces-19574-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19574-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D5654283A8C for ; Mon, 8 Jan 2024 12:53:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BEE1B41767; Mon, 8 Jan 2024 12:52:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ftxwX6d8" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A286B4175C for ; Mon, 8 Jan 2024 12:52:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704718353; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fD1GykFikbXTFKh3tVS8W6aZYCFQw2YGT7ld2MYyAJI=; b=ftxwX6d8po3E6L/dzICEM9btBB3uO7uqEP9pOeK0ruDJUgoSxTAgJ0+k8GVPD2vaLWDHEa FJR0t+7x0t7EwTFJHZmGoGXsyKZFQkVVJaFaJIqvKLaF3ifVgWfhQo/hWJnUeLLc9bceMD IdTbDf+Cb7Wl4/rhObM8fFev+EyP/9c= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-329-OX0Np3ZbPcOLiTJaY-vt2Q-1; Mon, 08 Jan 2024 07:52:30 -0500 X-MC-Unique: OX0Np3ZbPcOLiTJaY-vt2Q-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 96F0D185A786; Mon, 8 Jan 2024 12:52:28 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7FA9D492BC7; Mon, 8 Jan 2024 12:52:28 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: [PATCH] KVM: x86: add missing "depends on KVM" Date: Mon, 8 Jan 2024 07:52:28 -0500 Message-Id: <20240108125228.115731-1-pbonzini@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 Support for KVM software-protected VMs should not be configurable, if KVM is not available at all. Fixes: 89ea60c2c7b5 ("KVM: x86: Add support for "protected VMs" that can utilize private memory") Signed-off-by: Paolo Bonzini --- arch/x86/kvm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig index cce3dea27920..10c56603cc06 100644 --- a/arch/x86/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig @@ -77,7 +77,7 @@ config KVM_WERROR config KVM_SW_PROTECTED_VM bool "Enable support for KVM software-protected VMs" depends on EXPERT - depends on X86_64 + depends on KVM && X86_64 select KVM_GENERIC_PRIVATE_MEM help Enable support for KVM software-protected VMs. Currently "protected" -- 2.39.1