From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.freebsd.org (mx2.freebsd.org [96.47.72.81]) by sourceware.org (Postfix) with ESMTPS id D45183858C52 for ; Fri, 14 Jul 2023 15:58:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D45183858C52 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "R3" (verified OK)) by mx2.freebsd.org (Postfix) with ESMTPS id 4R2bkT34vRz3NVx; Fri, 14 Jul 2023 15:58:57 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R2bkT2LbSz3lM2; Fri, 14 Jul 2023 15:58:57 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689350337; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HVhMUS1e294T0/WKX+suOYEK5e9cFiebA9YbYLxFvsU=; b=X41x9HO/FBEAnJ8eutNYaZrto8TKAqMStFCjOLBjz1vaYVdfmqxdpYtGCtmdwMofiCaLg1 YebZFwkLUxpGCWRnGxCWyYpkVvRAHRv3q8sAqWUSuv7LAJAvlXoKeFRF5u0kPpDayJCldJ du1OO/ygAgpvstWWQCqQRGazb5UcUU6+qsZ/JmxYX75yChj3Q1Zygf/agNlVwTJ3IT1FMK /3SR2EB6FWop3jg3pE7/baqKPyWP2LNoOlV+10s89uE00p3sWkgxWZot6OLTubVYBUdNeS Cf/9Jx/cckG1QPvZqGzXJJXXRQQU1k6d+yXxrtFYCzYHr+UEUY4ivexLFCttAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689350337; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HVhMUS1e294T0/WKX+suOYEK5e9cFiebA9YbYLxFvsU=; b=eTTduCEUTXiQVxaMsAAKYI9c80pUcs5EENAtvTiS35uTqUvDmqblWBn1MAo4oBxmvB/5U0 rkjwLi/EmxhB3EhLD2ojm2YPLHrJhKXP/4Xr1IV0lz1W/xLWsZAtwVkvMyQLtu3Oj0R9ZM jzYCtHjMBR+ZIfxiIT1oCmJmxSkbnmgmLb+OgEvZjSOhArviE+Q/sUaHl/oTESJ9Adg+0q D2EHf/vpihYGkIa/NB5S7FgLy0OPbC18KKk32pOwALKd4PqFKcF97Yhyulo/WPSmWjmioP u/ZdmrEudIa8Dl/5eYla6tMFrfYJ82qv1RVTNyyiW7kC/4GvfRAU9MAkJM6G4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689350337; a=rsa-sha256; cv=none; b=Hd4TmcFS6KweahhIlrF0nFkg/4O3qa33ryI2pFb42KhNFiqK5W43LjcglHR6afWIhlc+Ac N0etb0ohcepGxNQSBwfTvo2HYOyzjHnzjvANXaDo96DscS2S76tfDS7IcomcgwbEfV3rx7 Ma5QT044GzO5dWUk1KOnDMVaPrKofduShj7NBKvWZmZxr9njHFsYz+nmaDcSqUEUsP53mx 8MGCnYGTymnIgOT9zqe3H65BFHMSBaE53VWAaTOoicMslMKxqy9cRUV0IvY8kcU6lfbKuC 9iivb+2HZsedu1piCUm2AYG7PItON8hUNe56dvdqNTUnGR1VzJI6Oo2/I/ZsKw== Received: from [IPV6:2601:648:8680:16b0:98c9:a0d6:2ca0:57ef] (unknown [IPv6:2601:648:8680:16b0:98c9:a0d6:2ca0:57ef]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4R2bkS5ycfzttl; Fri, 14 Jul 2023 15:58:56 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <3c5d10f6-b773-983b-2bcf-638c6d649483@FreeBSD.org> Date: Fri, 14 Jul 2023 08:58:55 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v6 00/15] Handle variable XSAVE layouts Content-Language: en-US To: gdb-patches@sourceware.org References: <20230714155151.21723-1-jhb@FreeBSD.org> From: John Baldwin Cc: Joel Brobecker , "George, Jini Susan" In-Reply-To: <20230714155151.21723-1-jhb@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 7/14/23 8:51 AM, John Baldwin wrote: > Changes since V5: > > - A few fixes not tied to the new layout handling have been merged to > master. > > - Reworded the comment describing i386_*_core_read_xsave_info in patches > 6 and 8. > > Aleksandar Paunovic (2): > gdbserver: Refactor the legacy region within the xsave struct > gdbserver: Use x86_xstate_layout to parse the XSAVE extended state > area. > > John Baldwin (13): > x86: Add an x86_xsave_layout structure to handle variable XSAVE > layouts. > gdb: Store an x86_xsave_layout in i386_gdbarch_tdep. > core: Support fetching x86 XSAVE layout from architectures. > nat/x86-cpuid.h: Add x86_cpuid_count wrapper around __get_cpuid_count. > x86 nat: Add helper functions to save the XSAVE layout for the host. > gdb: Update x86 FreeBSD architectures to support XSAVE layouts. > gdb: Support XSAVE layouts for the current host in the FreeBSD x86 > targets. > gdb: Update x86 Linux architectures to support XSAVE layouts. > gdb: Support XSAVE layouts for the current host in the Linux x86 > targets. > gdb: Use x86_xstate_layout to parse the XSAVE extended state area. > gdbserver: Add a function to set the XSAVE mask and size. > x86: Remove X86_XSTATE_SIZE and related constants. > gdbserver: Simplify handling of ZMM registers. I would like to get this series into GDB 14 if possible. Without it one cannot examine certain XSAVE registers (e.g. YMM for AVX) in core dumps generated on modern AMD CPUs on both Linux and FreeBSD. -- John Baldwin