Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3133435pxk; Mon, 28 Sep 2020 09:07:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLPYvPTyTb+v2dQ0/Vv7TOnBldCEu52BGlWUFgZGe587FjbVAsLRO9P7k71ehn8bhqXsG5 X-Received: by 2002:a50:d802:: with SMTP id o2mr2637958edj.152.1601309259023; Mon, 28 Sep 2020 09:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601309259; cv=none; d=google.com; s=arc-20160816; b=UmQqvHVjgwgtttNS7TFPh1e7IIIpwjMDW/3faXJRc3vHIiRhcNxl1ca6gYRynaJn4I 3i1iJPaZVbdWD+r3j1PRWfyAC+SQBiNfYlWihd0jMeaWkjRmCDFh07of4b0fY+QzyxWx TD88dltoJCN25ii7ppsUHoHOR6qYXw5wpmpbLUbJRmhHKabSQDFFjTILuzviROXZfYaM VHhWqKm1zxZuiSEXM5LAgjNaOEU0k18joCykhoUyvpfU9sIFTgKyVZNnZ0t1RTjbYUVc Ksleg6yEolnc92iRE7n1yD3oxtHNxB1hThaRgGNgaWz2WZt92vc63x1JX9PUP0RUnHP/ jtKA== 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=o71LzbqX367JaJH9ttdwJUvGzrnJxktn3m8pbVRAwzw=; b=pO8ZWjwjq+pLe8bXeSPZkf8PVdDEMBCb6AClIwU0r5GC9hwLBTapfoBeCUhHAfgpU2 qiMK3wxKM9qaU7sGaNDlesneN4l02teiIeUBST8YCXdAtuc2jnkARKG78qu6REOn6Cer o0wfBGymJI+6LLxMoeN0d1mb2M694SImdeZzsL9DviMvEpxXaylXQFttuGDUJu/8nIFd H1BTkmIVobQhp1ME0gWCarJRX4g9j+51Gt7VuyXVj/ES8eh81Jpt+hk676SM9yFku8jn UllXuI4Q6I75QrUJs7KxEHn4Q/PJ41G+7En6K46I7D995oOt3HSRBXDmndZuvcJpsSbn Zi3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fvsDnXfK; 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 s3si894421ejv.383.2020.09.28.09.07.16; Mon, 28 Sep 2020 09:07:39 -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=fvsDnXfK; 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 S1726573AbgI1QGL (ORCPT + 99 others); Mon, 28 Sep 2020 12:06:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726409AbgI1QGL (ORCPT ); Mon, 28 Sep 2020 12:06:11 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6399C061755 for ; Mon, 28 Sep 2020 09:06:10 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id gr14so9349771ejb.1 for ; Mon, 28 Sep 2020 09:06:10 -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=o71LzbqX367JaJH9ttdwJUvGzrnJxktn3m8pbVRAwzw=; b=fvsDnXfKUBOAXccBDwFSPn5D6Csgk0G1mHyAUd74eUxAq5zR8163TbnodrFpDHFksK q2UiyDX8dhCNVWDabaAhGk6xzfG4SXk1cjcB+qzfJ7yDn1xhigkN52Szo+wj1QDppJZy SQIg1zSkc4EsBC+GeqRxR6kysSFmHW8aanRGoDDPzu+9MkTBuf1hXhNNXN+d3nIR/hOU 1p+7sGA15/ttgAVlsAnYSh8fZUQuiNAtvq8tEXBc7wT+Dzt+eNRle4hU6ePzLCSiumPP 94zV7qksW3cZEgcTnZWteH9J53JSPSP4z9MrIiYAh1NbGG9saHFBAmXyiozR7L2/MR6P ARaw== 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=o71LzbqX367JaJH9ttdwJUvGzrnJxktn3m8pbVRAwzw=; b=qGWcJXeHWMj9cr2XecBUdtvdVBIcYVPzteHsjS3EfdPsY1gH4GuQj9vuf8cO6IrZ5j A4wklaAjh0bivklmNIgvOaM8Xie0VItHAQgWt9HAkkLl7BPLucRaZFnBhxEY3RN5O4MV CsuV5g6nNywm6v/cJ9FQqaG90OeMM4RGp35vFZ4fizZNGrh5ih5CGZztLBvJdE1ZeqEw 1GZqA140iJ0/t9r779mtUg3yILUewKLYYTvqaGQAVuwx5MUsd6E6UN1pysV01LABSVJw Oi+dzUh38/8bwuZE0BH6ltcSrg91DkFniMUDKTtM+cKfnixIn5tqAHnoUymzUhKfFtlQ qJcA== X-Gm-Message-State: AOAM531KbkvfhtO7v2muqJdgsbpRlq4eAFQHaxdKBeADII0h9c0yfwp0 USB3mgCwuWESmmezULP8AWEm5VVAbRVwUByfAB9/Cw== X-Received: by 2002:a17:906:3e08:: with SMTP id k8mr2297800eji.480.1601309169232; Mon, 28 Sep 2020 09:06:09 -0700 (PDT) MIME-Version: 1.0 References: <20200925143422.21718-1-graf@amazon.com> <20200925143422.21718-3-graf@amazon.com> In-Reply-To: <20200925143422.21718-3-graf@amazon.com> From: Aaron Lewis Date: Mon, 28 Sep 2020 09:05:58 -0700 Message-ID: Subject: Re: [PATCH v8 2/8] KVM: x86: Deflect unknown MSR accesses to user space 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 > > This patch adds a generic interface to handle WRMSR and RDMSR from user > space. With this, any future MSR that is part of the latter categories can > be handled in user space. > > Furthermore, it allows us to replace the existing "ignore_msrs" logic with > something that applies per-VM rather than on the full system. That way you > can run productive VMs in parallel to experimental ones where you don't care > about proper MSR handling. > > Signed-off-by: Alexander Graf > Reviewed-by: Jim Mattson Reviewed-by: Aaron Lewis > > --- > > v1 -> v2: