Received: by 2002:a17:907:c68a:b0:84d:2074:29bb with SMTP id ue10csp248315ejc; Thu, 19 Jan 2023 03:16:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXv+BcoXKBmUkpUwNyylZrZsJB6ptnQw6p9RF1LDuZI0mNOLgfv8UBSa555jTWU5pqzRHNX7 X-Received: by 2002:ac8:4c84:0:b0:3b6:31e2:f537 with SMTP id j4-20020ac84c84000000b003b631e2f537mr13698682qtv.8.1674126983411; Thu, 19 Jan 2023 03:16:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674126983; cv=none; d=google.com; s=arc-20160816; b=UMXG60Ed0QPBUTYeChgUf29MyoQrcQ9WLQWHRThpjUq4PsA3/wjw2MHn4QohRWbr1/ oYgaE3gfuZlA9gFHkTCDH2nOoSBHx8VQd3ap+h+QONgX/2givePitLv88xIfPJH6XnzW vc/GUIJFYuFxTflcUHvYEXC+UTxldE+nlZmqJsn94IbUgPSIv6g0ZqU7Xk0x9rnsHDu3 lBRCcacrZSicVYEEaQQPSEb0fGsA5kZ2ajxY9+HmBS1WLZHVLfiDJWjGPN+Fi8VGcnEW We1orozSVs0C7MeLXqjXWwUNVJU4bP257SNjxF7XbBpSDqJ7vyzCoYpYK1jlkoJQjmUS LX3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=NYyAYGOqmeiQ5irt+FYs7TMwfNtyRl5zZkW45wNNMpU=; b=eXeAz+km9QE4coZkbqq1kIaV0jFaA2fq2tvJmdLBJ3jKJhUodSPQZZHzh8m1DfXI0/ NPTD6CW1TXvXJ2/i8Hzs6zMCLbwpPof1r/2mxCq4rQq79uCw8Ipto76cB0kwT7i8bf7H LVkhDsZ28jNYAb0zWjcRTTy3WbZCjcsadV2p6j/AUYcivPEuJ/p3bdm/K9QBMr0GVRyf HvPsidMQbDxRDz9YiRyTLudvlJHOCYFSww/sCd0qhY520j2R6DYTVNPN+AAikpADK9qm 3UGWbngTd5txPrT62CiZMNQAOJjCGBFqx+MdBSMtgf3NZbIqgo1Xb1Uggcs4B1xHkOvd sImg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UlDeKjQN; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bk31-20020a05620a1a1f00b00706b42c0870si3600425qkb.450.2023.01.19.03.16.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Jan 2023 03:16:23 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UlDeKjQN; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIStm-00069N-7j; Thu, 19 Jan 2023 06:16:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pIStk-00067a-N8 for qemu-arm@nongnu.org; Thu, 19 Jan 2023 06:16:00 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIStg-0001Wv-Ux for qemu-arm@nongnu.org; Thu, 19 Jan 2023 06:16:00 -0500 Received: by mail-wm1-x330.google.com with SMTP id q10-20020a1cf30a000000b003db0edfdb74so2606154wmq.1 for ; Thu, 19 Jan 2023 03:15:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=NYyAYGOqmeiQ5irt+FYs7TMwfNtyRl5zZkW45wNNMpU=; b=UlDeKjQNxxSDOawR0HpfQtS88GRgzS2twvK+ygife66xEGzpr0m89RJm2ZMgTytL9W yjHCw3l9OkBZEhvUQnOx/OFDbsPDrGFrhm7XpaY2UP2o4T1cWiVFwvq9iLmSDw/fmatA O3ZrG/pwZjn9ev+Y0wIxARjcqIla2DfZDJMAER+uzZhsCGAwBOOllS1bX3ZMWQU9BmrZ GFn/eOlYpIq1jT1uOoRZDexe/KvBxVSx7Ie+61JEEa58M5Gi1Ibzd7MJaxA32QFm626h VtWnvI6qFEtyBhBD77DoIB0poERe1pa0UVO4Sb75d7gto7pul1yVAujWllScjf9YvlEw CL1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NYyAYGOqmeiQ5irt+FYs7TMwfNtyRl5zZkW45wNNMpU=; b=2hp4PlQJSZLJyBudNerVeCFnR6NaGaWSVv2mw0g4wvDQJz9+XrSsMAyKR+S/2JfgKK CYkoJ3zqGFPsBgagwRLYUMFPXOIHPLVzPpw7+RBWJX3Zf5F7KCxyxDwEkUDSUa42yjcJ YZxGdnHi9OxhjDrTLjS0tW+BGwIwcp5Dwpoc4oOCzlECAQ2ikin6pEggdp9f5mnvPauQ d6JYv3l7Hxef03sP5QuMH/iVT2XZPJzRY16PLP0zr18c1Q5KunHarBuTRb2m1bKqwwjt XrsGn+mElWVeGwrass6koXstnCBZV+eBga9g/4lSVu4AE2bqCMwFQ8WnykShBHLx3dE9 TeAA== X-Gm-Message-State: AFqh2kr3XJyVP0nlXCrP6oJnADLw3BoVVPBe2a4MuXWhvezQbCHkS0e9 nmsrTObYmdfNdlLvAtR5tIWzHw== X-Received: by 2002:a05:600c:4928:b0:3d3:4aa6:4fe6 with SMTP id f40-20020a05600c492800b003d34aa64fe6mr10027991wmp.3.1674126949065; Thu, 19 Jan 2023 03:15:49 -0800 (PST) Received: from [192.168.30.216] ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id r9-20020a05600c458900b003d35acb0fd7sm4764266wmo.34.2023.01.19.03.15.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Jan 2023 03:15:48 -0800 (PST) Message-ID: <82250558-cd3e-b863-614d-468ad5f24643@linaro.org> Date: Thu, 19 Jan 2023 12:15:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 4/8] tests/qtest/migration-test: Build command line using GString API Content-Language: en-US To: "Dr. David Alan Gilbert" Cc: qemu-devel@nongnu.org, Paolo Bonzini , Laurent Vivier , Fabiano Rosas , Juan Quintela , Thomas Huth , qemu-arm@nongnu.org References: <20230119100537.5114-1-philmd@linaro.org> <20230119100537.5114-5-philmd@linaro.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=philmd@linaro.org; helo=mail-wm1-x330.google.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.089, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: dMPVGIPVDfDH On 19/1/23 11:59, Dr. David Alan Gilbert wrote: > * Philippe Mathieu-Daudé (philmd@linaro.org) wrote: >> Signed-off-by: Philippe Mathieu-Daudé >> --- >> tests/qtest/migration-test.c | 85 ++++++++++++++++++------------------ >> 1 file changed, 42 insertions(+), 43 deletions(-) >> >> diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c >> index dbde726adf..36e6074653 100644 >> --- a/tests/qtest/migration-test.c >> +++ b/tests/qtest/migration-test.c >> @@ -582,13 +582,13 @@ typedef struct { >> static int test_migrate_start(QTestState **from, QTestState **to, >> const char *uri, MigrateStart *args) >> { > > bit of a big change with lots of things moving around, I think it's > mostly OK but... I'll see how to split. >> + g_autoptr(GString) cmd_common = NULL; >> g_autofree gchar *arch_source = NULL; >> + g_autoptr(GString) cmd_source = NULL; >> g_autofree gchar *arch_target = NULL; >> - g_autofree gchar *cmd_source = NULL; >> - g_autofree gchar *cmd_target = NULL; >> - const gchar *ignore_stderr; >> + g_autoptr(GString) cmd_target = NULL; >> + const gchar *ignore_stderr = NULL; >> g_autofree char *bootpath = NULL; >> - g_autofree char *shmem_opts = NULL; >> g_autofree char *shmem_path = NULL; >> const char *arch = qtest_get_arch(); >> const char *machine_opts = NULL; >> @@ -602,6 +602,12 @@ static int test_migrate_start(QTestState **from, QTestState **to, >> } >> >> got_stop = false; >> + >> + cmd_common = g_string_new(""); >> + g_string_append(cmd_common, "-accel tcg "); >> + g_string_append_printf(cmd_common, "-accel kvm%s ", >> + args->use_dirty_ring ? ",dirty-ring-size=4096" : ""); >> + > > Isn't that swapping the order of -accel tcg and -accel kvm ? > In the original it's > g_strdup_printf("-accel kvm%s -accel tcg%s%s " > > I think you're ending up with tcg first? Oops good catch, thanks!