Message ID | 20240108125228.115731-1-pbonzini@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-19574-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp996234dyq; Mon, 8 Jan 2024 04:53:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IE86O76iBLA3Z3TBefq4wP2OxHHFULg7geqIxDe580eM4ue8UAw6qJcb9iWVKbZoZQDdxEG X-Received: by 2002:a17:902:ce81:b0:1d5:2197:46e9 with SMTP id f1-20020a170902ce8100b001d5219746e9mr861023plg.117.1704718425864; Mon, 08 Jan 2024 04:53:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704718425; cv=none; d=google.com; s=arc-20160816; b=QI0NBJVOQVncwTdAWjVTclF+RKUmpEM9OYnT5vUHQeiPJtLIImzBhxg+UjeuqBzeOi 7c+TSuBlvb9rV7tru8lyLuI81z84ijEbRLifCqOCi3193uEWS50yWXGzgSdz8/hWr1Ob OfCjmS9C8Y6QHhg/NGQTx7sHNYSKbljoFV+nBj4esI+z92MbRzYggm4I1bQI9y3jBf7r cAdpxx51G2uDAp2BabAWcJaa6/rqIFIbp07DSJj6BQfZJUfuHFxUxaJsGyJXWwWw19xF ln4N2/cYZsHV1eo8SJ59c1xmLMXmL8BUm04Hae6fvhExSds4x+SWYdtbYL2VOBf5/DCb 9RQg== 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19574-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x8-20020a1709029a4800b001d3f44dd4e9si5777469plv.9.2024.01.08.04.53.45 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 04:53:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19574-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19574-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4FCF2B21B24 for <ouuuleilei@gmail.com>; Mon, 8 Jan 2024 12:53:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8CE4D44C93; Mon, 8 Jan 2024 12:52:38 +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 <linux-kernel@vger.kernel.org>; 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 <pbonzini@redhat.com> 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787526827998002423 X-GMAIL-MSGID: 1787526827998002423 |
Series |
KVM: x86: add missing "depends on KVM"
|
|
Commit Message
Paolo Bonzini
Jan. 8, 2024, 12:52 p.m. UTC
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 <pbonzini@redhat.com>
---
arch/x86/kvm/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Mon, Jan 08, 2024, Paolo Bonzini wrote: > 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 <pbonzini@redhat.com> > --- Good job, me. Reviewed-by: Sean Christopherson <seanjc@google.com>
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"