News: 1675922348

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Xen hypervisor port to RISC-V moving – slowly, but moving

(2023/02/09)


If the open source RISC-V CPU architecture is to become a viable option for servers, its software ecosystem will need a solid hypervisor.

Which is why The Register [1]noted in 2021 that a project had commenced to bring the open source Xen hypervisor to RISC-V.

And in 2023 we can report that effort is moving … slowly.

[2]

A February 7 [3]post from Oleksii Kurochko, a hypervisor and kernel software engineer at Vates – the organization that created the XCP-ng cut of Xen – explains that the effort has taken a few steps forward and a few steps back.

[4]

[5]

Kurochko explained that some recent patches to Xen were promising – but also too complex to integrate easily.

"It was decided to start committing and reworking some patches step by step," he wrote.

[6]XenServer, split from Citrix, promises per-socket prices 'unlike certain other hypervisors'

[7]Xen project goes for VM Hyperlaunch with version 4.17

[8]After less than half a year, Intel quietly kills RISC-V dev environment

[9]Ventana targets hyperscalers with customizable RISC-V server chip

To date, a patch allowing minimal Xen implementations on RISC-V has been [10]merged , as has a [11]cross-build test .

Also on Kurochko's to-do list:

Introducing a smoke test and job to verify early printk functionality;

Basic trap handling;

Updating the smoke test to verify the functionality from asm/bug.h ;

Making some elements of Xen generic across x86, Arm and RISC-V;

Basic MMU support (which he thinks is the next item he'll address);

Various other bits of functionality, one at a time – smp support, console, enable xen/common , etc.

Kurochko excitedly added that developing Xen for RISC-V is non-trivial, but rated his work "a great demonstration that porting Xen to RISC-V could also help to make the Xen code base better and more generic. Even if it's more work in the short term, it's better for the project on the long run!"

"Work on porting is still in progress (I'm working full time on it), and it's far from being done," he concluded. "However, there's a lot of momentum going on with our work on RISC-V+Xen, as there is significant support and interest from the Xen community itself and even beyond!" ®

Get our [12]Tech Resources



[1] https://www.theregister.com/2021/04/08/xen_4_15/

[2] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/virtualization&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2Y@TSV0jVNeDeUj5R7C-3vgAAAIQ&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[3] https://xcp-ng.org/blog/2023/02/07/current-xen-risc-v-support-status/

[4] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/virtualization&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44Y@TSV0jVNeDeUj5R7C-3vgAAAIQ&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[5] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_software/virtualization&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33Y@TSV0jVNeDeUj5R7C-3vgAAAIQ&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[6] https://www.theregister.com/2023/01/23/xenserver_socket_licences/

[7] https://www.theregister.com/2022/12/16/xen_4_17_hyperlaunch/

[8] https://www.theregister.com/2023/01/30/intel_ris_v_pathfinder_discontinued/

[9] https://www.theregister.com/2022/12/12/ventana_risc_v_server_chip/

[10] https://gitlab.com/xen-project/xen/-/commit/bb62c25e3e5c3ff0c61a0351b7c4c65ff11ce9d9

[11] https://gitlab.com/xen-project/xen/-/commit/83d9679db057d5736c7b5a56db06bb6bb66c3914

[12] https://whitepapers.theregister.com/



It is not just for servers ...

Bartholomew

It is not just needed for servers, it is also prerequisite needed before Qubes desktop can be ported to RISC-V.

"Linux was made by foreign terrorists to take money from true US companies
like Microsoft." - Some AOL'er.
"To this end we dedicate ourselves..." -Don
-- From the sig of "Don", don@cs.byu.edu