Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4197363imu; Fri, 30 Nov 2018 12:42:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/VuuT2yd5gnsdKresd/LIh2EW/8nlVjt0unWgShcemnONUOvGD0uwP8kf2OYf23Lsb9OTiz X-Received: by 2002:a63:ae01:: with SMTP id q1mr4750922pgf.402.1543610577488; Fri, 30 Nov 2018 12:42:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543610577; cv=none; d=google.com; s=arc-20160816; b=ZQq5twAS9iUdUry1Ek2ZjsX7PIQFNC7yBEIo52fGsO99Kvq2Ltvn/nGRV6wP2KyZwL 0wvD9fFrVP0oUw/edPK+fPK8BkEt7zTU0pUP+G1B7E+eS4bJN6xaLa8+QLxFgIelUao3 RT3mOcl7tvUA2VNuUrY1+f6ttERIkRoNSG17/mU7uHxgrX8nVL6ZpPNDyVGzAdsPqXk6 76lpqC3VFVHgj4Td68azG78DHsv3jiSaxcMQncHkPG9q6sdbqn+Y1IRYiB87cz9wfMHk vaNPH2xZMpJqINBAfcoekUELyMPSKM3h2xSeGfx6MTh6am3GAStkPGALKKURI7j0RLfQ vCTQ== 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=UGzlbEHyQpRjNgnk/y53o4YKfWhvlK/jvTzIurpOwYg=; b=rnEz/vcmiozXbvnNneFEPImu80pX4isMQljmE0/r+ZmLepkX0Xy+/fuB7N+g7ogu6n Be1/ugEO3JioQJuzkfTI2+TwoMPQVQdbDfJIFJdr0+vyv+1TBYTRF0P1OeBPAxAjkH/T k4ltdNdvDG+0DovzXJdEKDTLDosLdMFX5yrtX1551OXjqGBKzhgY1UUovLVd4VbVgE7h n62N03mH3kjwTPsSFHWaVO6stsrEQ5Wzt9AWSX1AvBVKf4uGqaYRtyMkhBRuCNfnIPwT +162dmtL3XnJ+bPq8d/SDyLa7Er0O5y3CdeROMosmh4U/y0hGmVuviUuF5z0fhVdPUfz fO8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=tSkaYdTj; 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 z86si6605258pfl.209.2018.11.30.12.42.42; Fri, 30 Nov 2018 12:42:57 -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=tSkaYdTj; 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 S1726595AbeLAHw0 (ORCPT + 99 others); Sat, 1 Dec 2018 02:52:26 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:53984 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726078AbeLAHw0 (ORCPT ); Sat, 1 Dec 2018 02:52:26 -0500 Received: by mail-it1-f193.google.com with SMTP id g85so455294ita.3 for ; Fri, 30 Nov 2018 12:41:55 -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=UGzlbEHyQpRjNgnk/y53o4YKfWhvlK/jvTzIurpOwYg=; b=tSkaYdTjxjAFpitoB+emWiZ/Vd/S3V6IOp31KAReemBv/ZNsiapinXAIMlMtdgW8IP jMf69dknA9PF7TFlz+iEA0SE2R2tnbR9SfN7QZdcCgX1VsyreAlzHpPw9LHhyWquN0tv oGv9XVGMFXJVldF0fWXdcjbtte37tp11Qy6KBcUj+4+4YfJ65L47eENhFzhnKGXZymAC af8Hhe2098w017RAJOrUD6dMOL0Htd9mhiYPGbroJZ/x1cQQGKm7fQISrmEDukkP3J1a njUFqro3rfM6xpLw4KV+0dcYBUQIOoLY0LBWeT6VScBiW3vLT7xLi4LeQAIsOFs8PjMb 2B/w== 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=UGzlbEHyQpRjNgnk/y53o4YKfWhvlK/jvTzIurpOwYg=; b=rZG6f7xLJXATLwqCIRDEdb1v5LJKT9rpnueRrXWsypD66L3dWxf8ugEhkCyOGOA3Hy 4sUUBRPgleGKOKUt6RgWXKblQaw6+0s7wxp/CLVtgfsXIZNEIKzktilZ8+Alf807i7TX pdkSVmpTPVXSrEmMeiyBHKXLCc+9crrE9ByjbsKmLbfGLI24z5ync87xRJtiRSF+XCUQ bXvqkfEVSGepwrGqkeBEBJVxTFipxy09vui4i35gtoVqX5TaKvnlymHiuOO3XCfxzuTG Tbf4B1MT9YUnJWg1cET0if+qMH4BJlSLl5HZJGWPlAZy8zGdQRWWdGr2WH7a0PReN5Er nT4Q== X-Gm-Message-State: AA+aEWbikR75E53YZ/eRs0FMbdFM5V5F8Run/a6Slgpb+QSHxeFtzm2a 8Kv3fhVMbrR7YP/AhaWLyZiSGHfpdI+oEB1D08mMcw== X-Received: by 2002:a24:6e88:: with SMTP id w130mr244126itc.103.1543610515315; Fri, 30 Nov 2018 12:41:55 -0800 (PST) MIME-Version: 1.0 References: <1541483728-7826-1-git-send-email-jingqi.liu@intel.com> In-Reply-To: <1541483728-7826-1-git-send-email-jingqi.liu@intel.com> From: Eric Northup Date: Fri, 30 Nov 2018 12:41:44 -0800 Message-ID: Subject: Re: [PATCH v2 0/2] KVM: x86: expose direct stores instructions into VM. To: jingqi.liu@intel.com Cc: Paolo Bonzini , rkrcmar@redhat.com, Thomas Gleixner , Ingo Molnar , bp@alien8.de, "H. Peter Anvin" , "the arch/x86 maintainers" , KVM , Linux Kernel Mailing List , tao3.xu@intel.com 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 On Mon, Nov 5, 2018 at 10:01 PM Liu Jingqi wrote: > > Direct stores instructions MOVDIRI and MOVDIR64B will be available in > Tremont and other future x86 processors, > and need to be exposed to guest VM. It seems like KVM's emulator should be able to complete these instructions to emulated MMIO before exposing CPUID to guests in any default or supported configurations. It'll be much simpler for usermode to implement that property if the KVM-reported supported CPUID table doesn't get updated before the KVM emulator does. -Eric