Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1120064pxy; Fri, 23 Apr 2021 00:10:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwy9JDfNrvY2Jqf9oimf3pMf2ik9Oljd0ipRKp5QabsLx2KmrDFaD0+HDx5oQqYGGRewQs6 X-Received: by 2002:a17:906:1186:: with SMTP id n6mr2627476eja.519.1619161832842; Fri, 23 Apr 2021 00:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619161832; cv=none; d=google.com; s=arc-20160816; b=hMfK6u4BDwzbnyT0uGXkGB/tUQ+qoDtMNjMguwtfXa2USRq+IY8EOLqb08kN3aYiO8 MV3YXdFRE/eSly2Xucp6VEmKanrUROCpRol5tSOi1CCzL2aBv9uDrvAT3YSia2tyCCDm 7NY9rj5voyLI3UJc7OTIEl43orIpgFyo+hd6ZzJd5P36KDPIubINpC8V5nx72PYuY1u+ /vb+UKBBzkbrheRm9VIpFjZ8Mp02kzLz8Y95/nQ0yqKHDQhR/yTxOkBVrM7uQVbj86RY LzDVb/z/O/mpNsTZozfelHB4KYJWlRo8ARxn4+2E86Z/FowyRl85n9mhVhXFcDCFiEMU fpiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Q8ibsUJr2Xw/0Bx+47uUdT7BpjL9CbRIh33qYka8yhk=; b=J3Ybsg5KpmbxheC7urkSWfGgT8thMvQ4z9wCPZ6uZKSaDbguldJixCL0+H2OUjzl41 K5GXs9xgPQS/eX/VqB15e7H6UXiIENFCgTGOBDzu12JYvhkM8gXhPi+QXA4AodX8xQD0 7MCh//h/adUvEGMTcMlcWU0WbNPt4G95R2g8vqcUbY1eUoTSTWaOT2MwbpnartHIOXNK Ea1Z1QrYyMiTJfDjcLtuyJMiSumHpzHLXjQaty9BL7fSGmnYILg78ERDp+OWM2FL1LKf D4W1KODyasYs4AQBd7ojO5JTqlmenDGo0FJnAcLlawr9dkSbLf0Xa8ssoJm3TG+Cr3bC DAyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=G63DP9uN; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bk25si3954223ejb.211.2021.04.23.00.10.08; Fri, 23 Apr 2021 00:10:32 -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=@redhat.com header.s=mimecast20190719 header.b=G63DP9uN; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240834AbhDWHJj (ORCPT + 99 others); Fri, 23 Apr 2021 03:09:39 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:37505 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbhDWHJg (ORCPT ); Fri, 23 Apr 2021 03:09:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619161740; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Q8ibsUJr2Xw/0Bx+47uUdT7BpjL9CbRIh33qYka8yhk=; b=G63DP9uNTp1EdHBbtthf0ZcBi3qp0brUoYzACYBg1UqxQVvmo4qAZv+GxzfLQJqrTvDRLZ r0ecJlY7Pax0uZpNV/S6ryCxs078lJ5UNgktz1j5tJqZthgV1MC9GicA6aKzQDCrK67ydv 5MITLMRsBDxP7nZ8tG86s1OByUYDxmg= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-376-dKJb_9npP4GxitKr2F07hw-1; Fri, 23 Apr 2021 03:08:58 -0400 X-MC-Unique: dKJb_9npP4GxitKr2F07hw-1 Received: by mail-ed1-f69.google.com with SMTP id i25-20020a50fc190000b0290384fe0dab00so12539458edr.6 for ; Fri, 23 Apr 2021 00:08:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Q8ibsUJr2Xw/0Bx+47uUdT7BpjL9CbRIh33qYka8yhk=; b=A6tEct89koT2dERBv9LdDM/Lzi+ZvT5xYUqkP4BlZWNglShJhIOZim9GiUa17E9+cb XQCVVL+QfAfOwMFKbebwE/sh3l3s0t7U5Dwx0sQ+K0MPQWOe4D99tZYPC/6wnAN3ymf0 ca4ItOA+iE4r4CedcpahSq8wf1xpFK0RPIbwZ/kl/Uvh/IVQsQqxAqgBTMGYFh+h4vIM 1rKI+eBrZ1Zn8as3tVXML2rMAtOcpaaWte2yMz+sa0bT30uJ02P9mI3d6Uo+w6VgogY3 fgpBj9JHDu9R4uMzHmpUPT1roGd4dRq5zBbIZ+e30HmMc1BBEaSzgK5sdNbjRT5LgRua N2QA== X-Gm-Message-State: AOAM5320za8Dt869ptEy3qtNXg5FBxbXbUOJhGDoZWvhFmhbqxatpZsS Pn5Nitb7ZFWk5CjzwsG2+X7izMmdGRMC/g6fTusYNlbHSHbnkbem1k4z8Kn2v46BuJkx47rUhCs mK19eSNlkXS8VLdI3jdJDE/le X-Received: by 2002:a17:906:8407:: with SMTP id n7mr2602600ejx.264.1619161737479; Fri, 23 Apr 2021 00:08:57 -0700 (PDT) X-Received: by 2002:a17:906:8407:: with SMTP id n7mr2602582ejx.264.1619161737244; Fri, 23 Apr 2021 00:08:57 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id p4sm3890045edr.43.2021.04.23.00.08.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Apr 2021 00:08:56 -0700 (PDT) Subject: Re: [PATCH v5 03/15] KVM: SVM: Disable SEV/SEV-ES if NPT is disabled To: Sean Christopherson Cc: Dave Hansen , Andy Lutomirski , Peter Zijlstra , Wei Huang , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Borislav Petkov , Tom Lendacky , Brijesh Singh References: <20210422021125.3417167-1-seanjc@google.com> <20210422021125.3417167-4-seanjc@google.com> <5e8a2d7d-67de-eef4-ab19-33294920f50c@redhat.com> <882d8bb4-8d40-1b4d-0742-4a4f2c307e5b@redhat.com> From: Paolo Bonzini Message-ID: <0a00ee34-965a-0ee1-1e2c-7fda8e21ec9e@redhat.com> Date: Fri, 23 Apr 2021 09:08:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/04/21 20:11, Sean Christopherson wrote: >> Yes, you're right. NPT is easy but we would have to guess what the spec >> would say about MAXPHYADDR, while nNPT would require the stacking of a PML5. >> Either way, blocking KVM is the easiest thing todo. > How about I fold that into the s/lm_root/pml4_root rename[*]? I.e. make the > blocking of PML5 a functional change, and the rename an opportunistic change? > > [*]https://lkml.kernel.org/r/20210318201131.3242619-1-seanjc@google.com > Yes, that's a good plan. Thanks, Paolo