QEMU for Apple Silicon: Roadmap? edk2-armvirt?

Ask questions about Arch Linux ARM. Please search before making a new topic.

QEMU for Apple Silicon: Roadmap? edk2-armvirt?

Postby wintifrosch » Tue May 10, 2022 4:42 pm

What is the roadmap for QEMU on Apple Silicon (headless)?
  • Running lscpu in a Arch Linux ARM installation (Option 2 in Asahi installer from march 2022) doesn't state any virtualisation (see snippet 1 below)
  • Trying to install QEMU with sudo pacman -S qemu-system-aarch64 throws an unresolvable dependency in "edk2-armvirt" (see snippet 2 below)
$this->bbcode_second_pass_code('', '$ lscpu
Architecture: aarch64
CPU op-mode(s): 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Vendor ID: Apple
Model name: Icestorm
Model: 1
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Stepping: 0x1
CPU(s) scaling MHz: 65%
CPU max MHz: 2064.0000
CPU min MHz: 600.0000
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid
asimdrdm jscvt fcma lrcpc dcpop sha3 asimd dp sha512 asimdfhm dit
uscat ilrcpc flagm ssbs sb paca pacg dcpodp flagm2 frint
Model name: Firestorm
Model: 1
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Stepping: 0x1
CPU(s) scaling MHz: 19%
CPU max MHz: 3204.0000
CPU min MHz: 600.0000
BogoMIPS: 48.00
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid
asimdrdm jscvt fcma lrcpc dcpop sha3 asimd dp sha512 asimdfhm dit
uscat ilrcpc flagm ssbs sb paca pacg dcpodp flagm2 frint
Vulnerabilities:
Itlb multihit: Not affected
L1tf: Not affected
Mds: Not affected
Meltdown: Not affected
Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Spectre v1: Mitigation; __user pointer sanitization
Spectre v2: Not affected
Srbds: Not affected
Tsx async abort: Not affected
')
$this->bbcode_second_pass_code('', '
$ sudo pacman -S qemu-system-aarch64
resolving dependencies...
warning: cannot resolve "edk2-armvirt", a dependency of "qemu-system-aarch64"
:: The following package cannot be upgraded due to unresolvable dependencies:
qemu-system-aarch64

:: Do you want to skip the above package for this upgrade? [y/N]
')
wintifrosch
 
Posts: 3
Joined: Tue May 10, 2022 4:17 pm

Re: QEMU for Apple Silicon: Roadmap? edk2-armvirt?

Postby robg » Wed May 11, 2022 11:28 am

Hardware-assisted virtualization features are developed and provided by the Asahi Linux team. Nothing ALARM can do about this.

On the other hand, it is weird that the edk2-armvirt package is not found, as it is provided upstream for all architectures. For the moment, you can download it from the preceding link. For the future, kindly open an issue on GitHub, so as to inform the developers of the missing package.

Appendum: The dependency is also listed upstream, so this is indeed a bug.
robg
 
Posts: 186
Joined: Tue Jan 05, 2021 8:22 am

Re: QEMU for Apple Silicon: Roadmap? edk2-armvirt?

Postby wintifrosch » Mon May 16, 2022 7:26 pm

Posted the bug report FS 74773.

For future visitors here:
In April 2022 jannau stated in Github AsahiLinux /docs to a question About Virtual Machines #21:
$this->bbcode_second_pass_quote('', 'q')emu with kvm works well out of the box on M1 Pro/Max/Ultra. On the original M1 it needs an unreleased qemu version to work well out of the box [in Asahi Linux]. It work afaik with higmem=off. […]
On the original M1 it will be easier to setup with the soon to be released qemu 7.0.
Last edited by wintifrosch on Wed May 18, 2022 1:45 pm, edited 1 time in total.
wintifrosch
 
Posts: 3
Joined: Tue May 10, 2022 4:17 pm

Re: QEMU for Apple Silicon: Roadmap? edk2-armvirt?

Postby wintifrosch » Wed May 18, 2022 1:43 pm

QEMU works fine on AppleSilicon, but there is a bug in the new¹ Arch Linux ARM packaging of qemu. It's reported in ArchLinuxARM's forum here
It's not an Asahi specific issue but it's broken on every ArchLinuxARM installation.

¹ With the update to qemu 7.0.0 the package has been turned into a more fine grained split package utilizing meta packages. (https://archlinux.org/news/qemu-700-cha ... age-setup/
wintifrosch
 
Posts: 3
Joined: Tue May 10, 2022 4:17 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 13 guests