From patchwork Fri Apr 8 20:28:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 8786061 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 29B3D9F36E for ; Fri, 8 Apr 2016 20:53:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8098520222 for ; Fri, 8 Apr 2016 20:53:21 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DDFC220218 for ; Fri, 8 Apr 2016 20:53:20 +0000 (UTC) Received: from localhost ([::1]:58255 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aodP6-0000rq-A4 for patchwork-qemu-devel@patchwork.kernel.org; Fri, 08 Apr 2016 16:53:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aod2K-0004T8-IB for qemu-devel@nongnu.org; Fri, 08 Apr 2016 16:29:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aod2G-00028p-EJ for qemu-devel@nongnu.org; Fri, 08 Apr 2016 16:29:48 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:36486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aod2G-00028g-8T for qemu-devel@nongnu.org; Fri, 08 Apr 2016 16:29:44 -0400 Received: by mail-wm0-x241.google.com with SMTP id l6so6825107wml.3 for ; Fri, 08 Apr 2016 13:29:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=tzSyLWjcb5oaHBAJc0t+lnv1QlqFatCrpZmYyUp+voU=; b=x/JSJtf1QB3ztxInxr/K56nDM28e5L+Y+W4T2Lx+m5dyEwrU/B245yzAVKb6ACKkyt NVRh6HtSLj6kQZuBaN6CBZRUANa/w3y7OT7JyQ55q+WCDWma2YZ3/Q454D0yDPyDWfJ6 gh7kHwanZqcAlmQSSDkNVMrHEUTBbdwkNpvFpLgAtvOPLBGNKHG+K2WWH8BemEXv+Z8H ZBV5JMNayoC8+qECfLAkm+6kjOBy36WcouTCWuGED1LKrQxbPqTwqw4WVBBRawRp0/G4 d3Ts+FKWEPwTUoAF1Bs0nRs+CAqdsnewqLC7/pJKuDowewBnnXCqiga4pppbL/2jiY8D U2cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=tzSyLWjcb5oaHBAJc0t+lnv1QlqFatCrpZmYyUp+voU=; b=OjF80TArxBE/y6PdpW0dLLlG0F2EwxkINTfdyMv9O9oHn5qFdIIyGtibQEvZ+Awp/G yfv+Xl+KGqSB18UiQMslBHfMu04hAkDkwHDFrZ7Uwax3uPvwvgJrVQJZ5c1rWPVHfS2g DNvPYK/ffcUHKIfxqKlPbzIFF7CnOlU91PrqStVReY57m9C+bgIzi1w6Fsr27G1ZIbcy 61uEY+iug4YbDOyo6C/LyHlmbQ5yC1EgJs/IfvRAyIFKO0GzRRpIhGBTHAlkUJUj3h4y 1QbMTkKpGHnt+l1i9BUzR03a8nTa732t9MDjzdRj/aFKXVWf+R98RYZjGzOga2p7QD37 /FeQ== X-Gm-Message-State: AD7BkJIiaxj6rIn9e+0U0xqSt6Wz8R2Bc+CJEZ0ZyBC7KdZlA3JPrG6lbnwAW9/ApYeWYg== X-Received: by 10.28.212.6 with SMTP id l6mr5640434wmg.21.1460147383741; Fri, 08 Apr 2016 13:29:43 -0700 (PDT) Received: from 640k.lan (94-39-141-76.adsl-ull.clienti.tiscali.it. [94.39.141.76]) by smtp.gmail.com with ESMTPSA id w10sm3849168wjz.9.2016.04.08.13.29.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Apr 2016 13:29:43 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Fri, 8 Apr 2016 22:28:50 +0200 Message-Id: <1460147350-7601-31-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1460147350-7601-1-git-send-email-pbonzini@redhat.com> References: <1460147350-7601-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::241 Subject: [Qemu-devel] [PATCH 30/50] explicitly include linux/kvm.h X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, 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: Paolo Bonzini --- hw/i386/kvm/i8254.c | 1 + hw/i386/kvm/pci-assign.c | 1 + hw/vfio/common.c | 3 +++ 3 files changed, 5 insertions(+) diff --git a/hw/i386/kvm/i8254.c b/hw/i386/kvm/i8254.c index a4462e5..734992e 100644 --- a/hw/i386/kvm/i8254.c +++ b/hw/i386/kvm/i8254.c @@ -29,6 +29,7 @@ #include "hw/timer/i8254.h" #include "hw/timer/i8254_internal.h" #include "sysemu/kvm.h" +#include "linux/kvm.h" #define KVM_PIT_REINJECT_BIT 0 diff --git a/hw/i386/kvm/pci-assign.c b/hw/i386/kvm/pci-assign.c index bf425a2..db2cbd2 100644 --- a/hw/i386/kvm/pci-assign.c +++ b/hw/i386/kvm/pci-assign.c @@ -33,6 +33,7 @@ #include "sysemu/sysemu.h" #include "hw/pci/pci.h" #include "hw/pci/msi.h" +#include "linux/kvm.h" #include "kvm_i386.h" #include "hw/pci/pci-assign.h" diff --git a/hw/vfio/common.c b/hw/vfio/common.c index f27db36..88154a1 100644 --- a/hw/vfio/common.c +++ b/hw/vfio/common.c @@ -30,6 +30,9 @@ #include "hw/hw.h" #include "qemu/error-report.h" #include "sysemu/kvm.h" +#ifdef CONFIG_KVM +#include "linux/kvm.h" +#endif #include "trace.h" struct vfio_group_head vfio_group_list =