From patchwork Fri May 28 09:07:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 1485140 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=LedHizTr; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Frzfz68qfz9sRN for ; Fri, 28 May 2021 19:20:11 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Frzfz6XKwz3fnf for ; Fri, 28 May 2021 19:20:11 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=LedHizTr; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::52d; helo=mail-pg1-x52d.google.com; envelope-from=npiggin@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=LedHizTr; dkim-atps=neutral Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) (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 lists.ozlabs.org (Postfix) with ESMTPS id 4FrzQC1QBZz307D for ; Fri, 28 May 2021 19:09:07 +1000 (AEST) Received: by mail-pg1-x52d.google.com with SMTP id i5so2096687pgm.0 for ; Fri, 28 May 2021 02:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GSMIrgysRSkOkp4L4aVB8mc4VHaDXOZCGHsPewIvbA8=; b=LedHizTroFgRR5ywA8cOg3uA2Y0eDCVNHPpf17QPUlkvxRWVcF+cHJwz3q3Hu3D+rQ 3OmCCa98eny05JCxZkvU+B+5TSe1XGrUrUpGqARS4YyzjTs0d0Rf4rwQs234DA2Xe0Jj /CpUfIM6jpzZXN/2J9jfioL9b95WlPkA6qFHrmOzFxP5POEtsm2nM56vfvjjMrSRTugP tSHar+YQ0vJbFBaufc68+YVSatZo/yEM9iNFcfLJWSRYLx0iiYNQAiwqYiKpoJ1/V0Ct E1pW43rX8UZD8qrC07dz4Kpj0uj0MT40Vn4y7pWU5sZVl89CueATS6n6/CbARflJu4WT fTdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GSMIrgysRSkOkp4L4aVB8mc4VHaDXOZCGHsPewIvbA8=; b=CpAfYuaFC/DBHORVbd14888nxOYHeq49AmeUsyljvIqeLjasltroTvwet5rov1mg7H ZtnrylFFvPu2r/9FcEiHrZluGqHd8owJD3HtHLj17Xgd8PGx6xf7fGNlDnyM6qPlrtDi dw409MYlXZ8JoCjdCyLDvU1W9v3gkc7Fb7by3GlE8i24C7gAxSLutmg5HUItqnX3YUfN l6kmghnqjOhcpUacsZ7Kaf+wkuZb8Spi8Zq5u4QxhJrZ4jxDuVBxN0yCW96SSbflInge ZE6PgEbU0I0i7hd/yKKoGckji3WkBEaCqy29is7Tij+E0JGUN5PMO9UXLqqkko00DLlL 9grw== X-Gm-Message-State: AOAM5333RG+kVYVl8CGl/4bOQz7y7EMXPmOIofS8VisBYQLGxif/ceuN YNKVLdoTapk8oFzCyfxpccA= X-Google-Smtp-Source: ABdhPJwSE4XnFc6bO85yhCiAtiHvPZnVJy2QSVEZNx5HtLjHrU6fXQRn1uB5xW7tuW9K8P1/mAiM0w== X-Received: by 2002:a63:3dc5:: with SMTP id k188mr7894694pga.140.1622192945167; Fri, 28 May 2021 02:09:05 -0700 (PDT) Received: from bobo.ibm.com (124-169-110-219.tpgi.com.au. [124.169.110.219]) by smtp.gmail.com with ESMTPSA id a2sm3624183pfv.156.2021.05.28.02.09.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 02:09:04 -0700 (PDT) From: Nicholas Piggin To: kvm-ppc@vger.kernel.org Subject: [PATCH v7 26/32] KVM: PPC: Book3S HV P9: Allow all P9 processors to enable nested HV Date: Fri, 28 May 2021 19:07:46 +1000 Message-Id: <20210528090752.3542186-27-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20210528090752.3542186-1-npiggin@gmail.com> References: <20210528090752.3542186-1-npiggin@gmail.com> MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org, Nicholas Piggin Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" All radix guests go via the P9 path now, so there is no need to limit nested HV to processors that support "mixed mode" MMU. Remove the restriction. Signed-off-by: Nicholas Piggin --- arch/powerpc/kvm/book3s_hv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index acb0c72ea900..cf403280b199 100644 --- a/arch/powerpc/kvm/book3s_hv.c +++ b/arch/powerpc/kvm/book3s_hv.c @@ -5451,7 +5451,7 @@ static int kvmhv_enable_nested(struct kvm *kvm) { if (!nested) return -EPERM; - if (!cpu_has_feature(CPU_FTR_ARCH_300) || no_mixing_hpt_and_radix) + if (!cpu_has_feature(CPU_FTR_ARCH_300)) return -ENODEV; /* kvm == NULL means the caller is testing if the capability exists */