From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: "Joelle van Dyne" <j@getutm.app>,
qemu-devel@nongnu.org, "Thomas Huth" <thuth@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>
Cc: Kevin Wolf <kwolf@redhat.com>,
Laurent Vivier <lvivier@redhat.com>,
"open list:Block layer core" <qemu-block@nongnu.org>,
Jason Wang <jasowang@redhat.com>,
Michael Roth <mdroth@linux.vnet.ibm.com>,
Max Reitz <mreitz@redhat.com>,
Roman Bolshakov <r.bolshakov@yadro.com>,
Samuel Thibault <samuel.thibault@ens-lyon.org>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH v6 3/7] qemu: add support for iOS host
Date: Tue, 12 Jan 2021 12:56:26 +0100 [thread overview]
Message-ID: <f8134df0-6896-9112-1465-4698081a9981@redhat.com> (raw)
In-Reply-To: <20210105022055.12113-4-j@getutm.app>
Hi Joelle,
On 1/5/21 3:20 AM, Joelle van Dyne wrote:
> This introduces support for building for iOS hosts. When the correct Xcode
> toolchain is used, iOS host will be detected automatically.
>
> * block: disable features not supported by iOS sandbox
> * slirp: disable SMB features for iOS
> * osdep: disable system() calls for iOS
>
> Signed-off-by: Joelle van Dyne <j@getutm.app>
> ---
> docs/devel/index.rst | 1 +
> docs/devel/ios.rst | 28 +++++++++++++++++++++++++++
> configure | 43 ++++++++++++++++++++++++++++++++++++++++-
> meson.build | 2 +-
> include/qemu/osdep.h | 11 +++++++++++
> block.c | 2 +-
> block/file-posix.c | 31 +++++++++++++++++------------
> net/slirp.c | 16 +++++++--------
> qga/commands-posix.c | 6 ++++++
> MAINTAINERS | 7 +++++++
> tests/qtest/meson.build | 7 +++----
> 11 files changed, 127 insertions(+), 27 deletions(-)
> create mode 100644 docs/devel/ios.rst
>
> diff --git a/docs/devel/index.rst b/docs/devel/index.rst
> index f10ed77e4c..2cc8a13ebe 100644
> --- a/docs/devel/index.rst
> +++ b/docs/devel/index.rst
> @@ -35,3 +35,4 @@ Contents:
> clocks
> qom
> block-coroutine-wrapper
> + ios
> diff --git a/docs/devel/ios.rst b/docs/devel/ios.rst
> new file mode 100644
> index 0000000000..b4ab11bec1
> --- /dev/null
> +++ b/docs/devel/ios.rst
> @@ -0,0 +1,28 @@
> +===========
> +iOS Support
> +===========
> +
> +To run qemu on the iOS platform, some modifications were required. Most of the
> +modifications are conditioned on the ``CONFIG_IOS`` and configuration variable.
> +
> +Build support
> +-------------
> +
> +For the code to compile, certain changes in the block driver and the slirp
> +driver had to be made. There is no ``system()`` call, so it has been replaced
> +with an assertion error. There should be no code path that call system() from
> +iOS.
> +
> +``ucontext`` support is broken on iOS. The implementation from ``libucontext``
> +is used instead.
Do you have a CI testing plan for these builds?
Is it possible to add a Gitlab-CI job? If not, on Cirrus-CI?
Thanks,
Phil.
next prev parent reply other threads:[~2021-01-12 12:04 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-05 2:20 [PATCH v6 0/7] iOS and Apple Silicon host support Joelle van Dyne
2021-01-05 2:20 ` [PATCH v6 1/7] configure: option to disable host block devices Joelle van Dyne
2021-01-05 2:20 ` [PATCH v6 2/7] configure: cross-compiling with empty cross_prefix Joelle van Dyne
2021-01-05 2:20 ` [PATCH v6 3/7] qemu: add support for iOS host Joelle van Dyne
2021-01-12 11:56 ` Philippe Mathieu-Daudé [this message]
2021-01-12 22:18 ` Joelle van Dyne
2021-01-12 15:03 ` Peter Maydell
2021-01-12 22:37 ` Joelle van Dyne
2021-01-21 18:53 ` Peter Maydell
2023-11-28 15:12 ` Philippe Mathieu-Daudé
2021-01-05 2:20 ` [PATCH v6 4/7] coroutine: add libucontext as external library Joelle van Dyne
2021-01-21 16:17 ` Daniel P. Berrangé
2021-01-21 17:11 ` Joelle van Dyne
2021-01-05 2:20 ` [PATCH v6 5/7] configure: cross compile should use x86_64 cpu_family Joelle van Dyne
2021-01-12 11:46 ` Philippe Mathieu-Daudé
2021-01-05 2:20 ` [PATCH v6 6/7] slirp: update build flags for iOS resolv fix Joelle van Dyne
2021-01-12 11:52 ` Philippe Mathieu-Daudé
2021-01-14 11:07 ` [Slirp] " Marc-André Lureau
2021-01-05 2:20 ` [PATCH v6 7/7] block: check availablity for preadv/pwritev on mac Joelle van Dyne
2021-01-12 11:01 ` [PATCH v6 0/7] iOS and Apple Silicon host support Peter Maydell
2021-01-12 22:05 ` Joelle van Dyne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f8134df0-6896-9112-1465-4698081a9981@redhat.com \
--to=philmd@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=j@getutm.app \
--cc=jasowang@redhat.com \
--cc=kwolf@redhat.com \
--cc=lvivier@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=mreitz@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=r.bolshakov@yadro.com \
--cc=samuel.thibault@ens-lyon.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).