Received: by 10.223.176.5 with SMTP id f5csp1871488wra; Wed, 31 Jan 2018 12:55:24 -0800 (PST) X-Google-Smtp-Source: AH8x224rKrpuVbUX3aMTB2YoThljU4JZH5d4tn3e0lyvic8ytgcnL6nEdO/YhPmW8cFnnu2WEUHH X-Received: by 10.99.55.5 with SMTP id e5mr27245416pga.237.1517432124809; Wed, 31 Jan 2018 12:55:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517432124; cv=none; d=google.com; s=arc-20160816; b=ruQLCfDPOft08NAO11lWl7wPKj5VFDoiFcqSljBpjL3V7T15B56B6a7xdzPiDV79Zi WtZMHB2jD/l7SCVbneeJT88A7mgORKe3JjXyEz9ZL0XAGjVHat7d1o7X1F2xgpd5n/Gf y7ys5Luz5hzTwQQ+1/RAD8BBvCTLg1cPyP4qjopiBdnTIpttaNHKp+mLeQMMt+iqBubG x0WPgx5sUSLevt9zHdiu6jfbfc/SMxe8uHyW58m1tYWtqP7zZ5xFlXW79iUeKYGi6ChU igerRWjCyQaWqe2wPMtFoZhYN1var+aS2vqwK4i/EjAKcWXuuZcqiyRo90iUho6YpvIO deZg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=AuOgT+3KVetYN+BhNUFM233ISR79MiBMNCC256XBlOM=; b=uCGYA+YF68pXz+lYrMJy8d8rQXMaGCcjO+uW9VYur0+3UjtcDDkhYBDRrfLtl/JbJz yEadhsc7+591QfcYyg4Xc/+j2kadgYMWbQfzn8t/I94NVNVudbllv98pA1L4rqtMeBCF nbS3ppWIiglvXoxRV+ELUcEZVA2EHYrrGCqQilQ4hj2wjVAjjkn2V0Ctq6HPkwINhvER NX/Xm+uUFRU1101cNWNpLuyDVZkA02iIDLdlP7FXfpTz3g+G5epKbQ+hF3PbljI7EId0 thhftkW54/Eb3L5MrZxTm8invj2Zlyk1/e/0QaN4fQUfPiB6NL7snJzUTqv5k0xy3SJw hIeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hPFzt5PU; 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 b24-v6si99376pls.617.2018.01.31.12.55.10; Wed, 31 Jan 2018 12:55:24 -0800 (PST) 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=hPFzt5PU; 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 S1752304AbeAaUyX (ORCPT + 99 others); Wed, 31 Jan 2018 15:54:23 -0500 Received: from mail-it0-f43.google.com ([209.85.214.43]:40861 "EHLO mail-it0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751586AbeAaUyL (ORCPT ); Wed, 31 Jan 2018 15:54:11 -0500 Received: by mail-it0-f43.google.com with SMTP id 196so1172771iti.5 for ; Wed, 31 Jan 2018 12:54:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=AuOgT+3KVetYN+BhNUFM233ISR79MiBMNCC256XBlOM=; b=hPFzt5PUddeUOwdD8V7XuyJPQxsTCZyeynkGxWcNfZQm//sLd6652KpBadTmD3bC30 /Q6/u5ekRkkgRjHwvhVheF1y2VApovuOTNA9h7EM1hpogwvchSfhajScBU+oZUwS3FcS g0cNfh13NWVYtaJk0EhFU4dCk9pofowSU08ctdP+wmcY4s/4H7hfFOuX1NNcXeZCAZlD 0Itzz12+GdRxu3d/jFHIeK3UwouXLo2rvIN8cu2532f80yASae9M8w11bBEDcs0Dkz9M uvf6LPYS/ztnnW2Zfu6df1DG91ud4fbUGUPUaP/7qLehE1uH71VEds9QILIHylafWfSm hsPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=AuOgT+3KVetYN+BhNUFM233ISR79MiBMNCC256XBlOM=; b=AERYw/CgjjTQczOOd7O6y0bcDh1jNcTu6mvB1UPEK5OoSWDDO0vBCVokhAO22ebu6M +33+CfR9sqOKdb0q9rL/1gCZHvl8uQZHpSrRIPZjcpXWmIFKSEh8BZNd2QD7f1X7xudM +hCCB7h7liopxMwbfZgmChbYdvtSU9gFRIlYl1tCznLbYGwl0EFIyOKXJU+14uoQcg0J Y/em2Gh7Itycp48Y+6I+ut1FPlQqJf7+OryAlnbzzk7KkBdoe211xtSAi5gh2LPT8Eky 17HdP1kAt/8murzPyatdXI1p8DDmMEo9EmRs97juBMR1tT5w669kWB9O+juKGmHdJU1N /7aw== X-Gm-Message-State: AKwxytemKvSdPUjmj5kNp18wDJ04bqZ/ap2/QE37vPBxVa3xZadbDEjK xPClG+eINfGODAMYYtiKNVHLusC46hEfNB2w/mdueg== X-Received: by 10.36.4.82 with SMTP id 79mr8509417itb.89.1517432049774; Wed, 31 Jan 2018 12:54:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.128.7 with HTTP; Wed, 31 Jan 2018 12:54:08 -0800 (PST) In-Reply-To: <67dca2bb-1298-c7fa-f681-018e4edc6725@redhat.com> References: <1517427467-28567-1-git-send-email-karahmed@amazon.de> <1517427467-28567-5-git-send-email-karahmed@amazon.de> <06cb88da-f355-41ed-380f-7daa8ddf6159@amazon.com> <67dca2bb-1298-c7fa-f681-018e4edc6725@redhat.com> From: Jim Mattson Date: Wed, 31 Jan 2018 12:54:08 -0800 Message-ID: Subject: Re: [PATCH v5 4/5] KVM: VMX: Allow direct access to MSR_IA32_SPEC_CTRL To: Paolo Bonzini Cc: KarimAllah Ahmed , KarimAllah Ahmed , kvm list , LKML , "the arch/x86 maintainers" , Asit Mallick , Arjan Van De Ven , Dave Hansen , Andi Kleen , Andrea Arcangeli , Linus Torvalds , Tim Chen , Thomas Gleixner , Dan Williams , Jun Nakajima , David Woodhouse , Greg KH , Andy Lutomirski , Ashok Raj 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 You seem to be making the assumption that there is one L2. What if there are 100 L2s, and only one has write-access to IA32_SPEC_CTRL? Or what if there once was such an L2, but it's been gone for months? The current mechanism penalizes *all* L2s if any L2, ever, has write-access to IA32_SPEC_CTRL.