Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3136819pxk; Mon, 28 Sep 2020 09:12:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynuqjWJcs1ycSASj/m/zI+sIg6CPJfjoS5qTzpcZv//i4WkrAM+RE9JyB15NCj0rgXrtTY X-Received: by 2002:a17:907:1047:: with SMTP id oy7mr2372605ejb.268.1601309523142; Mon, 28 Sep 2020 09:12:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601309523; cv=none; d=google.com; s=arc-20160816; b=miBVhWtrYlPCHmt1hLYPQd045q9SFPKxtXELk9tyjgj4WwtFvMIEWQZOk9036sdL/M 9IIjLdU8wvhE0fM8rP6VE+GwUaIh0plK7sdkSTsfl41nlkbDVWEubWPlvnieouuGlz8c xsbtPwQbGnOCyILECy2DOxDpzMxK6jrLoUU+thiaOEC44o6pzkkAnYFF/XIWXlQTw+Ld kdKIBLzAggs1PWaPwsW8NnJytKGB0G5+Jn3f7KK4SO2zS3Io9HtxfqFLZ69q8hGv8l4r JqkqjnAUdmoFaQ9ixYGIJgrPyVFSPhOmi2GX2OacHMPzL91fey4IVa/Gg7mOG0ZwrsoW xKzA== 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=ofB/nv2GCR1iBpmgOJtZPjrK0vaQJ8MfIT5aS/7qZSs=; b=bEGrRl84RchsA3jk6mOFU2jQpW7OicOCvYiB0u8lmwxOwpXs70PQ5ECOmZUrtJfYzu 6cVXXLknoyjrBUpLYt3ie/8PtMkXMG9AG33O98bug/sZWjR2dc/CYHtizV7Pt3F1NIH9 0Rue17pcy6IsdmdMoYJm9lUMhpWYkt7m2ir9mLKDkYsj6Md2K6EOVu96WNt9U6SqRc8L D6dpL2yniyC6B8k2ioE6Jqtc/cj3w0BBP1Ju9pdJk4kM6yg0WD/jSV8Gb74CgehLstho rCTpY6geDrSj0Cg6Tx+L8qlW16yo9DrfhFPznhN2gJBEGsfKjbp2nxO61ydfJnvdhhqg U6Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=TXz1uRJz; 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 n25si833910edt.464.2020.09.28.09.11.39; Mon, 28 Sep 2020 09:12:03 -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=@google.com header.s=20161025 header.b=TXz1uRJz; 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 S1726578AbgI1QIS (ORCPT + 99 others); Mon, 28 Sep 2020 12:08:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726393AbgI1QIS (ORCPT ); Mon, 28 Sep 2020 12:08:18 -0400 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD174C061755 for ; Mon, 28 Sep 2020 09:08:17 -0700 (PDT) Received: by mail-ed1-x541.google.com with SMTP id k14so1986107edo.1 for ; Mon, 28 Sep 2020 09:08:17 -0700 (PDT) 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=ofB/nv2GCR1iBpmgOJtZPjrK0vaQJ8MfIT5aS/7qZSs=; b=TXz1uRJzzB/pr3oAfTmpUw47xO1t1ZD/4Gzv3Nfj/orcUBgE+FvmSJa4zy1lbUKQjk UA8aK0zPsPb4AmNcJNfeH2DbKSXicWsSPqJU3NptPVtx2X2yi0/3QWsQA31pJYw2eEKO dITUIaCkl16BLjkTNOqPLxAV90OJfu/pbEO6BqjURT54nddvrNjoOX6nLfJ2DbtiqWvf UYNMKUdn66e7aqbNSgR14gvmqRpxzWFpo4kCvIcAnL3nKSaF+HGbBEK5Hg9af3V1x51o zwNDymM2jKoCD625YWKMYt4APTULrVTNbXLKgYgFFYmT4XkpPeXb2DbevTaKC3pSBnXW rtOQ== 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=ofB/nv2GCR1iBpmgOJtZPjrK0vaQJ8MfIT5aS/7qZSs=; b=mIQetCzDThFLUBwkg1GnRY6CuRfIztkN1jhFwJmAsZaojOjSpnQ8hzywhKiFq2TtWj VQbkMWRmVGQF2efll/wb3GlgERXq/jBowRYfk1BVcLhLizqaOvnUxPNqlLau0YsxiuF3 TR8cIsVjByZMhOCi0gNbjm818GOyQLccq3rttEbTkkaItpeu2dg8bXYci92AOiI73dbO T8PqtEvd0MrGrNGrk+HfXPG1CDQfSsnSTJR6+vQHDAmbT03Nux/P9ERZQpwvTxVP8u5v HtGUQVZIV9Scz9EJJrFTBTjUQMgRRZ+l7PYcDU7CIuiXggUhZ/XTydxSf3Y0lV28/eJn VnhQ== X-Gm-Message-State: AOAM533Xi1rjtWC7tIxx8eGhwywhux1fgCPguH165rFRasa+95i9BaNN y/7so7zatSjZUJjqXHG3Kj1L+/f3jKB/RXqP7NXldA== X-Received: by 2002:a50:e78f:: with SMTP id b15mr2645686edn.104.1601309296249; Mon, 28 Sep 2020 09:08:16 -0700 (PDT) MIME-Version: 1.0 References: <20200925143422.21718-1-graf@amazon.com> <20200925143422.21718-4-graf@amazon.com> In-Reply-To: <20200925143422.21718-4-graf@amazon.com> From: Aaron Lewis Date: Mon, 28 Sep 2020 09:08:05 -0700 Message-ID: Subject: Re: [PATCH v8 3/8] KVM: x86: Add infrastructure for MSR filtering To: Alexander Graf Cc: kvm list , Sean Christopherson , Paolo Bonzini , Jonathan Corbet , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , KarimAllah Raslan , Dan Carpenter , Maxim Levitsky , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 25, 2020 at 7:36 AM Alexander Graf wrote: > > In the following commits we will add pieces of MSR filtering. > To ensure that code compiles even with the feature half-merged, let's add > a few stubs and struct definitions before the real patches start. > > Signed-off-by: Alexander Graf Reviewed-by: Aaron Lewis > > --- > > v7 -> v8: > > s/KVM_MSR_ALLOW/KVM_MSR_FILTER/g > --- > arch/x86/include/asm/kvm_host.h | 1 + > arch/x86/include/uapi/asm/kvm.h | 2 ++ > arch/x86/kvm/x86.c | 6 ++++++ > arch/x86/kvm/x86.h | 1 + > 4 files changed, 10 insertions(+)