From nobody Sun Apr 28 13:10:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1638206305110668.189614202042; Mon, 29 Nov 2021 09:18:25 -0800 (PST) Received: from localhost ([::1]:49122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrkIG-0004V3-Fn for importer@patchew.org; Mon, 29 Nov 2021 12:18:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrkEx-0002QJ-Sa for qemu-devel@nongnu.org; Mon, 29 Nov 2021 12:14:55 -0500 Received: from [2a00:1450:4864:20::42f] (port=39533 helo=mail-wr1-x42f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrkEw-0001Tc-B0 for qemu-devel@nongnu.org; Mon, 29 Nov 2021 12:14:55 -0500 Received: by mail-wr1-x42f.google.com with SMTP id a18so38434963wrn.6 for ; Mon, 29 Nov 2021 09:14:53 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id 38sm14823247wrc.1.2021.11.29.09.14.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 09:14:50 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id D7A3B1FF98; Mon, 29 Nov 2021 17:14:49 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lyxCRPNO6Jc52Ko0I+nv2kkDmAau474j9b256EDB6Mw=; b=JChVEm8T2v7horwNGPkAAZNNKFmrTVI8fCjrWDE832Y79cT0LaXj8/UTX7EzeHj5g4 Qyn5N3ZKGtcmVqfnEoAW9kDc9LyUjVWeDTmE+AGaIDznPSacHh8lCwGIZSLRyANY4QaM yJ1UQvnXUwiADtf97AO4F2UwZDlvD68xNnl/tzKur3abKivMFM4lbcltk9hWwLqs+0ZL Cp23g8ox3IpxwnOQfjm3vvTFfzLrPu9tadL9y1GUhYu1Gv60Yum1UKRrTGeOdYKWYqWT e3eNhYj/BQph9sbReW3gZPJmLYHdEWg8ZTE9cVqNb4FkU4QlkAOIxKtAnopxqUs8tsRi 3Z6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lyxCRPNO6Jc52Ko0I+nv2kkDmAau474j9b256EDB6Mw=; b=TQT3DbD69i8ePCGpebS6zA2TqCy2Sa2Y/2r2s1L8Oq4vgduR5Ld49K+gXHif/+q8kP zJmSs3wh5/x/ZbOUvLsDW+yfAqTlkIaIsMhs32w3wl0TxDY1GzkTyxNzPnO+UzdGGYed 6qRv84qIlyA6wNhcDwgnmOy1KoXXdOpxM/0kPD3kCMTjbAolslNaTB5ZLU1GC45O9IqG Fha/YV+BjbN+bFkD7Mmr1p2ZbHNHZtnuwubJNuSyVLmdYJHb5mHm/SEzd3GsnEgQcV/Q ouv1raq2pqA3Hdc6d7xmboM3nCOQOQaDbw0uvC+skip2hX2E9Yx4euh2qREfPX9w4vCP eVbg== X-Gm-Message-State: AOAM532xIaYuE4SK5EVSVC1Rc4ThVimSHWGV5iZ4gs28ZzJa8eJluJMl 5PAg4BCdmKBiMJCF3mRSkZ64xQ== X-Google-Smtp-Source: ABdhPJzi9DVl2p/zLGRMU5AiSal0wZIyF31qVKPlTYzoqYaxWt2US2PwzYLMsVusXY/W6mD1el9MXA== X-Received: by 2002:a5d:5272:: with SMTP id l18mr35642566wrc.208.1638206092006; Mon, 29 Nov 2021 09:14:52 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: richard.henderson@linaro.org, peter.maydell@linaro.org Subject: [PULL 1/8] accel/tcg: introduce CF_NOIRQ Date: Mon, 29 Nov 2021 17:14:42 +0000 Message-Id: <20211129171449.4176301-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211129171449.4176301-1-alex.bennee@linaro.org> References: <20211129171449.4176301-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42f (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42f.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1638206306675100001 Here we introduce a new compiler flag to disable the checking of exit request (icount_decr.u32). This is useful when we want to ensure the next block cannot be preempted by an asynchronous event. Suggested-by: Richard Henderson Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson Message-Id: <20211129140932.4115115-2-alex.bennee@linaro.org> diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 6bb2a0f7ec..35d8e93976 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -503,6 +503,7 @@ struct TranslationBlock { #define CF_USE_ICOUNT 0x00020000 #define CF_INVALID 0x00040000 /* TB is stale. Set with @jmp_lock hel= d */ #define CF_PARALLEL 0x00080000 /* Generate code for a parallel contex= t */ +#define CF_NOIRQ 0x00100000 /* Generate an uninterruptible TB */ #define CF_CLUSTER_MASK 0xff000000 /* Top 8 bits are cluster ID */ #define CF_CLUSTER_SHIFT 24 =20 diff --git a/include/exec/gen-icount.h b/include/exec/gen-icount.h index 610cba58fe..c57204ddad 100644 --- a/include/exec/gen-icount.h +++ b/include/exec/gen-icount.h @@ -21,7 +21,6 @@ static inline void gen_tb_start(const TranslationBlock *t= b) { TCGv_i32 count; =20 - tcg_ctx->exitreq_label =3D gen_new_label(); if (tb_cflags(tb) & CF_USE_ICOUNT) { count =3D tcg_temp_local_new_i32(); } else { @@ -42,7 +41,19 @@ static inline void gen_tb_start(const TranslationBlock *= tb) icount_start_insn =3D tcg_last_op(); } =20 - tcg_gen_brcondi_i32(TCG_COND_LT, count, 0, tcg_ctx->exitreq_label); + /* + * Emit the check against icount_decr.u32 to see if we should exit + * unless we suppress the check with CF_NOIRQ. If we are using + * icount and have suppressed interruption the higher level code + * should have ensured we don't run more instructions than the + * budget. + */ + if (tb_cflags(tb) & CF_NOIRQ) { + tcg_ctx->exitreq_label =3D NULL; + } else { + tcg_ctx->exitreq_label =3D gen_new_label(); + tcg_gen_brcondi_i32(TCG_COND_LT, count, 0, tcg_ctx->exitreq_label); + } =20 if (tb_cflags(tb) & CF_USE_ICOUNT) { tcg_gen_st16_i32(count, cpu_env, @@ -74,8 +85,10 @@ static inline void gen_tb_end(const TranslationBlock *tb= , int num_insns) tcgv_i32_arg(tcg_constant_i32(num_insns))); } =20 - gen_set_label(tcg_ctx->exitreq_label); - tcg_gen_exit_tb(tb, TB_EXIT_REQUESTED); + if (tcg_ctx->exitreq_label) { + gen_set_label(tcg_ctx->exitreq_label); + tcg_gen_exit_tb(tb, TB_EXIT_REQUESTED); + } } =20 #endif --=20 2.30.2 From nobody Sun Apr 28 13:10:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1638206720650387.50500706159494; Mon, 29 Nov 2021 09:25:20 -0800 (PST) Received: from localhost ([::1]:37088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrkP1-0007Qo-EP for importer@patchew.org; Mon, 29 Nov 2021 12:25:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrkF3-0002Su-Qi for qemu-devel@nongnu.org; Mon, 29 Nov 2021 12:15:01 -0500 Received: from [2a00:1450:4864:20::330] (port=55060 helo=mail-wm1-x330.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrkF1-0001Tu-JX for qemu-devel@nongnu.org; Mon, 29 Nov 2021 12:15:01 -0500 Received: by mail-wm1-x330.google.com with SMTP id i12so15274637wmq.4 for ; Mon, 29 Nov 2021 09:14:56 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id m34sm25918147wms.25.2021.11.29.09.14.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 09:14:50 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id F29F51FF99; Mon, 29 Nov 2021 17:14:49 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Rlh5dx+JLtLLbtjX1Hc1RwZUVYx8Qo0Y7kdSVPcCdrQ=; b=IFyAje8GFZ37QsFuIcIG/6/tf/HNVcnuu+TlH/c9xjYYxDJiB0sHp5VLe15q0Tc/T8 vvM9PzVK80n9jpriyzyzWzxQOYZ/5yuL/ebREfI4ytbrKbgAJNzRE0rKMHcDpZS+7iWd fM76fIQnEWQQvnZZ2v8uW5xdW7lKF8S0od+5bvS66iOK0FaItC4r6YsVj+tkkeX1tA/E SoWR3sqYVZRqecv30cg5vUFkv9j9Wko7VVdEN5i9sbcUH7pLopg+8Tb0LypqJgZpgSL1 KqjcxuNn7NejRy5l8qKrF0iA7sSx+jRb2r6LWuAS+Ef1qWn6p5YZ5rVvxhOfrrSdw1Ij BIeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Rlh5dx+JLtLLbtjX1Hc1RwZUVYx8Qo0Y7kdSVPcCdrQ=; b=Wg3UkwKFtbsVDF/mFG1pUrKYeSFufg15xAchocx5xyRFM4lI10BYuyH2zz1P8fgYRg GTwMO76LxOVA7lCaKY58tS0XuBESJIEKROa5ZCXYg2dtnxQwxmNANS85bLUVPwy8MDcx PisVl7JZpO3qKy6APC+1F2UJTEjYh1MUkEyY+7vnzVIuLIrFN074m9tU8hgDD6ETCV/j V57Wbkrz0qWtvGl2RkPWEmzv5qspvn8GgEL7YtLAVn1l2pD2MADp4K677qjUf9vH8F7N MZKMIhI0p6OOl+BhpJ9qkZ3KDLjdPuw8ICqz6itJ/Ej+fBu8zOupJlNDE/67CBPskHDg frdw== X-Gm-Message-State: AOAM531T5Q4Eo4rbawEU69EH4zWH5YPoj01K36w35aEkFdWTSslO7Ps3 jX21WV5CUFlohiaKzwEbB2dMjQ== X-Google-Smtp-Source: ABdhPJxGFZl2wSoBTTdw92Wifz/jIQYxfJYIoBwxM8+P14KMc8S3mAlGnDeM+Xqr0x6h/M9Tcv/lEg== X-Received: by 2002:a05:600c:2308:: with SMTP id 8mr37255511wmo.179.1638206095350; Mon, 29 Nov 2021 09:14:55 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: richard.henderson@linaro.org, peter.maydell@linaro.org Subject: [PULL 2/8] accel/tcg: suppress IRQ check for special TBs Date: Mon, 29 Nov 2021 17:14:43 +0000 Message-Id: <20211129171449.4176301-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211129171449.4176301-1-alex.bennee@linaro.org> References: <20211129171449.4176301-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::330 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x330.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pavel Dovgalyuk , David Hildenbrand , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org, Peter Xu , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1638206721654100001 When we set cpu->cflags_next_tb it is because we want to carefully control the execution of the next TB. Currently there is a race that causes the second stage of watchpoint handling to get ignored if an IRQ is processed before we finish executing the instruction that triggers the watchpoint. Use the new CF_NOIRQ facility to avoid the race. We also suppress IRQs when handling precise self modifying code to avoid unnecessary bouncing. Signed-off-by: Alex Benn=C3=A9e Cc: Pavel Dovgalyuk Fixes: https://gitlab.com/qemu-project/qemu/-/issues/245 Reviewed-by: Richard Henderson Message-Id: <20211129140932.4115115-3-alex.bennee@linaro.org> diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c index 2d14d02f6c..409ec8c38c 100644 --- a/accel/tcg/cpu-exec.c +++ b/accel/tcg/cpu-exec.c @@ -721,6 +721,15 @@ static inline bool need_replay_interrupt(int interrupt= _request) static inline bool cpu_handle_interrupt(CPUState *cpu, TranslationBlock **last_tb) { + /* + * If we have requested custom cflags with CF_NOIRQ we should + * skip checking here. Any pending interrupts will get picked up + * by the next TB we execute under normal cflags. + */ + if (cpu->cflags_next_tb !=3D -1 && cpu->cflags_next_tb & CF_NOIRQ) { + return false; + } + /* Clear the interrupt flag now since we're processing * cpu->interrupt_request and cpu->exit_request. * Ensure zeroing happens before reading cpu->exit_request or diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index bd0bb81d08..bd71db59a9 100644 --- a/accel/tcg/translate-all.c +++ b/accel/tcg/translate-all.c @@ -1738,7 +1738,7 @@ tb_invalidate_phys_page_range__locked(struct page_col= lection *pages, if (current_tb_modified) { page_collection_unlock(pages); /* Force execution of one insn next time. */ - cpu->cflags_next_tb =3D 1 | curr_cflags(cpu); + cpu->cflags_next_tb =3D 1 | CF_NOIRQ | curr_cflags(cpu); mmap_unlock(); cpu_loop_exit_noexc(cpu); } @@ -1906,7 +1906,7 @@ static bool tb_invalidate_phys_page(tb_page_addr_t ad= dr, uintptr_t pc) #ifdef TARGET_HAS_PRECISE_SMC if (current_tb_modified) { /* Force execution of one insn next time. */ - cpu->cflags_next_tb =3D 1 | curr_cflags(cpu); + cpu->cflags_next_tb =3D 1 | CF_NOIRQ | curr_cflags(cpu); return true; } #endif diff --git a/softmmu/physmem.c b/softmmu/physmem.c index 314f8b439c..3524c04c2a 100644 --- a/softmmu/physmem.c +++ b/softmmu/physmem.c @@ -912,7 +912,7 @@ void cpu_check_watchpoint(CPUState *cpu, vaddr addr, va= ddr len, */ if (!cpu->can_do_io) { /* Force execution of one insn next time. */ - cpu->cflags_next_tb =3D 1 | CF_LAST_IO | curr_cflags(c= pu); + cpu->cflags_next_tb =3D 1 | CF_LAST_IO | CF_NOIRQ | cu= rr_cflags(cpu); cpu_loop_exit_restore(cpu, ra); } /* @@ -946,7 +946,7 @@ void cpu_check_watchpoint(CPUState *cpu, vaddr addr, va= ddr len, cpu_loop_exit(cpu); } else { /* Force execution of one insn next time. */ - cpu->cflags_next_tb =3D 1 | CF_LAST_IO | curr_cflags(cpu); + cpu->cflags_next_tb =3D 1 | CF_LAST_IO | CF_NOIRQ | curr_c= flags(cpu); mmap_unlock(); cpu_loop_exit_noexc(cpu); } --=20 2.30.2 From nobody Sun Apr 28 13:10:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1638206445620647.3267890515729; Mon, 29 Nov 2021 09:20:45 -0800 (PST) Received: from localhost ([::1]:55344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrkKa-0000OJ-IW for importer@patchew.org; Mon, 29 Nov 2021 12:20:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrkF4-0002Ua-N5 for qemu-devel@nongnu.org; Mon, 29 Nov 2021 12:15:02 -0500 Received: from [2a00:1450:4864:20::432] (port=35731 helo=mail-wr1-x432.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrkF1-0001Ty-MC for qemu-devel@nongnu.org; Mon, 29 Nov 2021 12:15:02 -0500 Received: by mail-wr1-x432.google.com with SMTP id i5so38418167wrb.2 for ; Mon, 29 Nov 2021 09:14:56 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id l5sm17256249wrs.59.2021.11.29.09.14.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 09:14:50 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 166831FF9A; Mon, 29 Nov 2021 17:14:50 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pSXjooYIqUSopMaI8U32omJPUXeLHjnCad+z87RE0LI=; b=spHcISJNgE1rnTte1rq7lSQ+sM6M4Nb393v/D9F3BEPxcq0C3zRr1og1AgP6pE3jXm dMqlOpkYDdSAU0E9BT76saS8VIQQV7Pn4bCg/SWe8vzKO2hS17nTKoykjDzzigB5wSYd 4ZCUz9i7rjkZsqEBriuHXzfGvYcf450KLL5v4LCJz1utsq+S1y+uFGWSYi/T6JPH71nR S/R6jZtkIYjBI48dVeHZX7NHl7qwFGXS/dB3Oy21ph7g+g9lNSq+szsYHvsAzZHU2Nca Tzgc8b1UTnU6hN2ECC5aGXhqq6AgIV3UP2wAlhvJrIGxSvsNVctm/+qgQ0PTgzwg5leH A0Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pSXjooYIqUSopMaI8U32omJPUXeLHjnCad+z87RE0LI=; b=dIjJ4oP+WoHSFmIFH1URFSdkImfS1/qRiG7+YzrCEUuedDdgPmq9c41vUCeGcB3TJA kHkk94u1ynn2wgcl+BAjkrY1XHA5y2wmXXAzO2TYtAVn8wKoLgVlXzlpZnyxt/2inzTN IC2IZ84cnoEDsQnhHSAR0ldks4n/BOvfBetoDhpUCy0/FfIOTsamPT6B/juCJhov28Q6 TOYSVh6pz70bHpgbO6v+VHfpiYumhRb7f6FbCbHRcI25JhDjd5BSu2SvflCwgKqRhRVV a/50KZchpb8a1R5eCH1DrLEfKAUojK00c3wBLo+eZhTR7EutaMcU+sK7T3urvNS608k5 4NJw== X-Gm-Message-State: AOAM532BXvFA3G+W0WCVcbflkj4cQfMoRnGgdg0cFB4HJhJRBAmDOgCj y2IwDMBrnj7rGuD3UKyYRT4svg== X-Google-Smtp-Source: ABdhPJwsPbmHlkRscgUJqrFcQobUB5eXV/fEJ1DCdO1qrf4gbLwxTv3k/KznNWgUrQTkwKBIcLD8ow== X-Received: by 2002:a5d:5151:: with SMTP id u17mr36371708wrt.126.1638206095924; Mon, 29 Nov 2021 09:14:55 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: richard.henderson@linaro.org, peter.maydell@linaro.org Subject: [PULL 3/8] tests/avocado: fix tcg_plugin mem access count test Date: Mon, 29 Nov 2021 17:14:44 +0000 Message-Id: <20211129171449.4176301-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211129171449.4176301-1-alex.bennee@linaro.org> References: <20211129171449.4176301-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::432 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Beraldo Leal , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org, Wainer dos Santos Moschetta , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Cleber Rosa , Alexandre Iooss , Mahmoud Mandour , =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1638206446232100003 When we cleaned up argument handling the test was missed. Fixes: 5ae589faad ("tests/plugins/mem: introduce "track" arg and make args = not positional") Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20211129140932.4115115-4-alex.bennee@linaro.org> diff --git a/tests/avocado/tcg_plugins.py b/tests/avocado/tcg_plugins.py index 9ca1515c3b..642d2e49e3 100644 --- a/tests/avocado/tcg_plugins.py +++ b/tests/avocado/tcg_plugins.py @@ -131,7 +131,7 @@ def test_aarch64_virt_mem_icount(self): suffix=3D".log") =20 self.run_vm(kernel_path, kernel_command_line, - "tests/plugin/libmem.so,arg=3Dboth", plugin_log.name, + "tests/plugin/libmem.so,inline=3Dtrue,callback=3Dtrue"= , plugin_log.name, console_pattern, args=3D('-icount', 'shift=3D1')) =20 --=20 2.30.2 From nobody Sun Apr 28 13:10:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1638206543142381.38365070171506; Mon, 29 Nov 2021 09:22:23 -0800 (PST) Received: from localhost ([::1]:59282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrkMA-0003CZ-3G for importer@patchew.org; Mon, 29 Nov 2021 12:22:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrkF3-0002S9-5G for qemu-devel@nongnu.org; Mon, 29 Nov 2021 12:15:01 -0500 Received: from [2a00:1450:4864:20::42b] (port=36444 helo=mail-wr1-x42b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrkF1-0001U4-Ly for qemu-devel@nongnu.org; Mon, 29 Nov 2021 12:15:00 -0500 Received: by mail-wr1-x42b.google.com with SMTP id s13so38473339wrb.3 for ; Mon, 29 Nov 2021 09:14:58 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id e12sm18822253wrq.20.2021.11.29.09.14.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 09:14:55 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 229B61FF9B; Mon, 29 Nov 2021 17:14:50 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2GTULer4lRmEbboJn8akTz+dcWrDvvBiAJ4+IAIoMr4=; b=XYzivzY8xOq65zDWWt9v69xdSWPBC1LON34lWNZANJEG3fazQ1AluaHT9/dF+GOv1g gfChn4A0XVwrEG54r5I0KDwzd+waD6kOS0y+V3vWskQlOX4VgUy/uX6r1M2ardbl/SUO 9SB2VOse3rLo5jZ0oXAjVECUWHt1a6zHMbL+3CJDfmauKCmRqxr5s7s5gzYWRCXBeVDw EmsXNGx4ZY62oIZ9fAM1+Ee4wq94fCJEZNq+EREUD2aZ7FO1KY5W5heLmNtNzQFzXhK/ chBcndsIYxLQtzqQfl413KU2BeUDYSc8AD28bVKr/ILsMe1nRWYY49lYCU1rkgu83uj4 yfIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2GTULer4lRmEbboJn8akTz+dcWrDvvBiAJ4+IAIoMr4=; b=al4rVyvOsc1vautmrloAriswcBHELBvVXWeoCpfj+Ld69cIwfk1b3f7Nqfne0yHL3I RDgGiJOncwpwBpoAKEF8y9zubKTcdeFTY8soHZaYJVJllpQvhHaMib8TfLGOx1BIkFGm NRPtOrMh7vNvBIRHdKSDKKu9bva3fOYNr74VBs4qbCCj+/susGdfX/VXiVqbK88BszVK bGsz7L4pFZMB8XLcLlGM5Lv8w68So8uIMM980VRtrzx9kgu5On2qOnttskfRsqkxFdhZ w9CEK9HGOyL/mbPWQGI+4I2RZaHCB2BnbGISTh+0MTyNRrs+zHK2CcqO5119GpKAUIm5 V9lA== X-Gm-Message-State: AOAM5301xE0yBiNgWBPtrZr5zYqAx+/v26dPoqbYc9HqLMDoPGspFsCk ZJwSUa1LZ4OVpdZ0Ymjp38izIw== X-Google-Smtp-Source: ABdhPJwuTU1esWOlzvnB/EAY5Zo8wI4pDIURaCOh940f8b6TxpDkb0Zk90bTiQ0MzOZPThxgNX1D2w== X-Received: by 2002:a5d:44d1:: with SMTP id z17mr36082166wrr.143.1638206097962; Mon, 29 Nov 2021 09:14:57 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: richard.henderson@linaro.org, peter.maydell@linaro.org Subject: [PULL 4/8] plugins/meson.build: fix linker issue with weird paths Date: Mon, 29 Nov 2021 17:14:45 +0000 Message-Id: <20211129171449.4176301-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211129171449.4176301-1-alex.bennee@linaro.org> References: <20211129171449.4176301-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42b (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42b.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Stefan Weil , qemu-devel@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Alexandre Iooss , Mahmoud Mandour , =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1638206545447100001 Signed-off-by: Alex Benn=C3=A9e Tested-by: Stefan Weil Fixes: https://gitlab.com/qemu-project/qemu/-/issues/712 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20211129140932.4115115-5-alex.bennee@linaro.org> diff --git a/plugins/meson.build b/plugins/meson.build index aeb386ebae..b3de57853b 100644 --- a/plugins/meson.build +++ b/plugins/meson.build @@ -2,9 +2,9 @@ plugin_ldflags =3D [] # Modules need more symbols than just those in plugins/qemu-plugins.symbols if not enable_modules if 'CONFIG_HAS_LD_DYNAMIC_LIST' in config_host - plugin_ldflags =3D ['-Wl,--dynamic-list=3D' + (meson.project_build_roo= t() / 'qemu-plugins-ld.symbols')] + plugin_ldflags =3D ['-Wl,--dynamic-list=3Dqemu-plugins-ld.symbols'] elif 'CONFIG_HAS_LD_EXPORTED_SYMBOLS_LIST' in config_host - plugin_ldflags =3D ['-Wl,-exported_symbols_list,' + (meson.project_bui= ld_root() / 'qemu-plugins-ld64.symbols')] + plugin_ldflags =3D ['-Wl,-exported_symbols_list,qemu-plugins-ld64.symb= ols'] endif endif =20 --=20 2.30.2 From nobody Sun Apr 28 13:10:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1638206314448385.1013148867203; Mon, 29 Nov 2021 09:18:34 -0800 (PST) Received: from localhost ([::1]:49412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrkIS-0004hE-VV for importer@patchew.org; Mon, 29 Nov 2021 12:18:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrkF4-0002UO-Ig for qemu-devel@nongnu.org; Mon, 29 Nov 2021 12:15:02 -0500 Received: from [2a00:1450:4864:20::333] (port=34451 helo=mail-wm1-x333.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrkF2-0001UA-2r for qemu-devel@nongnu.org; Mon, 29 Nov 2021 12:15:02 -0500 Received: by mail-wm1-x333.google.com with SMTP id m25-20020a7bcb99000000b0033aa12cdd33so6308984wmi.1 for ; Mon, 29 Nov 2021 09:14:59 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id t8sm17726614wmq.32.2021.11.29.09.14.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 09:14:55 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 38DC01FF9C; Mon, 29 Nov 2021 17:14:50 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=x+l21wdy++j9QmwvxPd2IqpwqliVMr1XUKlqo6h12D4=; b=DRQn2yd5NGsW0YIqsADrsxZlhGReayCc+sMSS6Vwo1t4//eNJa6hianzHRF6QSM5E1 WL7ru5ouYW3EWvHO1pb/yvqP+irqS6dPL4Ji5hXzleecsVFP3j6C5dwn3TXNY17ZwmDu v1mHxQaC+/gQTzqt8IVBEgej6r63dWlHJFQoUQVRII5ii+kdFcs81J+/BhWGLuu7z9b2 LAvhNJ6D6puYt9l0cZyLTEUj/MlsaesM54hHJee1Bpm1l9gZW+DzKczw+dRFqlSSeihX 2dMw4JilL/87tK+sNnnrh4xho50sQy9BLp8NRnCwrmJBcsAYY5zH09QGq+Yq7m2Q4tTX TR/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=x+l21wdy++j9QmwvxPd2IqpwqliVMr1XUKlqo6h12D4=; b=IHzeZeLXsbgxFK0808GtSzl1X+R3+kA7Rd7bLxjQCC8pZ4iGIQMsTIimQ9GZn//tGO DZBQUlojLziPuYHVWggwbYSHWo08ApMnhhGHfRdGhnMJb67wLoWAXuQ7RDQ9GWX7wk8/ qFCV9PWRS929Hebx0LiQzOv+eJ+a0xsezUDd+0scIaFwrNjb4nMrBG43zV3bzRVydE+u xuzm9SlHizUflTgGLth2+khPvnEcSCfY6LBP2qpS56gTGYhi6GZfeZ1sbru/xvUER4eS IWbJb4G3to0j8la2GnnBffYXwgxMJILBzBWpkRBVUOOhNKVXQe9Zr7afJPApXl3Zw33E aWew== X-Gm-Message-State: AOAM533pA90XBPh4ae5D4MpETlODyijJAqeO1KeCPI24xFXaZR2UHYVh vdHmQS+3BPtBH9u7uQpquSiZ5Q== X-Google-Smtp-Source: ABdhPJwQHbevS0FPib5ZdUmWJQn7bZfecONQzInAks6GDe19XFuFhbOaR13amsFD9p7/MjwWhBleQw== X-Received: by 2002:a1c:a58d:: with SMTP id o135mr37524229wme.93.1638206098815; Mon, 29 Nov 2021 09:14:58 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: richard.henderson@linaro.org, peter.maydell@linaro.org Subject: [PULL 5/8] gdbstub: handle a potentially racing TaskState Date: Mon, 29 Nov 2021 17:14:46 +0000 Message-Id: <20211129171449.4176301-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211129171449.4176301-1-alex.bennee@linaro.org> References: <20211129171449.4176301-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::333 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x333.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1638206315262100001 When dealing with multi-threaded userspace programs there is a race condition with the addition of cpu->opaque (aka TaskState). This is due to cpu_copy calling cpu_create which updates the global vCPU list. However the task state isn't set until later. This shouldn't be a problem because the new thread can't have executed anything yet but the gdbstub code does liberally iterate through the CPU list in various places. This sticking plaster ensure the not yet fully realized vCPU is given an pid of -1 which should be enough to ensure it doesn't show up anywhere else. In the longer term I think the code that manages the association between vCPUs and attached GDB processes could do with a clean-up and re-factor. Signed-off-by: Alex Benn=C3=A9e Tested-by: Richard Henderson Reviewed-by: Richard Henderson Cc: Richard Henderson Resolves: https://gitlab.com/qemu-project/qemu/-/issues/730 Message-Id: <20211129140932.4115115-6-alex.bennee@linaro.org> diff --git a/gdbstub.c b/gdbstub.c index 23baaef40e..141d7bc4ec 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -94,7 +94,7 @@ static inline int cpu_gdb_index(CPUState *cpu) { #if defined(CONFIG_USER_ONLY) TaskState *ts =3D (TaskState *) cpu->opaque; - return ts->ts_tid; + return ts ? ts->ts_tid : -1; #else return cpu->cpu_index + 1; #endif --=20 2.30.2 From nobody Sun Apr 28 13:10:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1638206322495645.685402286679; Mon, 29 Nov 2021 09:18:42 -0800 (PST) Received: from localhost ([::1]:49592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrkIa-0004pS-Up for importer@patchew.org; Mon, 29 Nov 2021 12:18:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrkF6-0002Y8-IG for qemu-devel@nongnu.org; Mon, 29 Nov 2021 12:15:04 -0500 Received: from [2a00:1450:4864:20::42a] (port=44914 helo=mail-wr1-x42a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrkF4-0001Ub-2Y for qemu-devel@nongnu.org; Mon, 29 Nov 2021 12:15:04 -0500 Received: by mail-wr1-x42a.google.com with SMTP id l16so38397943wrp.11 for ; Mon, 29 Nov 2021 09:15:01 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id v15sm14323079wro.35.2021.11.29.09.14.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 09:14:55 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 439B61FF9D; Mon, 29 Nov 2021 17:14:50 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bhQs6QxD/f/fgQr3W8xnrVDVaMbkSmn+kxyq8ZZ62CM=; b=VZWWUylMr+WZhjlKnpL/ra2kh3wSKBPpatUPDrmZ6lZB5tynzTiJVwRfEihvFRkVHv +VjEviTDHNoOc1NY7rXiIAW3ZRVMv5pKj2Fz0ZN6cL/iEri+pf87cEimo9li5uAPK+Zr MLl1SLaJ+flE4RAS9LYGJOyaK4qnJPsJ49HyxHCv2Wm/dnuuNGHBJ+w8pnkOQRXUZS7D pbyJMaHObhXykrl+yt5a1wFWzI9OEdjxZoEwqJzb/bg3o9l97LZ7v3wnbq0iAuyUJCBf L6Ba6VxBiYd4ewNbUORmlrmMd6mpjfSjeQRVRLtLjAgzZZFRvAjI0EfkkHu8OAlV1AkF 450A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bhQs6QxD/f/fgQr3W8xnrVDVaMbkSmn+kxyq8ZZ62CM=; b=un7z3ygR7Y+RK5m6/Fv7/48DpNmhm2j7PFObK7P8WF2beqymykGkEQFh7ekcLjnkeP 032Op2nWMGTBlFD6TyXmrp1bOtxyWP9vrKFVeGDEaktiiU7VCrtVGMN9XldLuirFrdHm 9S124owXGqf7nibhcEbqBfsfTRs1LBMYSWFMKCHcAwIukAPU9mQaVDVML0poCv88+1MT SxYwT33qKQxr/dv66IjplnVdRqq+ttE2d/b9jSB7UfQGHnt+KICrrvVu94GYmJ7VjUMM c0eEIEi7iCvxf2jrgqXhE2R7sJD+f65F1eqjRQx5XPBVOAfHnsrok9z/ELTkfVDQ18sh zCsQ== X-Gm-Message-State: AOAM531sXAX2j/HNdVn3Y2pDbVB9bfiXIn8E49VwVG0hnY+xzrlGgkIm p/ZUOOXVLadnu17stFRuNd3dFg== X-Google-Smtp-Source: ABdhPJw2TxkNRAknLxatUrHxqwp4NlGaKdJamfIsZoZHiwf5djiU6NK2kis2tTdyQu92NrPwj/55Cw== X-Received: by 2002:adf:82f7:: with SMTP id 110mr35464667wrc.111.1638206100736; Mon, 29 Nov 2021 09:15:00 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: richard.henderson@linaro.org, peter.maydell@linaro.org Subject: [PULL 6/8] MAINTAINERS: Remove me as a reviewer for the build and test/avocado Date: Mon, 29 Nov 2021 17:14:47 +0000 Message-Id: <20211129171449.4176301-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211129171449.4176301-1-alex.bennee@linaro.org> References: <20211129171449.4176301-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42a (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Willian Rampazzo , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org, Beraldo Leal Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1638206323767100001 From: Willian Rampazzo Remove me as a reviewer for the Build and test automation and the Integration Testing with the Avocado Framework and add Beraldo Leal. Signed-off-by: Willian Rampazzo Reviewed-by: Beraldo Leal Message-Id: <20211122191124.31620-1-willianr@redhat.com> Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20211129140932.4115115-7-alex.bennee@linaro.org> diff --git a/MAINTAINERS b/MAINTAINERS index d3879aa3c1..8f5156bfa7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3469,7 +3469,7 @@ M: Alex Benn=C3=A9e M: Philippe Mathieu-Daud=C3=A9 M: Thomas Huth R: Wainer dos Santos Moschetta -R: Willian Rampazzo +R: Beraldo Leal S: Maintained F: .github/lockdown.yml F: .gitlab-ci.yml @@ -3507,7 +3507,7 @@ W: https://trello.com/b/6Qi1pxVn/avocado-qemu R: Cleber Rosa R: Philippe Mathieu-Daud=C3=A9 R: Wainer dos Santos Moschetta -R: Willian Rampazzo +R: Beraldo Leal S: Odd Fixes F: tests/avocado/ =20 --=20 2.30.2 From nobody Sun Apr 28 13:10:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 163820655318675.73488224427581; Mon, 29 Nov 2021 09:22:33 -0800 (PST) Received: from localhost ([::1]:59484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrkMK-0003L2-8E for importer@patchew.org; Mon, 29 Nov 2021 12:22:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrkF6-0002Y7-Ho for qemu-devel@nongnu.org; Mon, 29 Nov 2021 12:15:04 -0500 Received: from [2a00:1450:4864:20::433] (port=40582 helo=mail-wr1-x433.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrkF5-0001Vi-1X for qemu-devel@nongnu.org; Mon, 29 Nov 2021 12:15:04 -0500 Received: by mail-wr1-x433.google.com with SMTP id t9so21426928wrx.7 for ; Mon, 29 Nov 2021 09:15:02 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id d15sm19552500wri.50.2021.11.29.09.14.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 09:14:56 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 592781FF9E; Mon, 29 Nov 2021 17:14:50 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xZRgt23Y60PR4fYaWNYKVxOYHOaixoKQNFILRYTHIFE=; b=EsinA5bXp0vCXx3yoOglIZB6jsOXSWGTW2jTT6ixI9YWUhUHWfO6/xSNt/HsMJvgg6 4tusve6Rhwll7k0E9uY1jE/1kq2GgGlGbIb8LsA/mDA8Fv2qBRJi0Z1BYm/0l9bYpPTY tMPaBnf+HF313dQJwUOrEYHQhIj6knWqO5A8s0kKctjZ4HVaDsiBniAczd9qr2UPt9NW QmqrWhWO4qC/lfVH//ZOicRK6hl9R7Q0r3Nvzf7GJk9bwWwJLQZmvxE+MAMrTdSmePuz +iRAN45ZF0sHn4IdYoAZCwnlNW88wiDEeRzxXYqhBw0r1ShyF2zqotja6WtKo2krgRnn Bixg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xZRgt23Y60PR4fYaWNYKVxOYHOaixoKQNFILRYTHIFE=; b=NeplJDpVx9a0LgHt5MCo9vAsx4cDFiH+0bFdwyk7ViHIw2yH5lxRaIHQn/3ZQYfJ67 esyNHQdqIWzLtW15EYILVL7lE3ZGmFMN0nRCJanOnOg9dfiRLUhoRih5GV6ppUlj3w+E cdpHQd8ryIfQ7NVX6oixpX0Z0ZKV4fj/fVR4/7U488dpx+ftEPugvXghZfDP5PHIxgCW LasUnDzgkBlfA3Eq/u+U0JHa4Ik0ObhBsuS9jCNLYN/Zh07cqVgVNIqIok1eJyrYTSGI S29csyirqVYigpuMRQtgo6cvzvedPfWntskG49q2ZZC2r1M3tvoefvuTJKuziMuDllKi 8fQA== X-Gm-Message-State: AOAM530yJYxKbSl8JiyaEncaXDwtrsEaLTA/DFeerYQcfZu8YMd3zkqh KejxDRQMAiDoJmFnpLpGlc2X6g== X-Google-Smtp-Source: ABdhPJwze1jbSSLm2hj85LlMZn+sTa88WWO2HeZZBGRYqwBfa636pYWjVfTaHRc/HL7ooP/webo5Dg== X-Received: by 2002:a05:6000:156a:: with SMTP id 10mr35412875wrz.87.1638206101572; Mon, 29 Nov 2021 09:15:01 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: richard.henderson@linaro.org, peter.maydell@linaro.org Subject: [PULL 7/8] MAINTAINERS: Add section for Aarch64 GitLab custom runner Date: Mon, 29 Nov 2021 17:14:48 +0000 Message-Id: <20211129171449.4176301-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211129171449.4176301-1-alex.bennee@linaro.org> References: <20211129171449.4176301-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::433 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x433.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1638206554736100001 From: Philippe Mathieu-Daud=C3=A9 Add a MAINTAINERS section to cover the GitLab YAML config file containing the jobs run on the custom runner sponsored by the Works On Arm project [*]. [*] https://developer.arm.com/solutions/infrastructure/works-on-arm Suggested-by: Thomas Huth Signed-off-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Alex Benn=C3=A9e Message-Id: <20211116163226.2719320-1-f4bug@amsat.org> Message-Id: <20211129140932.4115115-8-alex.bennee@linaro.org> diff --git a/MAINTAINERS b/MAINTAINERS index 8f5156bfa7..006a2293ba 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3511,6 +3511,12 @@ R: Beraldo Leal S: Odd Fixes F: tests/avocado/ =20 +GitLab custom runner (Works On Arm Sponsored) +M: Alex Benn=C3=A9e +M: Philippe Mathieu-Daud=C3=A9 +S: Maintained +F: .gitlab-ci.d/custom-runners/ubuntu-20.04-aarch64.yml + Documentation ------------- Build system architecture --=20 2.30.2 From nobody Sun Apr 28 13:10:10 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1638206721027787.2433736245952; Mon, 29 Nov 2021 09:25:21 -0800 (PST) Received: from localhost ([::1]:37238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrkP2-0007Wb-0K for importer@patchew.org; Mon, 29 Nov 2021 12:25:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrkF8-0002Zp-As for qemu-devel@nongnu.org; Mon, 29 Nov 2021 12:15:06 -0500 Received: from [2a00:1450:4864:20::434] (port=44023 helo=mail-wr1-x434.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrkF6-0001Wc-DE for qemu-devel@nongnu.org; Mon, 29 Nov 2021 12:15:05 -0500 Received: by mail-wr1-x434.google.com with SMTP id v11so38396409wrw.10 for ; Mon, 29 Nov 2021 09:15:04 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id f13sm18220065wmq.29.2021.11.29.09.14.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 09:14:56 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6F30C1FF9F; Mon, 29 Nov 2021 17:14:50 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VCqwrqjK7M0/foGUZbbwM5cH+2eIgsOnJoMiwsacNqQ=; b=MCI11MsAnbs4sSfQo6z4nRGhuNOJc3K4rITDIPSHDnzEypM8qPofA4obr62DJwsvcn r0fUpCBKu2eoykBYWHhJknJsunxfR1/iNKIFYQcBz3MMaQ4lBtcNNcShalY48LfI5Xtc Fdf72fezdGo13tm98uGZY29cg5C5JtUVDHwPefla1NMjY29ORd1wL6zfyE/zp1OWJG+a dWpWXYn3tKytW3D/T/mUvpzXgy+E6ZPKxTVK9L6JHiSOKKH6s3zDLnlWo5dbVikuefb9 H4kus2PGr8FsuUN3ckZg/SncA1rOLXh9UxPxhTF+AoHh9bRyPzA9VXaf2+HR+q53bWKy p1gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VCqwrqjK7M0/foGUZbbwM5cH+2eIgsOnJoMiwsacNqQ=; b=T3jVt3jFounG/VngVzmxfesLURe/AtDUorRE7jg8bm8kEJeuXkdEZLSy6ChCHVvvvv X+B5vU92vmayMb2b0x+qmOOAdoHFAMsMNxZFrFb70OTWubZISGxOe78ICGE++RA9oinA BxxyQlxJ6iNUjXE5Pp4M0AUNq6dBVUKqJdAS2Cm4Mybs5RrNI+fyFLiyqskLKXjXTmOh xeG8HVRM/9rb09YMTadA7J8EUmak0pDsrgTKye+UIA/9CLlaobmmKsSHr5dGCLF3KFa6 8rV+Zgc9puyUmfy7Gp8hByzEqu7aHmqryGSPaSwv/sYofQLORGIM7E5PjQPK7+SZ3T6U v5nQ== X-Gm-Message-State: AOAM53380doUkEGOOP/Wf42e1iFlzvan9bB9b/DrkjFUWNFNYyZvhDqe vaksRGMJ3CIDoyKmS5FbOKb7B/mtANYRNg== X-Google-Smtp-Source: ABdhPJxdnY6dtaFyBsRYQguxzQRBJp9q5Kch1M9qg0FCA7ugdDxtTdr/mtzuSBHchzpQ64dtXIB9EA== X-Received: by 2002:adf:8165:: with SMTP id 92mr37728935wrm.199.1638206103168; Mon, 29 Nov 2021 09:15:03 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: richard.henderson@linaro.org, peter.maydell@linaro.org Subject: [PULL 8/8] tests/plugin/syscall.c: fix compiler warnings Date: Mon, 29 Nov 2021 17:14:49 +0000 Message-Id: <20211129171449.4176301-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211129171449.4176301-1-alex.bennee@linaro.org> References: <20211129171449.4176301-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::434 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x434.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Iooss , Mahmoud Mandour , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org, Juro Bystricky Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1638206723124100003 From: Juro Bystricky Fix compiler warnings. The warnings can result in a broken build. This patch fixes warnings such as: In file included from /usr/include/glib-2.0/glib.h:111, from ../tests/plugin/syscall.c:13: ../tests/plugin/syscall.c: In function =E2=80=98print_entry=E2=80=99: /usr/include/glib-2.0/glib/glib-autocleanups.h:28:3: error: =E2=80=98out=E2= =80=99 may be used uninitialized in this function [-Werror=3Dmaybe-uninitialized] g_free (*pp); ^~~~~~~~~~~~ ../tests/plugin/syscall.c:82:23: note: =E2=80=98out=E2=80=99 was declared h= ere g_autofree gchar *out; ^~~ In file included from /usr/include/glib-2.0/glib.h:111, from ../tests/plugin/syscall.c:13: ../tests/plugin/syscall.c: In function =E2=80=98vcpu_syscall_ret=E2=80=99: /usr/include/glib-2.0/glib/glib-autocleanups.h:28:3: error: =E2=80=98out=E2= =80=99 may be used uninitialized in this function [-Werror=3Dmaybe-uninitialized] g_free (*pp); ^~~~~~~~~~~~ ../tests/plugin/syscall.c:73:27: note: =E2=80=98out=E2=80=99 was declared h= ere g_autofree gchar *out; ^~~ cc1: all warnings being treated as errors Signed-off-by: Juro Bystricky Signed-off-by: Alex Benn=C3=A9e Message-Id: <20211128011551.2115468-1-juro.bystricky@intel.com> Reviewed-by: Richard Henderson Message-Id: <20211129140932.4115115-9-alex.bennee@linaro.org> diff --git a/tests/plugin/syscall.c b/tests/plugin/syscall.c index 484b48de49..96040c578f 100644 --- a/tests/plugin/syscall.c +++ b/tests/plugin/syscall.c @@ -70,19 +70,17 @@ static void vcpu_syscall_ret(qemu_plugin_id_t id, unsig= ned int vcpu_idx, } g_mutex_unlock(&lock); } else { - g_autofree gchar *out; - out =3D g_strdup_printf("syscall #%" PRIi64 " returned -> %" PRIi6= 4 "\n", - num, ret); + g_autofree gchar *out =3D g_strdup_printf( + "syscall #%" PRIi64 " returned -> %" PRIi64 "\n", num, ret); qemu_plugin_outs(out); } } =20 static void print_entry(gpointer val, gpointer user_data) { - g_autofree gchar *out; SyscallStats *entry =3D (SyscallStats *) val; int64_t syscall_num =3D entry->num; - out =3D g_strdup_printf( + g_autofree gchar *out =3D g_strdup_printf( "%-13" PRIi64 "%-6" PRIi64 " %" PRIi64 "\n", syscall_num, entry->calls, entry->errors); qemu_plugin_outs(out); --=20 2.30.2