Received: from yocto-www.yoctoproject.org (yocto-www.yoctoproject.org [140.211.169.56]) by mx.groups.io with SMTP id smtpd.web10.6615.1593482137825422170 for ; Mon, 29 Jun 2020 18:55:37 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AwayUmkp; spf=softfail (domain: gmail.com, ip: 140.211.169.56, mailfrom: christopher.w.clark@gmail.com) Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 57ADBE01DBE; Mon, 29 Jun 2020 18:55:37 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (christopher.w.clark[at]gmail.com) * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no * trust * [209.85.222.195 listed in list.dnswl.org] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid Received: from mail-qk1-f195.google.com (mail-qk1-f195.google.com [209.85.222.195]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2E559E01D76 for ; Mon, 29 Jun 2020 18:55:36 -0700 (PDT) Received: by mail-qk1-f195.google.com with SMTP id b4so17194319qkn.11 for ; Mon, 29 Jun 2020 18:55:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=tXPqfOEVtZWJX0KjnrElekPxFS+2BpdDY1UwrsWlGSI=; b=AwayUmkpmG04yd8pf4V4JgMFMXwqFPJwhtCKF/marAy31UjEaS/0S9Fq/vmf1GPSFy CJb9Ts5SBvqEfmmNRKpVGfUNzdvxduxlyhApamEQcautG9gY3dmIvfnGQgeYC22R4oKf otD0Q845gvsyfRrphoQzwMhpgwi7i4qOn9RUOfRn4agL3McztYFaz9aduaIAeYnknwZZ KGY0YsnJ+B9EVK0xYwR4tK2EEBHy/2hCr47X3SoKPdLicI7vZ1TmFc/Hfz9VT2feyvR4 3q2tZLuIOBAYdbRmmLiBJ9TyBl44Jrad4Stg7j6BQn8i0DMAERipt1+1Avbc/CByjTN0 wJpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tXPqfOEVtZWJX0KjnrElekPxFS+2BpdDY1UwrsWlGSI=; b=hP3C/x9xzckVZrYioflJwFHlBCz/cOyGAJF+18Y54hYhm3loGsxfZFiDXPsLy7v9V0 N4EufA4arezKXG68JgBdxI8TsCb2c7+6coCVmjic6/WjDhbamiSZBKnhLxSVFhb42Eee d9bEuKWNt13wdXGw3tgQAZl/zpoikzimCNY7yFjYs5RT1nlizyZbp5kLabJxsS5x3mEo eQqZZetjrppiQdY4+sPLb8SfcTavnBnzWMz19LGfu1joowxkNsNoJN2GVhCMBxSVIlEk R17tR9dByayxcYSLme1d9ZDVeTOlAXDVtPqoLjiIEJqhOr2kRs5iHLU1uwyTkIM/kagu Qyrg== X-Gm-Message-State: AOAM531AI6Rk6eivVqN9Ysz6KYwsyRvu8WNwy11HO7rN7xPJN2JNe+pI 4LgR7oyCguzz+gNXopwgqyKp+tU+ X-Google-Smtp-Source: ABdhPJzeUgFiZf2UwYBYUm9nw/kFNy+aucb/M5o7cHxZut8Mhl00f5Dh4FFJyodOwuTQ4C7yuEdgrA== X-Received: by 2002:a05:620a:1587:: with SMTP id d7mr8825513qkk.228.1593482134995; Mon, 29 Jun 2020 18:55:34 -0700 (PDT) Received: from localhost.localdomain (mobile-166-176-186-179.mycingular.net. [166.176.186.179]) by smtp.gmail.com with ESMTPSA id t48sm1841794qtb.50.2020.06.29.18.55.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jun 2020 18:55:34 -0700 (PDT) From: "Christopher Clark" To: meta-virtualization@yoctoproject.org Cc: cardoe@gentoo.org, bruce.ashfield@gmail.com, Bertrand.Marquis@arm.com, cminyard@mvista.com, Stewart.Hildebrand@dornerworks.com Subject: [meta-virtualization][PATCH v2 00/11] Xen on Raspberry Pi 4 Date: Mon, 29 Jun 2020 18:54:43 -0700 Message-Id: <20200630015454.10151-1-christopher.w.clark@gmail.com> X-Mailer: git-send-email 2.17.1 Changes since v1: - rebased on to current meta-virtualization, meta-openembedded, poky - updated Xen revision to the tip of stable 4.13 - fixed Xen build on ARM64 with gcc 10.1.0 - added upstream debugger patch to fix compiler warning This series introduces support for running Xen on the Raspberry Pi 4 board, with meta-virtualization and meta-raspberrypi, using the linux-raspberrypi kernel at version 5.4 which is the current linux-yocto kernel version supported in this layer. It introduces use of dynamic layers to handle configuration that is both Xen and Raspberry Pi specific, and inclusion of Xen-specific configuration when the 'xen' DISTRO_FEATURE is enabled to simplify Xen image builds. It applies a backported set of Xen-specific Linux kernel patches, developed by upstream Xen developers working with the Linux Foundation Eve Project, that are currently being iterated on for inclusion in the Linux kernel. Xen is uprev'd to version 4.13; this is currently compile-and-boot-tested only on this RPi4 board. Christopher Christopher Clark (11): xen: apply layer settings when xen DISTRO_FEATURE is enabled xen-tools: add RRECOMENDS qemu on ARM and x86 when HVM is enabled xen-tools: use non-busybox ifupdown tool if available xen, xen-tools: update revision to Xen 4.13 meta-virt-xen.inc: add Raspberry Pi settings xen, raspberry pi: add dynamic-layer for Xen configuration for Rpi4 xen, raspberry pi 4: provide a default defconfig for raspberrypi4 xen, linux-raspberrypi: add Linux kernel 5.4 patches for Xen support xen, raspberry pi: add Xen-specific SD card class linux-raspberrypi: prefer kernel version 5.4 xen: add patch to fix build on ARM64 with gcc 10.1.0 classes/meta-virt-xen-cfg.bbclass | 6 + classes/sdcard_image-rpi-xen.bbclass | 120 ++++ conf/distro/include/meta-virt-xen.inc | 19 + conf/layer.conf | 19 +- .../bootfiles/rpi-config_git.bbappend | 6 + .../rpi-u-boot-scr/files/boot.cmd.xen.in | 49 ++ .../rpi-u-boot-scr/rpi-u-boot-scr.bbappend | 17 + .../xen/files/defconfig_raspberrypi4-64 | 117 ++++ .../recipes-extended/xen/xen_git.bbappend | 11 + ...vmalloc_to_page-on-vmalloc-virt-addr.patch | 44 ++ ...02-swiotlb-xen-remove-start_dma_addr.patch | 47 ++ ...struct-device-parameter-to-xen_phys_.patch | 78 +++ ...struct-device-parameter-to-xen_bus_t.patch | 66 +++ ...struct-device-parameter-to-is_xen_sw.patch | 57 ++ ...oduce-phys_to_dma-dma_to_phys-transl.patch | 88 +++ ...translations-in-xen_dma_s_kernel_5.4.patch | 68 +++ ..._to_phys-on-the-dma_addr_t-parameter.patch | 75 +++ .../0011-adding-page-coherent-patch.patch | 39 ++ .../linux/linux-raspberrypi_%.bbappend | 5 + .../linux/linux-raspberrypi_5.4.bbappend | 19 + ...xen-build-temporarily-inhibit-Werror.patch | 18 +- ...xen-arm64-implement-atomic-fetch-add.patch | 50 ++ ...g-0-arrays-to-access-packet-contents.patch | 60 ++ .../files/xen-tools-libxl-gentypes-py3.patch | 140 ----- ...tools-pygrub-change-tabs-into-spaces.patch | 40 -- ...-python-scripts-work-with-2.6-and-up.patch | 529 ------------------ .../xen/files/xen-tools-pygrub-py3.patch | 233 -------- ...ls-python-fix-Wsign-compare-warnings.patch | 136 ----- ...n-tools-update-python-scripts-to-py3.patch | 140 ----- recipes-extended/xen/xen-tools.inc | 16 + recipes-extended/xen/xen-tools_git.bb | 13 +- recipes-extended/xen/xen_git.bb | 11 +- 32 files changed, 1102 insertions(+), 1234 deletions(-) create mode 100644 classes/meta-virt-xen-cfg.bbclass create mode 100644 classes/sdcard_image-rpi-xen.bbclass create mode 100644 conf/distro/include/meta-virt-xen.inc create mode 100644 dynamic-layers/raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend create mode 100644 dynamic-layers/raspberrypi/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.xen.in create mode 100644 dynamic-layers/raspberrypi/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bbappend create mode 100644 dynamic-layers/raspberrypi/recipes-extended/xen/files/defconfig_raspberrypi4-64 create mode 100644 dynamic-layers/raspberrypi/recipes-extended/xen/xen_git.bbappend create mode 100644 dynamic-layers/raspberrypi/recipes-kernel/linux/files/0001-swiotlb-xen-use-vmalloc_to_page-on-vmalloc-virt-addr.patch create mode 100644 dynamic-layers/raspberrypi/recipes-kernel/linux/files/0002-swiotlb-xen-remove-start_dma_addr.patch create mode 100644 dynamic-layers/raspberrypi/recipes-kernel/linux/files/0003-swiotlb-xen-add-struct-device-parameter-to-xen_phys_.patch create mode 100644 dynamic-layers/raspberrypi/recipes-kernel/linux/files/0004-swiotlb-xen-add-struct-device-parameter-to-xen_bus_t.patch create mode 100644 dynamic-layers/raspberrypi/recipes-kernel/linux/files/0007-swiotlb-xen-add-struct-device-parameter-to-is_xen_sw.patch create mode 100644 dynamic-layers/raspberrypi/recipes-kernel/linux/files/0008-swiotlb-xen-introduce-phys_to_dma-dma_to_phys-transl.patch create mode 100644 dynamic-layers/raspberrypi/recipes-kernel/linux/files/0009-xen-arm-introduce-phys-dma-translations-in-xen_dma_s_kernel_5.4.patch create mode 100644 dynamic-layers/raspberrypi/recipes-kernel/linux/files/0010-xen-arm-call-dma_to_phys-on-the-dma_addr_t-parameter.patch create mode 100644 dynamic-layers/raspberrypi/recipes-kernel/linux/files/0011-adding-page-coherent-patch.patch create mode 100644 dynamic-layers/raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend create mode 100644 dynamic-layers/raspberrypi/recipes-kernel/linux/linux-raspberrypi_5.4.bbappend create mode 100644 recipes-extended/xen/files/xen-arm64-implement-atomic-fetch-add.patch create mode 100644 recipes-extended/xen/files/xen-tools-kdd-stop-using-0-arrays-to-access-packet-contents.patch delete mode 100644 recipes-extended/xen/files/xen-tools-libxl-gentypes-py3.patch delete mode 100644 recipes-extended/xen/files/xen-tools-pygrub-change-tabs-into-spaces.patch delete mode 100644 recipes-extended/xen/files/xen-tools-pygrub-make-python-scripts-work-with-2.6-and-up.patch delete mode 100644 recipes-extended/xen/files/xen-tools-pygrub-py3.patch delete mode 100644 recipes-extended/xen/files/xen-tools-python-fix-Wsign-compare-warnings.patch delete mode 100644 recipes-extended/xen/files/xen-tools-update-python-scripts-to-py3.patch -- 2.17.1