Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 57E4AEC145B for ; Tue, 3 Mar 2026 14:46:31 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vxR0r-0000uv-Dk; Tue, 03 Mar 2026 09:46:17 -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 1vxR0h-0000tZ-JY for qemu-devel@nongnu.org; Tue, 03 Mar 2026 09:46:08 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vxR0e-0004Fr-Li for qemu-devel@nongnu.org; Tue, 03 Mar 2026 09:46:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1772549163; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BrdlQ5T8ikU6P2SfLah3sHVhhePFNaBLUUPTRqmifig=; b=PMuH/1crLR80fhC8YH2gybc/EjoLVztb8DjXjZQCLdMtz1PNhyY7ixtZ76WaFD2FIb5VTm YhocfpbHdINbo1UNklXL/bJBQdk5OIV7JpAzOhwOUOONhqqKGVftrDIuNb6C9e+2Qx8gAb J2dphH6uy9uaKPcBO2QXdwDqeSNAkis= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-507-wSPUYb2oNeer6wwfY3EBUA-1; Tue, 03 Mar 2026 09:46:02 -0500 X-MC-Unique: wSPUYb2oNeer6wwfY3EBUA-1 X-Mimecast-MFC-AGG-ID: wSPUYb2oNeer6wwfY3EBUA_1772549161 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-439b3a26ebcso2129348f8f.3 for ; Tue, 03 Mar 2026 06:46:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772549161; x=1773153961; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:reply-to:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BrdlQ5T8ikU6P2SfLah3sHVhhePFNaBLUUPTRqmifig=; b=Bo4KOVdanfzBHitZXHq7Sk0pWRFuX1YLNif4bwAgdvJ4JFiveaguIUzvOD24niZlj4 sub1yuNSbzqHy+Nex3e7jOJ4v4VZ+sJcGPq2Pk0lOokFpaMtdSXx7rAvycldbgF1Z7R+ xd79i9HNdplkPo22xBo5BGlyTzekfdsJzDyk+73+TpHlFU5/9IeEeGADrgmsCmaVlQQ2 lAooA7r4xw7ZQr/kGf7DjiGNf9tq1m53+m912LJoR7vHg4OISGHpeWKzmKUs8zCUwNYE j4Hazbvp0Jy565GmCn7Ihjv5SOVhuWQrTNMKDSV28D0fA6UTYonmUSYSiu8ohgeKTDQC B1uA== X-Forwarded-Encrypted: i=1; AJvYcCXFRQKnRopUorHqB82tmcxqW4zDaXftRC0v3hveDLjsdHmz48GfFM21E4Tnc04A7dfKCiXBwMSfMz3+@nongnu.org X-Gm-Message-State: AOJu0Yyzof8hrxROeP1bix7G0RcImmWAhm4GA3EkCbCYRPjhs8gyHccX gY4z7KrSjGib5tsj7sQWWfyQ+9vJ5b8uXW2jWZyHEqo5gJhqoTZZmbsiwisE9irw2MBQlOWpTce jYKFaAOwlqpUcXpHz7dxRck+kgjsm4Kyy9sGBRQU7+yNRi+DT6RAe/0TS X-Gm-Gg: ATEYQzzRpWoBYTenHRTT/yEd1++DgeTYnYV+lvVdoJPzgo/MacEaD8yMZC4qJfoxafz jKKgLYRjSrxMG0b0OPjUA1II6zSpcnBKrODafa6Ufvyh9HOKe1v4+SNz7MLZgbyDoCaDI6ufggv r7k7SqI2UwKvCtPhf5ZtHV7k7eLsfb4M/pI+GOKOZlmwZhWnnV38OI35KfO1/IEZDSvYdcl5+el QfnqkhCLVwirzaIQJgsVcAiZ5DCrpjgIdw0ylaUZQj1TQ5w2LUlwm7Lw6P75YqsUcMAGNvVR4nU XUZs6vEZb+6DJseSP+WdjMJJEA/+o0aq5SgLuiTrjHf8JZn1+wUe+nL7HLi3EJMmgi4lPb8tvot enZ80W1Z2bbDC5b7K+TArCjO9QfqOapGH9WltsoZAbL3lkApNoOucIiZ+9jJ6ARw1Hdq1uA== X-Received: by 2002:a05:6000:2583:b0:439:c43a:acb6 with SMTP id ffacd0b85a97d-439c43aae46mr2223834f8f.10.1772549160737; Tue, 03 Mar 2026 06:46:00 -0800 (PST) X-Received: by 2002:a05:6000:2583:b0:439:c43a:acb6 with SMTP id ffacd0b85a97d-439c43aae46mr2223782f8f.10.1772549160243; Tue, 03 Mar 2026 06:46:00 -0800 (PST) Received: from ?IPV6:2a01:e0a:f0e:9070:527b:9dff:feef:3874? ([2a01:e0a:f0e:9070:527b:9dff:feef:3874]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-439b1b97927sm20159866f8f.28.2026.03.03.06.45.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Mar 2026 06:45:59 -0800 (PST) Message-ID: <22a006c7-dda0-455a-9f16-49064a1f06d7@redhat.com> Date: Tue, 3 Mar 2026 15:45:58 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/5] Improve traces on migration failure due to cpreg number mismatch Content-Language: en-US To: eric.auger.pro@gmail.com, qemu-devel@nongnu.org, qemu-arm@nongnu.org, peter.maydell@linaro.org, cohuck@redhat.com, sebott@redhat.com, peterx@redhat.com, philmd@linaro.org, alex.bennee@linaro.org References: <20260226100232.500781-1-eric.auger@redhat.com> From: Eric Auger In-Reply-To: <20260226100232.500781-1-eric.auger@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=170.10.129.124; envelope-from=eric.auger@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -5 X-Spam_score: -0.6 X-Spam_bar: / X-Spam_report: (-0.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.322, RCVD_IN_VALIDITY_SAFE_BLOCKED=1.141, SPF_HELO_PASS=-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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: eric.auger@redhat.com Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Hi Peter, On 2/26/26 11:01 AM, Eric Auger wrote: > This series comes as a follow-up of discussions held in > [PATCH v6 00/11] Mitigation of "failed to load > cpu:cpreg_vmstate_array_len" migration failures > (https://lore.kernel.org/all/20260126165445.3033335-1-eric.auger@redhat.com/) > > It only covers the improvement of the traces. Actual mitigations > will be handled in a separate series. > > When the number of CPU registers received in an incoming migration > stream is bigger than the number of CPU registers seen by the > destination we currently get the following error: > > "failed to load cpu:cpreg_vmstate_array_len" > > This series removes this cryptic message and explicitly outputs > which spurious registers cause the failures. Thank you for the diligent review! Hopefully I have taken into account all your comments in the v2 I've just sent. Eric > > Available at: > https://github.com/eauger/qemu/tree/cpreg_vmstate_array_len_traces > > Eric Auger (5): > vmstate: Introduce VMSTATE_VARRAY_INT32_ALLOC > target/arm/machine: Use VMSTATE_VARRAY_INT32_ALLOC for cpreg arrays > target/arm/kvm: Export kvm_print_register_name() > target/arm/machine: Trace cpreg names which do not match on migration > target/arm/machine: Trace all register mismatches > > include/migration/vmstate.h | 10 +++++++ > target/arm/kvm_arm.h | 2 ++ > target/arm/helper.c | 5 ---- > target/arm/kvm-stub.c | 6 ++++ > target/arm/kvm.c | 7 +---- > target/arm/machine.c | 57 +++++++++++++++++++++++++++---------- > target/arm/trace-events | 3 ++ > 7 files changed, 64 insertions(+), 26 deletions(-) >