Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: Andrew Jones <drjones@redhat.com>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: kvm@vger.kernel.org
Subject: Re: [kvm-unit-tests PATCH 6/7] arm/run: introduce basic option parsing
Date: Mon, 6 Jul 2015 15:22:28 +0200	[thread overview]
Message-ID: <20150706132228.GI17217@hawk.localdomain> (raw)
In-Reply-To: <1435931327-8073-7-git-send-email-alex.bennee@linaro.org>

On Fri, Jul 03, 2015 at 02:48:46PM +0100, Alex Bennée wrote:
> So far this simple option parsing loop allows us to --force-tcg even
> when running on ARM hardware.
> 
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
>  arm/run | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/arm/run b/arm/run
> index a3a33b3..43d7508 100755
> --- a/arm/run
> +++ b/arm/run
> @@ -18,6 +18,23 @@ if [ -c /dev/kvm ]; then
>  	fi
>  fi
>  
> +while :; do
> +	case $1 in
> +		--force-tcg)
> +			usingkvm=0
> +			shift
> +			;;
> +		--)
> +			# End of all options.
> +			shift
> +			break
> +			;;
> +		*)
> +			break
> +			;;
> +	esac
> +done
> +
>  qemu="${QEMU:-qemu-system-$ARCH_NAME}"
>  qpath=$(which $qemu 2>/dev/null)

I don't think we need this. If we eventually do, then I think it should
be in a common location sharable by all architectures, and also
run_tests.sh should be taught how to pass options through. For this use
though, Paolo's suggestion should be good enough. That is to do

arm/run arm/some-test.flat -machine accel=tcg

IIUC, since this -machine option will come later on the command line
than the one in arm/run, then it will override whatever we've already
done there. It doesn't look like we need to specify virt again though,
so it must add to what we have, and only override the earlier specified
option with what we specify later. The qemu command line is a
complicated animal...

Thanks,
drew

  reply	other threads:[~2015-07-06 13:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-03 13:48 [kvm-unit-tests PATCH 0/7] A number of small arm/run fixes Alex Bennée
2015-07-03 13:48 ` [kvm-unit-tests PATCH 1/7] READ: add some CONTRIBUTING notes Alex Bennée
2015-07-06 12:56   ` Andrew Jones
2015-07-03 13:48 ` [kvm-unit-tests PATCH 2/7] configure: emit HOST=$host to config.mak Alex Bennée
2015-07-06 12:57   ` Andrew Jones
2015-07-03 13:48 ` [kvm-unit-tests PATCH 3/7] arm/run: set indentation defaults for emacs Alex Bennée
2015-07-06 12:59   ` Andrew Jones
2015-07-03 13:48 ` [kvm-unit-tests PATCH 4/7] run/arm: introduce usingkvm var and use it Alex Bennée
2015-07-06 13:02   ` Andrew Jones
2015-07-03 13:48 ` [kvm-unit-tests PATCH 5/7] arm/run: clean-up setting of accel options Alex Bennée
2015-07-06 13:06   ` Andrew Jones
2015-07-03 13:48 ` [kvm-unit-tests PATCH 6/7] arm/run: introduce basic option parsing Alex Bennée
2015-07-06 13:22   ` Andrew Jones [this message]
2015-07-03 13:48 ` [kvm-unit-tests PATCH 7/7] arm/run: add --debug option Alex Bennée
2015-07-06 13:14   ` Andrew Jones
2015-07-07  6:45     ` Alex Bennée

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=20150706132228.GI17217@hawk.localdomain \
    --to=drjones@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=kvm@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox