qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Robert Foley <robert.foley@linaro.org>
Cc: peter.puhov@linaro.org, philmd@redhat.com, qemu-devel@nongnu.org
Subject: Re: [PATCH v6 1/9] tests/vm: Add configuration to basevm.py
Date: Fri, 15 May 2020 18:23:06 +0100	[thread overview]
Message-ID: <87zha9az9h.fsf@linaro.org> (raw)
In-Reply-To: <20200512193340.265-2-robert.foley@linaro.org>


Robert Foley <robert.foley@linaro.org> writes:

> Added use of a configuration to tests/vm/basevm.py.
> The configuration provides parameters used to configure a VM.
> This allows for providing alternate configurations to the VM being
> created/launched. cpu, machine, memory, and NUMA configuration are all
> examples of configuration which we might want to vary on the VM being created
> or launched.
> This will for example allow for creating an aarch64 vm.
>
> Signed-off-by: Robert Foley <robert.foley@linaro.org>
> Reviewed-by: Peter Puhov <peter.puhov@linaro.org>
<snip>
> @@ -61,19 +86,30 @@ class BaseVM(object):
>      # 4 is arbitrary, but greater than 2,
>      # since we found we need to wait more than twice as long.
>      tcg_ssh_timeout_multiplier = 4
> -    def __init__(self, debug=False, vcpus=None):
> +    def __init__(self, debug=False, vcpus=None, config=None):
>          self._guest = None
<snip>
>                                     else logging.WARN))
> -        vm = vmcls(debug=args.debug, vcpus=args.jobs)
> +        vm = vmcls(debug=args.debug, vcpus=args.jobs, config=config)

Given the number of times I've just had to fix merge failures with the
patches I've just sent I wonder if we should just pass args as a while
to vmcls and be done with it?

>          if args.build_image:
>              if os.path.exists(args.image) and not args.force:
>                  sys.stderr.writelines(["Image file exists: %s\n" % args.image,


-- 
Alex Bennée


  reply	other threads:[~2020-05-15 17:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-12 19:33 [PATCH v6 0/9] tests/vm: Add support for aarch64 VMs Robert Foley
2020-05-12 19:33 ` [PATCH v6 1/9] tests/vm: Add configuration to basevm.py Robert Foley
2020-05-15 17:23   ` Alex Bennée [this message]
2020-05-15 18:10     ` Robert Foley
2020-05-12 19:33 ` [PATCH v6 2/9] tests/vm: Added configuration file support Robert Foley
2020-05-12 19:33 ` [PATCH v6 3/9] tests/vm: Pass --debug through for vm-boot-ssh Robert Foley
2020-05-12 19:33 ` [PATCH v6 4/9] tests/vm: Add ability to select QEMU from current build Robert Foley
2020-05-12 19:33 ` [PATCH v6 5/9] tests/vm: allow wait_ssh() to specify command Robert Foley
2020-05-12 19:33 ` [PATCH v6 6/9] tests/vm: Added a new script for ubuntu.aarch64 Robert Foley
2020-05-15 15:42   ` Alex Bennée
2020-05-15 18:05     ` Robert Foley
2020-05-12 19:33 ` [PATCH v6 7/9] tests/vm: Added a new script for centos.aarch64 Robert Foley
2020-05-12 19:33 ` [PATCH v6 8/9] tests/vm: change scripts to use self._config Robert Foley
2020-05-12 19:33 ` [PATCH v6 9/9] tests/vm: Add workaround to consume console Robert Foley

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=87zha9az9h.fsf@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=peter.puhov@linaro.org \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=robert.foley@linaro.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;
as well as URLs for NNTP newsgroup(s).