From patchwork Thu Apr 3 21:05:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gabriel L. Somlo" X-Patchwork-Id: 3934031 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 748F79F387 for ; Thu, 3 Apr 2014 21:06:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9B59D202A1 for ; Thu, 3 Apr 2014 21:06:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 849D92026D for ; Thu, 3 Apr 2014 21:05:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753805AbaDCVFz (ORCPT ); Thu, 3 Apr 2014 17:05:55 -0400 Received: from mail-qc0-f182.google.com ([209.85.216.182]:48752 "EHLO mail-qc0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753737AbaDCVFz (ORCPT ); Thu, 3 Apr 2014 17:05:55 -0400 Received: by mail-qc0-f182.google.com with SMTP id e16so2524892qcx.41 for ; Thu, 03 Apr 2014 14:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=s2xmnRquo2BIShNj5F4l0po6sVxzWqCz/Ej51tzv1iM=; b=ZwjjHDACHyO1e53DITRmm/hRxWin/G3529q3SDen8kzTB7ndoUAt908E/uQTMg6eUJ krpAAs2Zkl8u3iC8ATSworyoZGfn65D0wDxQPBeCDV0P+YmTxjccMrTQit9zMfP2S7FG j91HysziGadJfaXxTMHKALHswuW0N4nw6E8PDr1El2av4HmUwz6Lh014aI716ng+ETeu 3dNtP219Eat8iYU0pQQKs4vI6axC+Xgv4H6iGafIuAPGBsdwxf2qcbl7sfNsQysXtMKl LEa3DCnH8BFY4AqiMyR+jXKoGKNZASRz8mzJnRLo+j2H1oKQq6JwLo11DPZGNHjA2Jpf RDlQ== X-Received: by 10.224.96.138 with SMTP id h10mr4735997qan.26.1396559153839; Thu, 03 Apr 2014 14:05:53 -0700 (PDT) Received: from ERROL.INI.CMU.EDU (ERROL.INI.CMU.EDU. [128.2.16.43]) by mx.google.com with ESMTPSA id b37sm8337487qge.16.2014.04.03.14.05.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Apr 2014 14:05:53 -0700 (PDT) Date: Thu, 3 Apr 2014 17:05:49 -0400 From: "Gabriel L. Somlo" To: jan.kiszka@siemens.com Cc: kvm@vger.kernel.org Subject: [kvm-kmod PATCH]: Provide X86_FEATURE_CLFLUSH for kernels < 3.15 Message-ID: <20140403210548.GA1602@ERROL.INI.CMU.EDU> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Gabriel Somlo --- Jan, Apparently this is needed to build the latest kvm git on 3.13 kernels (e.g., Fedora 20, in my case). Thanks, Gabriel x86/external-module-compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x86/external-module-compat.h b/x86/external-module-compat.h index d5e7269..3c41c74 100644 --- a/x86/external-module-compat.h +++ b/x86/external-module-compat.h @@ -228,6 +228,10 @@ static inline int rdmsrl_safe(unsigned msr, unsigned long long *p) #define MSR_K8_INT_PENDING_MSG 0xc0010055 #endif +#ifndef X86_FEATURE_CLFLUSH +#define X86_FEATURE_CLFLUSH (0*32+19) +#endif + #ifndef X86_FEATURE_FXSR_OPT #define X86_FEATURE_FXSR_OPT (1*32+25) #endif