mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
net/vmnet: Drop ifdef for macOS versions older than 12.0
macOS versions older than 12.0 are no longer supported. docs/about/build-platforms.rst says: > Support for the previous major version will be dropped 2 years after > the new major version is released or when the vendor itself drops > support, whichever comes first. macOS 12.0 was released 2021: https://www.apple.com/newsroom/2021/10/macos-monterey-is-now-available/ Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20240629-macos-v1-4-6e70a6b700a0@daynix.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
e9c9d8dc3b
commit
3bf445fbb1
4 changed files with 2 additions and 51 deletions
|
@ -21,16 +21,6 @@ static bool validate_options(const Netdev *netdev, Error **errp)
|
|||
{
|
||||
const NetdevVmnetSharedOptions *options = &(netdev->u.vmnet_shared);
|
||||
|
||||
#if !defined(MAC_OS_VERSION_11_0) || \
|
||||
MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_VERSION_11_0
|
||||
if (options->has_isolated) {
|
||||
error_setg(errp,
|
||||
"vmnet-shared.isolated feature is "
|
||||
"unavailable: outdated vmnet.framework API");
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
if ((options->start_address ||
|
||||
options->end_address ||
|
||||
options->subnet_mask) &&
|
||||
|
@ -76,14 +66,11 @@ static xpc_object_t build_if_desc(const Netdev *netdev)
|
|||
options->subnet_mask);
|
||||
}
|
||||
|
||||
#if defined(MAC_OS_VERSION_11_0) && \
|
||||
MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_VERSION_11_0
|
||||
xpc_dictionary_set_bool(
|
||||
if_desc,
|
||||
vmnet_enable_isolation_key,
|
||||
options->isolated
|
||||
);
|
||||
#endif
|
||||
|
||||
return if_desc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue