From patchwork Tue May 6 18:35:06 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: 4123771 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C8736BFF02 for ; Tue, 6 May 2014 18:35:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 111E520260 for ; Tue, 6 May 2014 18:35:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DEC9920220 for ; Tue, 6 May 2014 18:35:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753863AbaEFSfK (ORCPT ); Tue, 6 May 2014 14:35:10 -0400 Received: from mail-qg0-f42.google.com ([209.85.192.42]:39135 "EHLO mail-qg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752062AbaEFSfJ (ORCPT ); Tue, 6 May 2014 14:35:09 -0400 Received: by mail-qg0-f42.google.com with SMTP id q107so5290418qgd.15 for ; Tue, 06 May 2014 11:35:08 -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=BgHQ0KnSPHpOQUkgEDop3OAEOGu5DPNxGTf21NW5IrY=; b=aAk3W5DyONwAXc4f6aqc0+2uA08S+nrz7e0HBZYQcqi1lOJ5y/NpJJFbhajYuoHVkD VW3FtXzfJLqgICsS50MLv7lmpUwoNlOmX1C+Ds9j0NSf6KwZJdonyn1syIa3M2eY8Wxt jrfUwyQ6H0zsN+eP3R0pGm4bHZY/YqJJ00Y+O8q2Ake5qZuRe0PTOLg8mADqQCmAtmuD DOO9qCZm9zr7oApZO6o6IYnQcHKEZlPBNrVD0CkF6IYZ1ZCxY8kJAXyzfZP3jfvQvP4T +6v0gOd6RELYm56N5WWG68fqtffufPLL82I1I9aRFtyy14P8NiO7duDVfNEBcVj1jsBY qciw== X-Received: by 10.140.92.131 with SMTP id b3mr52045055qge.41.1399401308426; Tue, 06 May 2014 11:35:08 -0700 (PDT) Received: from ERROL.INI.CMU.EDU (ERROL.INI.CMU.EDU. [128.2.16.43]) by mx.google.com with ESMTPSA id v44sm9419759qge.13.2014.05.06.11.35.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 May 2014 11:35:07 -0700 (PDT) Date: Tue, 6 May 2014 14:35:06 -0400 From: gsomlo@gmail.com To: jan.kiszka@siemens.com Cc: kvm@vger.kernel.org Subject: [kvm-kmod PATCH] Provide pci_enable_msix_exact() for kernels < 3.15 Message-ID: <20140506183427.GI5644@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.4 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, After today's pull from kvm, I also need this to build against my Fedora 20 kernel (3.13.10-200.fc20.x86_64). Thanks, Gabriel x86/external-module-compat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/x86/external-module-compat.h b/x86/external-module-compat.h index dde9463..e62486b 100644 --- a/x86/external-module-compat.h +++ b/x86/external-module-compat.h @@ -1480,6 +1480,11 @@ static inline int __register_hotcpu_notifier(struct notifier_block *nb) { return 0; } +static inline int pci_enable_msix_exact(struct pci_dev *dev, + struct msix_entry *entries, int nvec) +{ + return -ENOSYS; +} #endif #ifndef MSR_IA32_VMX_MISC_VMWRITE_SHADOW_RO_FIELDS