Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5982672pxj; Wed, 23 Jun 2021 13:31:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/3Adflja/Lj7RNq2f/e+cNL4RPBZkYiTjx6gNvrWlip4p1pDN1IoNvr7NUTKRiDOKa7DG X-Received: by 2002:aa7:c44b:: with SMTP id n11mr2108358edr.83.1624480301008; Wed, 23 Jun 2021 13:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624480301; cv=none; d=google.com; s=arc-20160816; b=DF+4M8QLp9h0L6+IQhi6IqckvBmMOdfu/EZMcRc2AtcY9Ek0kGAfxI5equBDOur4oC ca1/Ujq4xXm7bl1OjpAq1lyr1jacOU8XM4eWVVrXFgr2SkEg0i4XneJZFoFjBW8Q9aGQ HcroHaOZCIZiLCpXKtdaJiQ2iU9egamqxaKXZ+QzmcgIYjT4qn4W8WckKdCt09Nm/fjO kEUiL8/XAGr+QSWPCnCMGBUwHfW1uSku5G4QigC9fGRR0sXVvLazCoq6yWBH8MeConDb XUCeRoPHacJz+m8rlqBoGBS6kxBzzJ6zJAGjig4r5Xd9yS9nWYlEdKMYHyjzMhmzScFn yIYw== 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=VaT9/cb+GLJShXE53czRupxUnvB/ruHdggf72qjOwGc=; b=nJV38O/k0/SRVF9qyTkB/WuamtirJ3nJ8McTcFlKIN417txgvgbONGxkkVwAoapwAJ KN+ZokHzTK/MviYEofHc/tNo43DaLqn4A12aJznC92s0PpEMuhE+IZmehk+IPHOA+WLf z1cWtpmnqDpaBvEbsdHvfit4JEwroyhMvMwLBQFDJmgE3/zItOxlTMWQEYhBZ2/tKb0q t8xD4GiuxQX+c5UFcrPtokA9I2Z911mGoG1g0n9FMQmGcTYZuQgNVayUjfGWoahKYx7w PwZIgp5+KV2s9vz0QnDhZM0Mj459jsyMY7GlAwQXzP4YcAinEWXZ9fAEJBSaP+L/GLGq Xz9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eB6RUjva; 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 be4si779355edb.319.2021.06.23.13.31.17; Wed, 23 Jun 2021 13:31:40 -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=eB6RUjva; 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 S229800AbhFWUcT (ORCPT + 99 others); Wed, 23 Jun 2021 16:32:19 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:39337 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbhFWUcS (ORCPT ); Wed, 23 Jun 2021 16:32:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624480200; 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=VaT9/cb+GLJShXE53czRupxUnvB/ruHdggf72qjOwGc=; b=eB6RUjvapw17OaFb6VDHVCD3qR4tIM91LFnEbLp8dJgknuQwfwvPWqXMJLC5+SSronZNbc GgufaSjKWnkOEcOQuzOBNncWZ/FEZZwgL+Z4yhewARuGzl/xexaKAj6C+8zyizh4OQB9x1 B0DL2I6Yq7Mf9e1ohyN4kcXdJEmQh5E= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-254-oNy0ln49P5muVkjOmBF8hQ-1; Wed, 23 Jun 2021 16:29:59 -0400 X-MC-Unique: oNy0ln49P5muVkjOmBF8hQ-1 Received: by mail-ej1-f71.google.com with SMTP id jw19-20020a17090776b3b0290481592f1fc4so1402999ejc.2 for ; Wed, 23 Jun 2021 13:29: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=VaT9/cb+GLJShXE53czRupxUnvB/ruHdggf72qjOwGc=; b=I0ewlNPL0VQdf4muhVVTgfX+vXFO0mPEGfBDVQnUMeeJgt465K03c+zguTkzsqQRJC BUQk82161gNB+C4cU/Zf96lrX/lCDLgT9kbFGchMf3AJvMD89Y4dgwMpzTude1RQrETy 2oM0F1pXQSZQ+kikGQ11cIDjIO0Vdi1Rw57EBa5lqOQ3zQzGQy3aj2YzNlXVpRohM9pP xVMVbJpldXgDgJAfACAIvUaVdyeFRQJ1fW7xWxueJ7g6SApgPK9xdGN+pAU1qf/St45z m1ksUCNF6+RY7CUbf1+MkxSiQYh/XR++so/qbWcVVdBvtaOnJ+V2wmHfKJmpykGgvLPJ UPUw== X-Gm-Message-State: AOAM532V6F18jpMdbe53GEkbQ7LcjYXKR2OCtEgBKpduGZ5395fKybd+ 8Q+MJrUrhyJXs4rbcsscgVguP2UC3zL9+AmjWxBtU+JG/r8NKmWfzGPBxIYwU73p6cnsnRTob7v Ya+NPgfgznTvEj4QeJa3lq03g X-Received: by 2002:a17:906:dbec:: with SMTP id yd12mr1844501ejb.102.1624480197621; Wed, 23 Jun 2021 13:29:57 -0700 (PDT) X-Received: by 2002:a17:906:dbec:: with SMTP id yd12mr1844483ejb.102.1624480197324; Wed, 23 Jun 2021 13:29: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 p19sm576655edr.73.2021.06.23.13.29.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Jun 2021 13:29:56 -0700 (PDT) Subject: Re: [PATCH 00/54] KVM: x86/mmu: Bug fixes and summer cleaning To: Sean Christopherson Cc: Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Yu Zhang , Maxim Levitsky References: <20210622175739.3610207-1-seanjc@google.com> From: Paolo Bonzini Message-ID: Date: Wed, 23 Jun 2021 22:29:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210622175739.3610207-1-seanjc@google.com> 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/06/21 19:56, Sean Christopherson wrote: > Patch 01 is the only patch that is remotely 5.13 worthy, and even then > only because it's about as safe as a patch can be. Everything else is far > from urgent as these bugs have existed for quite some time. Maybe patch 54 (not sarcastic), but I agree it's not at all necessary. This is good stuff, I made a few comments but almost all of them (all except the last comment on patch 9, "Unconditionally zap unsync SPs") are cosmetic and I can resolve them myself. I'd like your input on renaming is_{cr0,cr4,efer}_* to is_mmu_* (and possibly reduce the four underscores to two...). If I get remarks by tomorrow, I'll get this into 5.14, otherwise consider everything but the first eight patches queued only for 5.15. > I labeled the "sections" of this mess in the shortlog below. > > P.S. Does anyone know how PKRU interacts with NPT? I assume/hope NPT > accesses, which are always "user", ignore PKRU, but the APM doesn't > say a thing. If PKRU is ignored, KVM has some fixing to do. If PKRU > isn't ignored, AMD has some fixing to do:-) > > P.S.S. This series pulled in one patch from my vCPU RESET/INIT series, > "Properly reset MMU context at vCPU RESET/INIT", as that was needed > to fix a root_level bug on VMX. My goal is to get the RESET/INIT > series refreshed later this week and thoroughly bombard everyone. Note that it won't get into 5.14 anyway, since I plan to send my first pull request to Linus as soon as Friday. Paolo