Skip to content

iOS and Apple Silicon host support

Joelle van Dyne qemu-devel 10 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest11 patches 12 repliesIn review
  2. v811 patches 3 repliesSuperseded
  3. v711 patches 14 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v67 patches13 repliesSuperseded
v57 patches16 repliesSuperseded
v47 patches3 repliesSuperseded
v37 patches17 repliesSuperseded
v2 posting 2/29 patches0 repliesSuperseded
v2 posting 1/29 patches29 repliesSuperseded
v110 patches32 repliesSuperseded

Changes in v9 from the cover letter

* Moved some feature checks to meson.build
* system() stub return error instead of assertion

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11block: feature detection for host block supportblock/file-posix.c meson.build qapi/block-core.json+34 -150 replies
2/11configure: cross-compiling with empty cross_prefixconfigure+4 -20 replies
3/11configure: check for sys/disk.hblock.c block/file-posix.c meson.build+3 -26 replies
4/11slirp: feature detection for smbdconfigure meson.build net/slirp.c+30 -102 replies
5/11osdep: build with non-working system() functioninclude/qemu/osdep.h meson.build+13 -00 replies
6/11darwin: remove redundant dependency declarationconfigure+0 -10 replies
7/11darwin: fix cross-compiling for Darwinconfigure+4 -01 reply
8/11configure: cross compile should use x86_64 cpu_familyconfigure+4 -10 replies
9/11block: check availablity for preadv/pwritev on macblock/file-posix.c+33 -01 reply
10/11darwin: detect CoreAudio for buildconfigure+33 -21 reply
11/11darwin: remove 64-bit build detection on 32-bit OSconfigure+0 -110 replies

Reviews trailers per patch

6 of 11 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéPeter Maydell
1/11
2/11R-b
3/11
4/11
5/11
6/11R-b
7/11R-b R-b
8/11R-b
9/11
10/11R-b
11/11R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v9 thread

Cover letter [PATCH v9 00/11] iOS and Apple Silicon host support

These set of changes brings QEMU TCG to iOS devices and future Apple Silicon devices. They were originally developed last year and have been working in the UTM app. Recently, we ported the changes to master, re-wrote a lot of the build script changes for meson, and broke up the patches into more distinct units.

The bulk of the changes allow for cross-compiling for both iOS and macOS running Apple Silicon and adds feature detection for parts of QEMU that are not compatible with iOS.

Since v9:

* system() feature check moved to meson.build

Since v8:

* Moved some feature checks to meson.build
* system() stub return error instead of assertion

Since v7:

* Removed libucontext (will be submitted in another patchset)
* Removed slirp build flags update (superseded by subproject patchset)
* Reworked all patches to use feature detection instead of #ifdef CONFIG_IOS
* Added feature detection for CoreAudio
* Fix various cross compiling issues on macOS

Since v6:

* Dropped the Apple Silicon JIT support patch (superseded by another patchset)
* Changed libucontext to be a Meson subproject
* Cache availablity check for preadv/pwritev on macOS 11 and iOS 14

Since v5:

* Fixed some more instances of QAPI define of CONFIG_HOST_BLOCK_DEVICE
* Fixed libucontext build on newer version of GCC

Since v4:

* Updated QAPI schema for CONFIG_HOST_BLOCK_DEVICE
* Updated maintainers file for iOS host support
* Moved system() changes to osdep.h
* Fixed typo in libucontext meson.build change

Since v3:

* Moved mirror JIT support to a different patch set.
* Removed dependency on pthread_jit_write_protect_np because it was redundent and also crashes if called on a non-jailbroken iOS device.
* Removed --enable-cross-compile option
* Fixed checkpatch errors
* Fixed iOS build on master due to new test recently added which calls system()

Since v2:

* Changed getting mirror pointer from a macro to inline functions
* Split constification of TCG code pointers to separate patch
* Removed slirp updates (will send future patch once slirp changes are in)
* Removed shared library patch (will send future patch)

-j

Joelle van Dyne (11):
block: feature detection for host block support
configure: cross-compiling with empty cross_prefix
configure: check for sys/disk.h
slirp: feature detection for smbd
osdep: build with non-working system() function
darwin: remove redundant dependency declaration
darwin: fix cross-compiling for Darwin
configure: cross compile should use x86_64 cpu_family
block: check availablity for preadv/pwritev on mac
darwin: detect CoreAudio for build
darwin: remove 64-bit build detection on 32-bit OS

 configure            | 84 ++++++++++++++++++++++++++++++++++----------
 meson.build          | 10 ++++--
 qapi/block-core.json | 10 ++++--
 include/qemu/osdep.h | 12 +++++++
 block.c              |  2 +-
 block/file-posix.c   | 68 ++++++++++++++++++++++++++++-------
 net/slirp.c          | 16 ++++-----
 7 files changed, 158 insertions(+), 44 deletions(-)
Signature · 1 line
2.28.0