Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp14182ybi; Thu, 13 Jun 2019 10:45:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwb5jv3ik0OfBCFVoabVIuZpiSG+kgCJBKa7d/0tMk/f8+nNlTPO1Iy48XHw+ACZyurP6nB X-Received: by 2002:aa7:86c6:: with SMTP id h6mr57549833pfo.51.1560447954110; Thu, 13 Jun 2019 10:45:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560447954; cv=none; d=google.com; s=arc-20160816; b=Zxe8m6tpRldSX00Ww0A5jOr+3W/oX3CGubCTwc4W+hjDbxScfybRWBSeGsnIZ+2TQB xp8Bji8oxgelc9shYvB9xdqrUnY+vvygTbbkWCOp2MDpG6u12gQ4wJG9fWqhzY1RCdim Mfxl3mAt+c2uA9eWZGCBUHiXpsgpynQ2I8aWrDdNmNsAVJCTi69zs0Ze1TW2T6sy5/WV RodGV1XFbxcORlLAMpUURbXmQNDWx9Sp9PbHeIZhqwES7R1k2K6P3uGbkvYbPrgEA1Wq EhWTXvWTGQAlCQP0NvWAja0GVqafC3+aaa4exCvjPbQLn9kLTksqljB++frMdxZhnmQo DBFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=KbVzXUK1NN9/sw3hoYhD1GHtUrylzXfXjiAM/J+Brog=; b=NokBckTzrRiLuE8feARZtpnnxMBN9ImffT+Y+2te8QqRPq2VUvxpnmES9t8DyqWQcZ vJWBxb5BFR5xIVwVCR+X+pvbJHGYRySLo6kHkLnp8U7nllsGtPmOAPLnKl9/E4CJZDf9 Vzu4/rm5nhsdZKKCk7FjOn8NjSoaJOZDIE5ZdrZQR6xOzDqvJ15lybs18KXPxVlW/DXd ZZ3dVDLEkiv1ttgtXWpiAi9AJTS6sN5LVm/8yUOepSzBD+jdq59vlNCQIY3xMyAaQQTZ Uhg4nMwB4jW8sIjtqJmjs2Egryd583IU2pZyq+d34SPDVd/a0/WqjTqKf3JfiQOYEULl UKUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XElxIcOX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id l21si296532pgb.409.2019.06.13.10.45.39; Thu, 13 Jun 2019 10:45:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XElxIcOX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726968AbfFMRn0 (ORCPT + 99 others); Thu, 13 Jun 2019 13:43:26 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:39385 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726519AbfFMRnZ (ORCPT ); Thu, 13 Jun 2019 13:43:25 -0400 Received: by mail-ed1-f65.google.com with SMTP id m10so32386470edv.6 for ; Thu, 13 Jun 2019 10:43:24 -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=KbVzXUK1NN9/sw3hoYhD1GHtUrylzXfXjiAM/J+Brog=; b=XElxIcOXlFiOTxVzejT8v77VQGmn+wziJUEUa7uBdTmVPB3GQlqrq/i+WZ+W0yfxMJ AGWTCUBjBFVbjgKFTlcQbGcOsdU6UlVBEIbkhv2PqCPR0QTVNlQH3HGOWsft/lF9avoJ yVjk3wpVIuCOyimIPxq8XjoUi73mZirgNIWY4GkTsEiN98x+RF+PCqlqPZts5nG+ZY0Z Lidzym2SV0+4oYyVAGoEBGYstsP1m/t55omoaXEsvzTQx8WJN3mGHuWytvioC4Ht008N vPv9yQ4yP4re4lDf999mFYZKd8UbkkzdBZGvJsm59K4MByM2HkTud5FoYxkBWog03a8/ H3yQ== 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=KbVzXUK1NN9/sw3hoYhD1GHtUrylzXfXjiAM/J+Brog=; b=Ty9C+zVeNNMcLg3Npgn1r5y03JDQb5rmJGCvByGuK1Sdx3plMa/pkLRQzzlDhmtGdy yeZdv9q8e5BDhjO2hbWVeYzZqc8MCiNdbzwLSdQJ2z9w/hSrfJkZdrLgRn280JScPw5H PiM6Sg6VdI1AQZRbT9eYiRAfD9T7b5un55N0Da+8mVuq6iMe/DeKEJcJDf2hVApdqyaW /D9Pu7QnE6wkcwqLDZyG3ccT+uI783kVlEPlDf6c4O8TuRsqeHSDAxYYXmeWqwIw89R4 thxQ2XABU4p+EmCY64wL0Oe40oke201c17XragphTddmW/x5X/Id5P7/ooZpvo4D3snY M9NA== X-Gm-Message-State: APjAAAX13/5KNyAFsTDdal9jmEoYqRAaIbBZb8YVn1BdZKP3+eQVmAFB aLbBvKrCCIVNsl9aiztqEMq1ttoQaoHDuBvkBZXDFw== X-Received: by 2002:a17:906:9705:: with SMTP id k5mr43469018ejx.5.1560447803686; Thu, 13 Jun 2019 10:43:23 -0700 (PDT) MIME-Version: 1.0 References: <5CEC9667.30100@intel.com> <5CEE3AC4.3020904@intel.com> <5CF07D37.9090805@intel.com> <5CF2599B.3030001@intel.com> <5CF5F6AE.90706@intel.com> <5CF8C272.7050808@intel.com> In-Reply-To: <5CF8C272.7050808@intel.com> From: Eric Hankland Date: Thu, 13 Jun 2019 10:43:12 -0700 Message-ID: Subject: Re: [PATCH v1] KVM: x86: PMU Whitelist To: Wei Wang Cc: Cfir Cohen , Paolo Bonzini , rkrcmar@redhat.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Stephane Eranian Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since we aren't using QEMU, I don't have those patches ready yet, but I can work on them if you want to review them at the same time as this patch. The architectural events (minus the LLC events) are probably a reasonable starting point for the whitelist. Eric On Thu, Jun 6, 2019 at 12:31 AM Wei Wang wrote: > > On 06/06/2019 05:35 AM, Eric Hankland wrote: > >>> Right - I'm aware there are other ways of detecting this - it's still > >>> a class of events that some people don't want to surface. I'll ask if > >>> there are any better examples. > > I asked and it sounds like we are treating all events as potentially > > insecure until they've been reviewed. If Intel were to publish > > official (reasonably substantiated) guidance stating that the PMU is > > secure, then I think we'd be happy without such a safeguard in place, > > but short of that I think we want to err on the side of caution. > > > > I'm not aware of any vendors who'd published statements like that. > > Anyway, are you ready to share your QEMU patches or the events you want > to be on the whitelists? > > > Best, > Wei