Skip to content

Disable unavailable features on older macOS

Joelle van Dyne qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vmnet: disable unavailable features on older macOSnet/vmnet-bridged.m net/vmnet-host.c net/vmnet-shared.c+66 -230 replies
2/2hvf: arm: disable unavailable features on older macOStarget/arm/hvf/hvf.c+35 -201 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Disable unavailable features on older macOS

Some features require APIs introduced in a recent version of macOS. Currently, this is not checked anywhere and so either the build will fail (if building with an older version of Xcode) or will throw a warning and then crash if run on an older machine. The correct way to handle this is with availabilty checks. The checks are a clang extension that only works on Apple platforms but these files are only built for Apple platforms already and link with Apple frameworks.

Joelle van Dyne (2):
vmnet: disable unavailable features on older macOS
hvf: arm: disable unavailable features on older macOS

 net/vmnet-host.c     | 48 ++++++++++++++++++++++++++------------
 net/vmnet-shared.c   | 23 ++++++++++++++----
 target/arm/hvf/hvf.c | 55 ++++++++++++++++++++++++++++----------------
 net/vmnet-bridged.m  | 18 ++++++++++++---
 4 files changed, 101 insertions(+), 43 deletions(-)
Signature · 1 line
2.41.0