Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2589511pxb; Thu, 11 Feb 2021 17:08:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6gT9I2limWPheK6FtUjdR8sk1x8F4joNrwrJpi43Ln5DeBNmsmxXTQ20hgUczf6+qGi0c X-Received: by 2002:a17:906:19c3:: with SMTP id h3mr425053ejd.429.1613092099888; Thu, 11 Feb 2021 17:08:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613092099; cv=none; d=google.com; s=arc-20160816; b=ATW3Cazv2bPP7tVVmm6bbojdw2PRBRWfMAwy9NH8p+5QnodbAY7c1tFh/Pvf9Xgfgz 4XgOTiCFcC6WZsOl2fRrhmcEHLtNzWbSxZuA7Fz+/Df++S5cELiEUHl3itGWmdWnSOgl sLUhTNYdC0HnvJY7ffXxIHozvAUlbwZvylaeP+JxP3f8PKfudDYB0KeDdVPPxUlB3Qb0 PTXl551xCDi+hUs5JCLAchFtXxSBQNb2x4og7hv4wMpUb3ASYALcNzFRCKN7Pd2c67DP c/cFL48oz8M/UfRrcEYa4QPPGJUsExg1N96WqOfcabik6Sh71H3553gqfj30OWlTWWeI 0eYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8YtrUSFE4UJxIRgtprGaYSyVbZ5RUtrrAW9L1A1aPAM=; b=tURvavtUw6pGF7S27Crd/1mrfLEEQilSQ7DxyyKRGxcs1b1RWQ4NLWjpvnZZO1nYl+ MpQoAraLqbgTJSBHXesClGkP7A+yiZoNbOBZzifGbPm0guRzrWjdHU2/m+BYK0tt8ud0 0C0IqiI+rgo++tfH//DHxCT/EISowKSpI3PIo2RV18FL7i5l53mrbE22oRBOdjvY93Bu tKH88nNZZ+czrC85LhzmoXszbAtmS1IU48jw9+Gw97SIPeTAISrVfjeK1deJjC62bLDL lvE+4ucanlBWRGrwh63NUUsydCA6Xb6MD/c7t2u+3e68FRLog/83QJpaEsCzRaYGshlm U2YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="aNEO/kRl"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g18si4909244edr.381.2021.02.11.17.07.56; Thu, 11 Feb 2021 17:08:19 -0800 (PST) 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=@google.com header.s=20161025 header.b="aNEO/kRl"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229797AbhBLBCL (ORCPT + 99 others); Thu, 11 Feb 2021 20:02:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbhBLBCJ (ORCPT ); Thu, 11 Feb 2021 20:02:09 -0500 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25982C06178A for ; Thu, 11 Feb 2021 17:01:26 -0800 (PST) Received: by mail-oi1-x236.google.com with SMTP id f3so4590515oiw.13 for ; Thu, 11 Feb 2021 17:01:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8YtrUSFE4UJxIRgtprGaYSyVbZ5RUtrrAW9L1A1aPAM=; b=aNEO/kRlojFeLEP0qjB/cvQQntewciuY7gOlX5Ut+MMKNwBaRnN3hRur6M2YQJ5y9Q /W66JF6PWlKAHDA1g0/VD9Zle6jAp6s4SfbMXMNTrLpHXOTp3tsjySfTJ+dhWW3Z2S5D uyPGFySWIYZMh82pa3sZG6IXH/82xKew7RCP8R78lIMatjIME6vpfpjnHifxjP99Iffm 1ihZybbbrwRxpWw+/vw2lDBdDIjdN5IjzO95mpVdyCxqKVde0sqCoGDnSABKMLLEP3DQ 0Tt1w194wddNSqG6ZhGp8W1id3KtZOKG/0zi9aaZFtsRT22Fuan8UIKRXhac4rSx9kNV 0BkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8YtrUSFE4UJxIRgtprGaYSyVbZ5RUtrrAW9L1A1aPAM=; b=LmcIq+QO9xea3c9RZu+3nunTN30TtcT82ldP7YKLQin5DBYZNMv97l2oTokj6YLzyL 8W8b6oCqZWkOkXMECT0F0fXhEkSR4yk4ZJ3+Srh5c6J8P5mUANg9f/oitwcCE8yCSpyw CxBZ3HmNa3uUh0yraYDn7OUc9y7PNoBmntVJFdN+F/t6CdLm8S1I5xrC/16Znhf2mhSp /CaWMOP21AFcHHmrOuUFtz65oyzUsNt+vASoXye1H6xF6YgK/8iN+FD/rsvHiTSg3B2O SzzSXeYqltJDxL5fEyIT9zJ9wbMcLdvY9Tqr7xKaWvPXID/MQk8YoBGWlk2zVL6npODS RSqg== X-Gm-Message-State: AOAM5324KOzuDEHT3LiKSjHCsm6b+tbt/how5czcF97qA5rFQsHBvr9d TfKytWN8yfMGMbeD/JAnSPfmjua727zy0Kgs+b7D2g== X-Received: by 2002:aca:5008:: with SMTP id e8mr344509oib.13.1613091685350; Thu, 11 Feb 2021 17:01:25 -0800 (PST) MIME-Version: 1.0 References: <20210212003411.1102677-1-seanjc@google.com> <20210212003411.1102677-2-seanjc@google.com> In-Reply-To: <20210212003411.1102677-2-seanjc@google.com> From: Jim Mattson Date: Thu, 11 Feb 2021 17:01:14 -0800 Message-ID: Subject: Re: [PATCH 1/3] KVM: SVM: Intercept INVPCID when it's disabled to inject #UD To: Sean Christopherson Cc: Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Joerg Roedel , kvm list , LKML , Babu Moger Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 11, 2021 at 4:34 PM Sean Christopherson wrote: > > Intercept INVPCID if it's disabled in the guest, even when using NPT, > as KVM needs to inject #UD in this case. > > Fixes: 4407a797e941 ("KVM: SVM: Enable INVPCID feature on AMD") > Cc: Babu Moger > Signed-off-by: Sean Christopherson Reviewed-by: Jim Mattson