All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Joelle van Dyne <j@getutm.app>
Cc: Kevin Wolf <kwolf@redhat.com>,
	qemu-devel@nongnu.org, "open list:raw" <qemu-block@nongnu.org>,
	Max Reitz <mreitz@redhat.com>
Subject: Re: [PATCH v3 1/7] configure: option to disable host block devices
Date: Wed, 28 Oct 2020 11:22:00 +0000	[thread overview]
Message-ID: <20201028112200.GF221115@stefanha-x1.localdomain> (raw)
In-Reply-To: <20201028030701.14086-2-j@getutm.app>

[-- Attachment #1: Type: text/plain, Size: 1426 bytes --]

On Tue, Oct 27, 2020 at 08:06:55PM -0700, Joelle van Dyne wrote:
> Some hosts (iOS) have a sandboxed filesystem and do not provide low-level
> APIs for interfacing with host block devices.
> 
> Signed-off-by: Joelle van Dyne <j@getutm.app>
> ---
>  configure          | 4 ++++
>  meson.build        | 1 +
>  block/file-posix.c | 8 +++++++-
>  3 files changed, 12 insertions(+), 1 deletion(-)

A change along these lines is needed in qapi/block-core.json:

  { 'enum': 'BlockdevDriver',
    ...
    { 'name': 'host_device', 'if': 'defined(CONFIG_HOST_BLOCK_DEVICE)' }

That way the QAPI schema reflects the QEMU binary's actual features.

> 
> diff --git a/configure b/configure
> index 71bbe82ac5..4e68a5fefe 100755
> --- a/configure
> +++ b/configure
> @@ -448,6 +448,7 @@ ninja=""
>  skip_meson=no
>  gettext=""
>  mirror_jit="no"
> +host_block_device_support="yes"
>  
>  bogus_os="no"
>  malloc_trim="auto"
> @@ -5901,6 +5902,9 @@ if test "$default_devices" = "yes" ; then
>  else
>    echo "CONFIG_MINIKCONF_MODE=--allnoconfig" >> $config_host_mak
>  fi
> +if test "$host_block_device_support" = "yes" ; then
> +  echo "CONFIG_HOST_BLOCK_DEVICE=y" >> $config_host_mak
> +fi
>  if test "$debug_tcg" = "yes" ; then
>    echo "CONFIG_DEBUG_TCG=y" >> $config_host_mak
>  fi

How do you disable CONFIG_HOST_BLOCK_DEVICE? There is no ./configure
--disable-host-block-device option.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2020-10-28 11:23 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-28  3:06 [PATCH v3 0/7] iOS and Apple Silicon host support Joelle van Dyne
2020-10-28  3:06 ` [PATCH v3 1/7] configure: option to disable host block devices Joelle van Dyne
2020-10-28 11:22   ` Stefan Hajnoczi [this message]
2020-10-29  0:51     ` Joelle van Dyne
2020-10-28  3:06 ` [PATCH v3 2/7] configure: cross-compiling with empty cross_prefix Joelle van Dyne
2020-10-28  3:06 ` [PATCH v3 3/7] qemu: add support for iOS host Joelle van Dyne
2020-10-28 11:39   ` Stefan Hajnoczi
2020-10-29  0:55     ` Joelle van Dyne
2020-10-29  7:47       ` Stefan Hajnoczi
2020-10-28  3:06 ` [PATCH v3 4/7] coroutine: add libucontext as external library Joelle van Dyne
2020-10-28 11:47   ` Stefan Hajnoczi
2020-10-29  0:59     ` Joelle van Dyne
2020-10-29  7:08       ` Stefan Hajnoczi
2020-10-28  3:06 ` [PATCH v3 5/7] slirp: update build flags for iOS resolv fix Joelle van Dyne
2020-10-28 11:48   ` Stefan Hajnoczi
2020-10-28  3:07 ` [PATCH v3 6/7] tcg: implement JIT for iOS and Apple Silicon Joelle van Dyne
2020-10-28 11:53   ` Stefan Hajnoczi
2020-10-29  1:04     ` Joelle van Dyne
2020-10-29  8:13       ` Stefan Hajnoczi
2020-10-28  3:07 ` [PATCH v3 7/7] block: check availablity for preadv/pwritev on mac Joelle van Dyne
2020-10-28 11:59   ` Stefan Hajnoczi
2020-10-29  1:07     ` Joelle van Dyne
2020-10-29  7:53       ` Stefan Hajnoczi
2020-10-29  8:33         ` Joelle van Dyne
2020-10-28 12:05 ` [PATCH v3 0/7] iOS and Apple Silicon host support Stefan Hajnoczi

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=20201028112200.GF221115@stefanha-x1.localdomain \
    --to=stefanha@gmail.com \
    --cc=j@getutm.app \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.