From: Julien Grall Subject: [PATCH v9 0/6] xen/arm: Add support for non-PCI passthrough Date: Wed, 13 May 2015 19:33:36 +0100 Message-ID: <1431542022-16138-1-git-send-email-julien.grall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YsbdQ-0001LG-1W for xen-devel@lists.xenproject.org; Wed, 13 May 2015 18:44:00 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: edgar.iglesias@xilinx.com, ian.campbell@citrix.com, tim@xen.org, andrii.anisov@globallogic.com, Julien Grall , stefano.stabellini@citrix.com, robert.vanvossen@dornerworks.com, Josh.Whitehead@dornerworks.com, andrii.tseglytskyi@globallogic.com List-Id: xen-devel@lists.xenproject.org Hi all, This is a resend of the last part of the non-PCI passthrough after another error found by Ian C. during build compilation on Debian Wheezy. Debian wheezy is using an old version of libfdt which doesn't export correcly fdt_first_property_offset, fdt_get_property_by_offset and fdt_next_property_offset. Thoses functions are used in order to copy the partial device tree into the guest supports. Adding compatibility for thoses functions (as we did for fdt_{first,next}_subnode) is not easy because it requires to pull some libfdt internal functions. After discussion [1], it has been decided to disable support of partial device tree on any OS using libfdt < 1.4.0 (release in september 2014). Realistically only Debian Wheezy is impacted which has been superseed by Jessie recently. Any user who want to use passthrough on OS which don't have a recent libfdt will have to build a new version of libfdt of append the device tree to the guest kernel. Sincerely yours, [1] http://lists.xen.org/archives/html/xen-devel/2015-05/msg01682.html Cc: andrii.anisov@globallogic.com Cc: andrii.tseglytskyi@globallogic.com Cc: robert.vanvossen@dornerworks.com Cc: edgar.iglesias@xilinx.com Cc: Josh.Whitehead@dornerworks.com Julien Grall (6): tools/libxl: Check if fdt_{first,next}_subnode are present in libfdt tools/(lib)xl: Add partial device tree support for ARM tools/libxl: arm: Use an higher value for the GIC phandle libxl: Add support for Device Tree passthrough xl: Add new option dtdev docs/misc: arm: Add documentation about Device Tree passthrough docs/man/xl.cfg.pod.5 | 18 ++++ docs/misc/arm/passthrough.txt | 63 +++++++++++++ tools/configure.ac | 18 ++++ tools/libxl/Makefile | 2 +- tools/libxl/libxl.h | 7 ++ tools/libxl/libxl_arm.c | 182 +++++++++++++++++++++++++++++++++++++- tools/libxl/libxl_create.c | 32 +++++++ tools/libxl/libxl_internal.h | 5 ++ tools/libxl/libxl_libfdt_compat.c | 94 ++++++++++++++++++++ tools/libxl/libxl_libfdt_compat.h | 80 +++++++++++++++++ tools/libxl/libxl_types.idl | 11 +++ tools/libxl/xl_cmdimpl.c | 23 ++++- 12 files changed, 529 insertions(+), 6 deletions(-) create mode 100644 docs/misc/arm/passthrough.txt create mode 100644 tools/libxl/libxl_libfdt_compat.c create mode 100644 tools/libxl/libxl_libfdt_compat.h -- 2.1.4