Received: from eggs.gnu.org ([2001:4830:134:3::10]:56256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGvEE-0007zI-RL for qemu-devel@nongnu.org; Mon, 11 Aug 2014 15:26:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGvEA-0003JT-74 for qemu-devel@nongnu.org; Mon, 11 Aug 2014 15:25:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGvE9-0003IL-Vh for qemu-devel@nongnu.org; Mon, 11 Aug 2014 15:25:54 -0400 Message-ID: <1407785130.9800.99.camel@ul30vt.home> From: Alex Williamson Date: Mon, 11 Aug 2014 13:25:30 -0600 In-Reply-To: <1407594349-9291-7-git-send-email-eric.auger@linaro.org> References: <1407594349-9291-1-git-send-email-eric.auger@linaro.org> <1407594349-9291-7-git-send-email-eric.auger@linaro.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5 06/10] hw/vfio: create common module List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Auger Cc: agraf@suse.de, kim.phillips@freescale.com, eric.auger@st.com, peter.maydell@linaro.org, Kim Phillips , patches@linaro.org, will.deacon@arm.com, qemu-devel@nongnu.org, a.rigo@virtualopensystems.com, Bharat.Bhushan@freescale.com, stuart.yoder@freescale.com, joel.schopp@amd.com, a.motakis@virtualopensystems.com, kvmarm@lists.cs.columbia.edu, christoffer.dall@linaro.org On Sat, 2014-08-09 at 15:25 +0100, Eric Auger wrote: > diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h > new file mode 100644 > index 0000000..4684ee5 > --- /dev/null > +++ b/include/hw/vfio/vfio-common.h > @@ -0,0 +1,151 @@ > +/* > + * common header for vfio based device assignment support > + * > + * Copyright Red Hat, Inc. 2012 > + * > + * Authors: > + * Alex Williamson > + * > + * This work is licensed under the terms of the GNU GPL, version 2. See > + * the COPYING file in the top-level directory. > + * > + * Based on qemu-kvm device-assignment: > + * Adapted for KVM by Qumranet. > + * Copyright (c) 2007, Neocleus, Alex Novik (alex@neocleus.com) > + * Copyright (c) 2007, Neocleus, Guy Zana (guy@neocleus.com) > + * Copyright (C) 2008, Qumranet, Amit Shah (amit.shah@qumranet.com) > + * Copyright (C) 2008, Red Hat, Amit Shah (amit.shah@redhat.com) > + * Copyright (C) 2008, IBM, Muli Ben-Yehuda (muli@il.ibm.com) > + */ > +#ifndef HW_VFIO_VFIO_COMMON_H > +#define HW_VFIO_VFIO_COMMON_H > + > +#include "qemu-common.h" > +#include "exec/address-spaces.h" > +#include "exec/memory.h" > +#include "qemu/queue.h" > +#include "qemu/notify.h" > + > +/*#define DEBUG_VFIO*/ > +#ifdef DEBUG_VFIO > +#define DPRINTF(fmt, ...) \ > + do { fprintf(stderr, "vfio: " fmt, ## __VA_ARGS__); } while (0) > +#else > +#define DPRINTF(fmt, ...) \ > + do { } while (0) > +#endif DPRINTF also need to be renamed to avoid conflicting namespace issues. Thanks, Alex