From patchwork Mon May 4 12:49:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Auger Eric X-Patchwork-Id: 48002 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 412402121F for ; Mon, 4 May 2015 12:50:10 +0000 (UTC) Received: by lbcne10 with SMTP id ne10sf41906398lbc.1 for ; Mon, 04 May 2015 05:50:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=/nComCpRyo2zHWd2/H/0BoLTmjtmIk6XKLok50JOVY8=; b=ef49/rGDBWwEij/JC14kD+dNs/NMADP6E2qJtrm6sTXFVBtNNP/bDdQ00nw31V3uXO lMM34yfH0SHULTCmmUtius1acv/uj6/x9jMUBJwHy8A2xkjE7COZq++zXSwhsY3Oao4l PwV4y3gUBtfWcQcTcMecLEjvfJSXpXauWfXa5bUTlhLEyJV5dr59fs3VfU85FbfT2bTP hsNmg30ClZIZGb0MELdPSbUUOtKsuSYyyCg2ZyWm50hn/rLO6lhoqtgqM9WnscZqKbwI OXm1EIcATsRaLkNWGNUybu01Nd76spnwlAN3o/nOPj7gggh+kW2HyO4sJ0KEvMDKBUXe FBlQ== X-Gm-Message-State: ALoCoQlpQGmNA0lSj7nKfesjsyrkGm7UreFZRDyMwC3mxtiVuKFLlcnAgDhE6JaYBxaKD5Bwdmov X-Received: by 10.180.73.137 with SMTP id l9mr8368211wiv.5.1430743809205; Mon, 04 May 2015 05:50:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.231 with SMTP id i7ls683587lae.85.gmail; Mon, 04 May 2015 05:50:09 -0700 (PDT) X-Received: by 10.152.36.136 with SMTP id q8mr19031034laj.96.1430743809051; Mon, 04 May 2015 05:50:09 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id le4si9998876lac.158.2015.05.04.05.50.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 May 2015 05:50:09 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by layy10 with SMTP id y10so103234794lay.0 for ; Mon, 04 May 2015 05:50:09 -0700 (PDT) X-Received: by 10.152.87.204 with SMTP id ba12mr19822426lab.35.1430743808964; Mon, 04 May 2015 05:50:08 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.67.65 with SMTP id l1csp1641061lbt; Mon, 4 May 2015 05:50:08 -0700 (PDT) X-Received: by 10.181.13.44 with SMTP id ev12mr18970868wid.17.1430743808210; Mon, 04 May 2015 05:50:08 -0700 (PDT) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com. [209.85.212.182]) by mx.google.com with ESMTPS id fa5si11365913wid.36.2015.05.04.05.50.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 May 2015 05:50:08 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@linaro.org designates 209.85.212.182 as permitted sender) client-ip=209.85.212.182; Received: by wicmx19 with SMTP id mx19so76665892wic.1 for ; Mon, 04 May 2015 05:50:08 -0700 (PDT) X-Received: by 10.195.18.103 with SMTP id gl7mr40396390wjd.34.1430743807967; Mon, 04 May 2015 05:50:07 -0700 (PDT) Received: from midway01-04-00.lavalab ([81.128.185.50]) by mx.google.com with ESMTPSA id z13sm20482370wjr.44.2015.05.04.05.50.06 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 May 2015 05:50:06 -0700 (PDT) From: Eric Auger To: eric.auger@st.com, eric.auger@linaro.org, qemu-devel@nongnu.org, alex.williamson@redhat.com Cc: christoffer.dall@linaro.org, kvmarm@lists.cs.columbia.edu, patches@linaro.org, b.reynal@virtualopensystems.com Subject: [RFC v2 2/4] hw/vfio/common: vfio_kvm_device_fd moved in the common header Date: Mon, 4 May 2015 13:49:56 +0100 Message-Id: <1430743798-8839-3-git-send-email-eric.auger@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1430743798-8839-1-git-send-email-eric.auger@linaro.org> References: <1430743798-8839-1-git-send-email-eric.auger@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: eric.auger@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , the device is now used in platform for forwarded IRQ setup Signed-off-by: Eric Auger --- hw/vfio/common.c | 2 +- include/hw/vfio/vfio-common.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/vfio/common.c b/hw/vfio/common.c index b012620..18ad67c 100644 --- a/hw/vfio/common.c +++ b/hw/vfio/common.c @@ -44,7 +44,7 @@ struct vfio_as_head vfio_address_spaces = * initialized, this file descriptor is only released on QEMU exit and * we'll re-use it should another vfio device be attached before then. */ -static int vfio_kvm_device_fd = -1; +int vfio_kvm_device_fd = -1; #endif /* diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h index 59a321d..53d0e68 100644 --- a/include/hw/vfio/vfio-common.h +++ b/include/hw/vfio/vfio-common.h @@ -40,6 +40,10 @@ #define VFIO_ALLOW_KVM_MSI 1 #define VFIO_ALLOW_KVM_MSIX 1 +#ifdef CONFIG_KVM +extern int vfio_kvm_device_fd; +#endif + enum { VFIO_DEVICE_TYPE_PCI = 0, VFIO_DEVICE_TYPE_PLATFORM = 1,