From nobody Thu Apr 2 15:42:28 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=grsecurity.net ARC-Seal: i=1; a=rsa-sha256; t=1774622102; cv=none; d=zohomail.com; s=zohoarc; b=DUr+Y2neuaV/L1T3e2Dva9XftfGbtUwKjs8nq2ZW1N3Es8TtLYpUW/oPzPeymXQoDb0RsoPVlD7LpiRYHBi8MnUcKG5dXnnPK3uYDhpQpk0zEN705SIHx0WdlEAalzLdPeEgKpwvIgNHlerbWXtfuw9stpcNnBZVfsS0DsjTpME= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1774622102; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=QJcL6p7alzRTJ3dPJyskl2pWpoSpOzUzdB70X70o3z8=; b=T5vkgN3KpZzrTwbeJBUyJgpmCsKyUjxzHAut/J3E1xH4Sf6zbPRl0SqPb68f6zKX4gYWTgkIyl26HXEKdtlH6vQKYqbXHKoxK5PPaf/SBEeSsA3mfW3AWwRsLu8Wf4I46W55pfqpT681Exp/rZNMkwCwNJmPqBNi8df/r47ujlo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1774622102929237.66904960080296; Fri, 27 Mar 2026 07:35:02 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1w68Gz-0002my-Hy; Fri, 27 Mar 2026 10:34:53 -0400 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 1w68Gw-0002mp-MA for qemu-devel@nongnu.org; Fri, 27 Mar 2026 10:34:51 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1w68Gu-00024r-Sx for qemu-devel@nongnu.org; Fri, 27 Mar 2026 10:34:50 -0400 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-43b949bf4easo1287100f8f.0 for ; Fri, 27 Mar 2026 07:34:47 -0700 (PDT) Received: from nuc.fritz.box (p200300faaf260200b5bd0daccf856f73.dip0.t-ipconnect.de. [2003:fa:af26:200:b5bd:dac:cf85:6f73]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43b919cf2c8sm14563154f8f.20.2026.03.27.07.34.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2026 07:34:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=grsecurity.net; s=grsec; t=1774622086; x=1775226886; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=QJcL6p7alzRTJ3dPJyskl2pWpoSpOzUzdB70X70o3z8=; b=q20ZfF7iw1fE7hSrm+DGEOb34HsKi/5MuVZwAlwNFsyMEQwWrx+Hpl72Us3Tb41nsG 6T41Rt7+sme/UGyayGoNQXllTfYmqrA11NrVMoyoEAKo3R/bWbKuL930b7Ad7I2KlLEo bQjsMOPtijytRnFnwPuzZ+rC8vcZktCDFbkeVBhOLVZSxiKjsvY7o/ZevgzwXscwdhd1 xdOIH6789eym8KZ1cMdXiv7Jd+E1qVNXVy0DR4CUIbfylggsK6EM3QJydLQV6WT9TY49 ECKOwCBMYygdYfzsxIG9fH3mMTgPZWMadKSdVwE2ifVhwaY45Z6nWzmFHY/a56p+ZZW2 28hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774622086; x=1775226886; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QJcL6p7alzRTJ3dPJyskl2pWpoSpOzUzdB70X70o3z8=; b=NwMWgsSoB9dH+nPOfFfSFAyjSrBgWbDbbgTFOq6c7yeaLe2LdWhn1HTJlHKxYZS5oG 666O4vCBY+XUcpRzRw8Z7IAnxFpYDVKcpJFTszCXd4xDjZy8gcLjq7eZ5KgH5y4srBsB EsAG4hdUZNFKm3duKD+RZD0gFnD7cEWA1Gvu7LPCB62cuxvHw7pU1XJaHmj4vcxOP445 c7o2/6Sj4oD9sFKYqCehz8hGzX7gnQTTrhXZgZ4OW6dF7hGgfBZ+M+hRSa8qEPxDsfJ1 /ZYluZGbV2CbZzNbr82TCWu9zGtLhXr6eEeDzU5M5DwsZP73QNv3Fvp4pTmLubmt6oKR P7BA== X-Forwarded-Encrypted: i=1; AJvYcCXWbR89nvMQAPiIbIrj8+3jmgOfuMPKVNd1kV6FQQWTmHBvu6EeVgBQ30jZACK/EIR2LKX9a08+GHA9@nongnu.org X-Gm-Message-State: AOJu0Ywt5ZPHRJqXL6INdrbMHimqHC5lpd7n1KAS0gkwhkHZYqXL92o3 SeA0jXT225ZjsT63J0YZj0mR0fn38+kjHpBynyRtGrLvrr1IxFnh74Y9BDLB2ID0C2g= X-Gm-Gg: ATEYQzyLAnOagZZpBSIVUYsUoksfhQ2+q+GbRTehax0UD/6SnX0u06BuRUSyAj4dflv 9LRFZNoG1oIm2U/aDOuBCv0ZM4KBnpUVUGh8e/FkLw37q2YWZp/Bz27M6SpAV5ch7GLzTNR+llk GAZQi9jDr9oCvv3Q4Rc7wu7hgLpeteO4ciBgAE+HrymdbWo7z+Fz6Yf8KPmnlOFOVMnz4KOILeX T1IHNOIW8dWXtcCquIgM1WBC61oo84tUrLj8aqpiZCA0kjkIlurxtNxIBfqWnjTcYZ3MDN3f1wK 55mJLW6VCTdjrBIFYseAvUwcjtseZ3xbLxoCO99Nw8ZhPMGNruqYNrKdzXLt23iJguZ+ko9tJDX m5LfVjgluxyjp3QQOdvctZyvtIyys5wRT2A/+CehyU7PHIhJzNhdr5RdbRt0VdxCBrozw/Zf68c ltjcQPKrH2hjs6XekVo1TMp7ialJxidaowf3nzMDeUECNz4Ns3UolDE1GjS4Y+9DpPLHsHkyFiq SujwRoC96Qox3e50A== X-Received: by 2002:a05:6000:2409:b0:43b:4703:9dd5 with SMTP id ffacd0b85a97d-43b9eb10cbcmr4414844f8f.18.1774622085454; Fri, 27 Mar 2026 07:34:45 -0700 (PDT) From: Mathias Krause To: =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Mathias Krause Subject: [PATCH] gdbstub: Update x86 control register bits Date: Fri, 27 Mar 2026 15:34:13 +0100 Message-ID: <20260327143413.254227-1-minipli@grsecurity.net> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=mathias.krause@opensrcsec.com; helo=mail-wr1-x434.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @grsecurity.net) X-ZM-MESSAGEID: 1774622104865154100 Content-Type: text/plain; charset="utf-8" The control register bits haven't been updated in a few years, making them lack behind features QEMU ganied in these years. Update them to the current version of the SDM and sort the 32bit version to be in line with all the other definitions (descending order). This should remove confusion when debugging, for example, CET-enabled guests: - before the change: (gdb) info registers cr4 cr4 0x8000f0 [ PGE MCE PAE PSE ] - after the change: (gdb) info registers cr4 cr4 0x8000f0 [ CET PGE MCE PAE PSE ] Signed-off-by: Mathias Krause --- gdbstub/gdb-xml/i386-32bit.xml | 47 +++++++++++++++++++--------------- gdbstub/gdb-xml/i386-64bit.xml | 7 +++++ 2 files changed, 34 insertions(+), 20 deletions(-) diff --git a/gdbstub/gdb-xml/i386-32bit.xml b/gdbstub/gdb-xml/i386-32bit.xml index 7a66a02b67e3..1dec40e1d2c1 100644 --- a/gdbstub/gdb-xml/i386-32bit.xml +++ b/gdbstub/gdb-xml/i386-32bit.xml @@ -87,27 +87,34 @@ =20 - - - - - - - - - - - - - - - - - - - + + + + + + + - + + + + + + + + + + + + + + + + + + + + =20 diff --git a/gdbstub/gdb-xml/i386-64bit.xml b/gdbstub/gdb-xml/i386-64bit.xml index 6d889692114d..9ac9164e6a99 100644 --- a/gdbstub/gdb-xml/i386-64bit.xml +++ b/gdbstub/gdb-xml/i386-64bit.xml @@ -102,9 +102,16 @@ =20 + + + + + + + --=20 2.53.0