From patchwork Mon Mar 15 18:03:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joelle van Dyne X-Patchwork-Id: 12140421 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7433AC433DB for ; Mon, 15 Mar 2021 18:36:27 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2325764E90 for ; Mon, 15 Mar 2021 18:36:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2325764E90 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=getutm.app Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:50872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLs4o-0000AM-7q for qemu-devel@archiver.kernel.org; Mon, 15 Mar 2021 14:36:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLrZE-0002b2-Oe for qemu-devel@nongnu.org; Mon, 15 Mar 2021 14:03:49 -0400 Received: from mail-pj1-f52.google.com ([209.85.216.52]:39554) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLrZC-0000qA-NO for qemu-devel@nongnu.org; Mon, 15 Mar 2021 14:03:48 -0400 Received: by mail-pj1-f52.google.com with SMTP id lr10-20020a17090b4b8ab02900dd61b95c5eso12585435pjb.4 for ; Mon, 15 Mar 2021 11:03:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=y1rs2HPOtD5FKljEnDvYYS6MJHXjaTqMOoVOuF0UqjE=; b=qDLa26RBQ9BQfyOnO/CwP9+QMrGrwBUWbt6jySFPuDFNNRV2Zql98W0meCJPrMohuD uOmUU2Mz1QDelORsI8VcdqYuC1WQJq2xwtyrtgG1d3qh1WxKrSAroLYCjn58g7//X2VR LrFD9n4UJOGWzqoGFKdIK+h2o8yzRHWxLoUZV1KikXtaicCCcj+Yz/3EPwnITRDKUoml 8AWLhzfzowo7IRNiiLitboXfk+j2XZ7NJROwTuiyhHYN+h8Q2NRV6CMk+iF5W4Gy3B89 +zrtOcIdyaAXx4WqTUToMffKPG1mycmue4KUa6LAtASh20B4bwD+LC0Sfb9KJXnsgcZ0 Oi2Q== X-Gm-Message-State: AOAM533Hq3oiI0g1SrCXWyA/LqL4VCLlgiYM2j32PvXaWRPTs6SmZ4fd /evqsRMnKAp3me9vISFEup6QrY+arD4= X-Google-Smtp-Source: ABdhPJwTmVwzCpGYq3TuO5JLListkzhYb9WpcuRe4CuyfnA1tHigaBtuc1G3OVLoY6Z25lA6M0VbOg== X-Received: by 2002:a17:902:344:b029:e4:a7ab:2e55 with SMTP id 62-20020a1709020344b02900e4a7ab2e55mr12916107pld.63.1615831423919; Mon, 15 Mar 2021 11:03:43 -0700 (PDT) Received: from localhost.localdomain ([73.93.153.95]) by smtp.gmail.com with ESMTPSA id y194sm14267842pfb.21.2021.03.15.11.03.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Mar 2021 11:03:43 -0700 (PDT) From: Joelle van Dyne To: qemu-devel@nongnu.org Subject: [PATCH v3 0/4] Disable unsupported features on iOS hosts Date: Mon, 15 Mar 2021 11:03:37 -0700 Message-Id: <20210315180341.31638-1-j@getutm.app> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.216.52; envelope-from=osy86github@gmail.com; helo=mail-pj1-f52.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" These patches disables code that cannot be compiled or run on iOS by adding feature/header detection at configure time. Only the first patch still needs to be reviewed, thanks! v3: * Add braces in if statement in third patch v2: * Broken merge where config_host['CONFIG_SMBD_COMMAND'] was duplicated. Joelle van Dyne (4): block: feature detection for host block support block: check for sys/disk.h block: detect DKIOCGETBLOCKCOUNT/SIZE before use slirp: feature detection for smbd configure | 26 ++++++++++++++++++--- meson.build | 9 ++++++-- qapi/block-core.json | 10 +++++--- block.c | 2 +- block/file-posix.c | 54 +++++++++++++++++++++++++------------------- net/slirp.c | 16 ++++++------- 6 files changed, 77 insertions(+), 40 deletions(-)