Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4110759imu; Mon, 10 Dec 2018 13:19:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wt/yCYKeWUaQ+W+2R6lXHKgogE/pXdDAWN8+8gF2DgT/V8dd5OjHD10bf/DmJLTdH4qVjG X-Received: by 2002:a62:c185:: with SMTP id i127mr13972242pfg.43.1544476779781; Mon, 10 Dec 2018 13:19:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544476779; cv=none; d=google.com; s=arc-20160816; b=oN/D7sZGUR3r5cYfuQmBC5tCU3xnx+TU0s3IxxTf0DT7qpphhyvjfJrQ4zw1H0D0ag RGVgMm1v2AflkZ1r78uDVmEGnQRV/8z9NhS+JmwkySOjRrVG8xY+7YfAprNvFjmzjWj3 4STn0wvSAWXT0XKx3uMN3DOhcOZVxs5+tyQiQ9BJkiZTadrMKY0VqXxwZHdmryJQUIog oilgwgUBDA3/8Qbyhr7aYSm0sP3/Bqi56McUtixfyPipMs/L9zOtT7D4bxoBIQ/iQMfr RFVZuvciSynbwpb6v3a/7EgLsnVeyeh1tfJLm2d2fdfx3I4Kfmd50MiK64Da81evFz0x sjPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vj7opvKFJ/qwRQzu1phOMo8xQLv1D6RsCqBdQq7XrlU=; b=ItPIVkKbdWfSTMZjuZL/Ogs1OcACOM2/yaaWR3NG8SfWO3kb8ROwAaQYrgzrBIg665 EH+jE+a/coRgg4TFRafkUCQ8iBMvCH7xBPuDL4lMgQ1rYujy1wsiYBUNK3ZZXjhPwDfQ uRQR1zkWWbtTt1/pfifPLsb1H+q0EN6aF9zReNcoLRm8OrFnqZ+dk4XG3EbBgg/fvwJb JHAVyOFEsUdMcL1ETows//TUJ+NibgapH5Ws6dto8gM60TbNy1OGB8QAbsdFKq69evXx BxD4cGvJOBmrAqgg4STDRDR3b0tjjgypaA79oecTadfsC9qs3JvFW7d6ChJplTgsjnyW yhdw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k186si7351709pgc.576.2018.12.10.13.19.25; Mon, 10 Dec 2018 13:19:39 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729074AbeLJTGD (ORCPT + 99 others); Mon, 10 Dec 2018 14:06:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34218 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727221AbeLJTGC (ORCPT ); Mon, 10 Dec 2018 14:06:02 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AD3B83082E55; Mon, 10 Dec 2018 19:06:02 +0000 (UTC) Received: from localhost (ovpn-116-63.gru2.redhat.com [10.97.116.63]) by smtp.corp.redhat.com (Postfix) with ESMTP id E8E4D5D717; Mon, 10 Dec 2018 19:06:01 +0000 (UTC) Date: Mon, 10 Dec 2018 17:06:00 -0200 From: Eduardo Habkost To: Borislav Petkov Cc: Paolo Bonzini , =?iso-8859-1?Q?J=F6rg_R=F6del?= , Andre Przywara , kvm ML , lkml , Tom Lendacky Subject: Re: kvm: RDTSCP on AMD Message-ID: <20181210190600.GK4669@habkost.net> References: <20181210181328.GA762@zn.tnic> <20181210183730.GJ4669@habkost.net> <20181210184153.GB5482@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181210184153.GB5482@zn.tnic> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Mon, 10 Dec 2018 19:06:02 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 10, 2018 at 07:41:53PM +0100, Borislav Petkov wrote: > On Mon, Dec 10, 2018 at 04:37:30PM -0200, Eduardo Habkost wrote: > > It isn't as simply as reverting commit 33b5e8c03ae7, but we can > > surely re-add RDTSCP on pc-*-4.0 and newer. > > Sure. If you could only point me to an example how to add that to > pc-*-4.0 and newer, I'll gladly cook up a patch and test it. > > > I thought we added documentation mentioning the minimum kernel > > version required by QEMU, but I can't find it. In either case, > > it seems reasonable to require Linux 4.5 or newer on newer > > machine-types. > > When you say "require" does that mean, one puts it in a text file > somewhere in the qemu sources or do we enforce it somehow? I mean documenting it. We already have code that will print warnings if a feature isn't available. See my previous attempt to document the minimum kernel version at . -- Eduardo