[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xen portability


  • To: "xen-users@xxxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxxx>
  • From: "FIXED-TERM Klintefjord Boris (XC-CP/ENG3-SE)" <fixed-term.Boris.Klintefjord@xxxxxxxxxxxx>
  • Date: Fri, 2 Feb 2024 13:32:56 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=se.bosch.com; dmarc=pass action=none header.from=se.bosch.com; dkim=pass header.d=se.bosch.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vyG6wcHfebYYwOKHANI+tMldSTRhMHGv3RCijP5Garw=; b=m4U+HnudjihxGtFfRhIItrmg1jzXZrfDlkVwrJVhHZ+d+fTNz+Ezo3wYLhYeUQVPV+i7MILgCJZw04PNr123A6fcWwh7YYqd2bdGu7VMj/3MH+kURCnDJUtRtfPHB+yTdfVLpG6S6TfI1P8d19PT09RH7sm7KcOeVf2mVOBWKZ70yDV5Sq+Kro5NhkFapb1ZnyYF/CaqrPrV6cCjsSvOACqmiaazznE0+arux4dKseKXWDSK624JrXPX5i/w9FbkJvUh0NWTzEhXDdoeOrbL2KAbCHbI5GJb+UJ4WKszhwojypV8DzRRFD1ELtTS7UpU49fFzW27P2WIeJaALk37jQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UG/M3Aa26PaawO9RAJL+g779EgwJxx/tu8Bmcsq8tQjBp6wZuPWpF2dv404QmOBMnOU+LZi0Qh73j72205b4mJUHiKed5XP105diVj386tCDYbFQOd8N7Dvik/bdniFHX2MtjaYa2gJ1EC5EFRffICFok6xpEY9Y/RcZt4I8jMRXuzXd7PZnNis5kVV1qEmWNDBbb8NNqeQjDYfiZspZksoMUrFXXAwoyyZULystnHEWH+PTFezUYDfyGDgTLeno5V/iMqBKzvLbYhikRKPCRokltKu9BOK4a8Vz0UB+bG56GK9Ngz/s7emnStKBPOUhGTQty8EcTQRFPxqTr3WtuA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=se.bosch.com;
  • Delivery-date: Fri, 02 Feb 2024 13:34:18 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>
  • Thread-index: AdpVq0jon7PSIKU2SvmaVRoznDrctg==
  • Thread-topic: Xen portability

Hi Xen community,

I have a somewhat generic question about portability on Arm platforms.

I have been testing Xen on Armv8 using QEMU (with Linux as Dom0 and
also using OP-TEE), and it works fine. I then started to investigate
how portable Xen is among Arm platforms. According to the Xen wiki[1]
there are not many requirements on the hardware to get Xen to work (it
states that Xen only uses the GIC, generic timers, SMMU and a UART)
assuming one already has a functioning Linux with an appropriate DTB
(device tree).

On another Xen wiki page[2] I further get the impression that adding
Xen should be easy once Linux is up and running. The same page also
lists a number of platforms where Xen has been tested.

So my main question is, does that mean that I can expect Xen to work
with low effort on most Arm devices where I already have a functioning
Linux environment and Xen-compatible hardware (GIC, timers, SMMU,
UART)?

The reason for my doubt is that, I more or less arbitrarily started
looking at the NXP i.MX8MQ evaluation board. It has a DTB in Linux
mainline (arch/arm64/boot/dts/freescale/imx8mq-evk.dts), and it seems
to have a GICv3-compliant GIC which Xen supports. I do not know much
about timers, but the DTB states it has timers with compatible
"arm,armv8-timer" which sounds quite generic. I have not found
anything about SMMU and I probably need some UART driver, but it seems
manageable. However, NXP themselves say that they do not support Xen on
that board, but has support for the i.MX8QM board. They have their own
clone of the Xen git[3] for that board. When looking at that git, I see
that they have done quite a bit of changes to the Xen code, and a lot
of additions in form of new drivers. That gives me the impression that
it is not at all so easy to get Xen to work on any board, contrary to
the impression I got from the Xen wiki pages.

So I want to get a feeling for how much effort is usually required to
get Xen up and running on a new platform. Anyone who has some
experience with this, and what the most important things to look for
are when considering the suitability of a platform for Xen?

[1] 
https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions_whitepaper#Porting_Xen_to_a_new_SoC
[2] https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions
[3] https://github.com/nxp-imx/imx-xen

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.