get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2217052/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2217052,
    "url": "http://patchwork.ozlabs.org/api/patches/2217052/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260327160132.2946114-3-yilun.xu@linux.intel.com/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/projects/28/?format=api",
        "name": "Linux PCI development",
        "link_name": "linux-pci",
        "list_id": "linux-pci.vger.kernel.org",
        "list_email": "linux-pci@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260327160132.2946114-3-yilun.xu@linux.intel.com>",
    "list_archive_url": null,
    "date": "2026-03-27T16:01:03",
    "name": "[v2,02/31] x86/virt/tdx: Move bit definitions of TDX_FEATURES0 to public header",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "9362f4cf606994cc82d758e2fcb38f198d265968",
    "submitter": {
        "id": 87470,
        "url": "http://patchwork.ozlabs.org/api/people/87470/?format=api",
        "name": "Xu Yilun",
        "email": "yilun.xu@linux.intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260327160132.2946114-3-yilun.xu@linux.intel.com/mbox/",
    "series": [
        {
            "id": 497793,
            "url": "http://patchwork.ozlabs.org/api/series/497793/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=497793",
            "date": "2026-03-27T16:01:02",
            "name": "PCI/TSM: PCIe Link Encryption Establishment via TDX platform services",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/497793/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217052/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217052/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-51287-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-pci@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=gD3cKNzD;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-pci+bounces-51287-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.b=\"gD3cKNzD\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=198.175.65.14",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.intel.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=linux.intel.com"
        ],
        "Received": [
            "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fj5hn3qvhz1y1x\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Mar 2026 03:30:01 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id C763030D61F3\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 16:23:06 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id B39A4355055;\n\tFri, 27 Mar 2026 16:22:42 +0000 (UTC)",
            "from mgamail.intel.com (mgamail.intel.com [198.175.65.14])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 6972334A789;\n\tFri, 27 Mar 2026 16:22:41 +0000 (UTC)",
            "from fmviesa006.fm.intel.com ([10.60.135.146])\n  by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 27 Mar 2026 09:22:40 -0700",
            "from yilunxu-optiplex-7050.sh.intel.com ([10.239.159.165])\n  by fmviesa006.fm.intel.com with ESMTP; 27 Mar 2026 09:22:37 -0700"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774628562; cv=none;\n b=sgUwKS4HCqrnQEbw5EQxrAKD4z1cu0hKxRkpIzDy9RneoFms4V8SJ6iP61m2Wd5IZY6Jgkf7qWGvLnZmsN+hoDm/eD47kgd9mGszGM/Hn+R8L4eW6rCSBG0pBqAOgrTH5OWSSgRmoDjxHm5DDibjFqr/UlSAVy1YT94Mvvf70og=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774628562; c=relaxed/simple;\n\tbh=kpGbvHoaXkXL7UPtDLh0r6IDkgZKESQJe+SKEMtuWqs=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version;\n b=gLYfMULFXX6uwlMGzmZaYMEcl4w3ZdiBlM5xK7tS5nB2emhCcJ7ZBEeLafFIjDpmLXS6OTUJKrfR4PYWOTV6XxRKfhp5fl7TAN1Cbyb6sj5ryMMni5QrQAGhB9IWtlnsZn3dLtABjNWR7rWGplWtEZjoof6nVqD08tOLooDyXeo=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.intel.com;\n spf=pass smtp.mailfrom=linux.intel.com;\n dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com\n header.b=gD3cKNzD; arc=none smtp.client-ip=198.175.65.14",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n  d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n  t=1774628561; x=1806164561;\n  h=from:to:cc:subject:date:message-id:in-reply-to:\n   references:mime-version:content-transfer-encoding;\n  bh=kpGbvHoaXkXL7UPtDLh0r6IDkgZKESQJe+SKEMtuWqs=;\n  b=gD3cKNzDF+RbYhh5t44mdyIJnpKnXKwd37xqy1EGMEAlMSctd24C7/lJ\n   X9NHY8OXilEnYCBdFuQ28OfiAxIcXgp39ty1AeVw70fY64fh+epo/yTId\n   GQ+yR9WnBNm0p7x9bC+r6LAm2RlLfqN5hXEPRgeghY88p7aVxfwmxt3DF\n   7fmRXPtQ/w94TzIB+NOa6z/zwqPRpoKqhgwExPUMD4KFVs7PCtvZoT73N\n   YuAo5F1lyRO3ub2axTJnL6Z9ByT2oLXkEWWY3J8qXMisfUs3jYcVpcHpp\n   Jv4h+8sxMblaVclqQmpW7uchfrRAZWEBLKB1ysgXmwIZkUHKrcKTEvP0n\n   Q==;",
        "X-CSE-ConnectionGUID": [
            "maLePqYFSEetb3+6qQ+p4Q==",
            "8cAe9lgUQYOSEy9qJyUBwQ=="
        ],
        "X-CSE-MsgGUID": [
            "zdBW4plWRyOaIz/+J0zXxw==",
            "eh2NIIVNT4uURSnlVSCYtQ=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6800,10657,11741\"; a=\"79565497\"",
            "E=Sophos;i=\"6.23,144,1770624000\";\n   d=\"scan'208\";a=\"79565497\"",
            "E=Sophos;i=\"6.23,144,1770624000\";\n   d=\"scan'208\";a=\"220516125\""
        ],
        "X-ExtLoop1": "1",
        "From": "Xu Yilun <yilun.xu@linux.intel.com>",
        "To": "linux-coco@lists.linux.dev,\n\tlinux-pci@vger.kernel.org,\n\tdan.j.williams@intel.com,\n\tx86@kernel.org",
        "Cc": "chao.gao@intel.com,\n\tdave.jiang@intel.com,\n\tbaolu.lu@linux.intel.com,\n\tyilun.xu@linux.intel.com,\n\tyilun.xu@intel.com,\n\tzhenzhong.duan@intel.com,\n\tkvm@vger.kernel.org,\n\trick.p.edgecombe@intel.com,\n\tdave.hansen@linux.intel.com,\n\tkas@kernel.org,\n\txiaoyao.li@intel.com,\n\tvishal.l.verma@intel.com,\n\tlinux-kernel@vger.kernel.org",
        "Subject": "[PATCH v2 02/31] x86/virt/tdx: Move bit definitions of TDX_FEATURES0\n to public header",
        "Date": "Sat, 28 Mar 2026 00:01:03 +0800",
        "Message-Id": "<20260327160132.2946114-3-yilun.xu@linux.intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20260327160132.2946114-1-yilun.xu@linux.intel.com>",
        "References": "<20260327160132.2946114-1-yilun.xu@linux.intel.com>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-pci@vger.kernel.org",
        "List-Id": "<linux-pci.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-pci+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-pci+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "Move bit definitions of TDX_FEATURES0 to TDX core public header.\n\nKernel users get TDX_FEATURES0 bitmap via tdx_get_sysinfo(). It is\nreasonable to also public the definitions of each bit. TDX Connect (a\nnew TDX feature to enable Trusted I/O virtualization) will add new bits\nand check them in separate kernel modules.\n\nTake the opportunity to change its type to BIT_ULL since TDX_FEATURES0\nis explicitly defined as 64-bit in both TDX Module Specification and\nTDX core code.\n\nSigned-off-by: Xu Yilun <yilun.xu@linux.intel.com>\n---\n arch/x86/include/asm/tdx.h  | 4 ++++\n arch/x86/virt/vmx/tdx/tdx.h | 3 ---\n 2 files changed, 4 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/arch/x86/include/asm/tdx.h b/arch/x86/include/asm/tdx.h\nindex e040e0467ae4..65c4da396450 100644\n--- a/arch/x86/include/asm/tdx.h\n+++ b/arch/x86/include/asm/tdx.h\n@@ -127,6 +127,10 @@ static __always_inline u64 sc_retry(sc_func_t func, u64 fn,\n int tdx_cpu_enable(void);\n int tdx_enable(void);\n const char *tdx_dump_mce_info(struct mce *m);\n+\n+/* Bit definitions of TDX_FEATURES0 metadata field */\n+#define TDX_FEATURES0_NO_RBP_MOD\tBIT_ULL(18)\n+\n const struct tdx_sys_info *tdx_get_sysinfo(void);\n \n int tdx_guest_keyid_alloc(void);\ndiff --git a/arch/x86/virt/vmx/tdx/tdx.h b/arch/x86/virt/vmx/tdx/tdx.h\nindex 82bb82be8567..c641b4632826 100644\n--- a/arch/x86/virt/vmx/tdx/tdx.h\n+++ b/arch/x86/virt/vmx/tdx/tdx.h\n@@ -84,9 +84,6 @@ struct tdmr_info {\n \tDECLARE_FLEX_ARRAY(struct tdmr_reserved_area, reserved_areas);\n } __packed __aligned(TDMR_INFO_ALIGNMENT);\n \n-/* Bit definitions of TDX_FEATURES0 metadata field */\n-#define TDX_FEATURES0_NO_RBP_MOD\tBIT(18)\n-\n /*\n  * Do not put any hardware-defined TDX structure representations below\n  * this comment!\n",
    "prefixes": [
        "v2",
        "02/31"
    ]
}