* [PATCH] x86/virt/tdx: Add command line param for DPAMT @ 2026-11-26 0:54 Rick Edgecombe 2026-11-26 8:13 ` Yan Zhao 2026-11-26 10:48 ` Nikolay Borisov 0 siblings, 2 replies; 19+ messages in thread From: Rick Edgecombe @ 2026-11-26 0:54 UTC (permalink / raw) To: bp, dave.hansen, hpa, kas, linux-kernel, mingo, nik.borisov, tglx, x86, chao.gao, yan.y.zhao, yilun.xu Cc: rick.p.edgecombe The Physical Address Metadata Table (PAMT) holds TDX metadata for physical memory and must be allocated by the kernel during TDX module initialization. Dynamic PAMT (DPAMT) is a TDX module feature that can reduce this memory use by allocating part of the PAMT dynamically. In order to work with DPAMT, the kernel needs to perform upkeep on the DPAMT for each page that it gives to the TDX module. Late during the upstreaming of DPAMT, an optimization patch that avoided taking a global lock for each maintenance operation was dropped. The plan was to follow up the initial upstreaming with optimization work, however priority for this work has yet to materialize. Separately from the wrinkle of the global lock, TDX continues to struggle with large patchsets to enable new features. Doing DPAMT maintenance for the new types of memory these features require, further grows the initial patchsets. Adding a kernel parameter for DPAMT can help these two separate problems. Having DPAMT be default off can make the offensive global lock the rare case, while still giving some big memory conscious users the option to use DPAMT. Having DPAMT capable of being off means that the upcoming TDX features can be merged in smaller pieces by ignoring DPAMT to start. So add a parameter and make DPAMT default off. Signed-off-by: Rick Edgecombe <rick.p.edgecombe@intel.com> --- Dave, feel free to ignore. TDX developers, this is small, but can I get a round of review on the patch? One consideration I had was if tdx_supports_dynamic_pamt() should be renamed, but I thought it wasn't worth the churn. Another idea is to ignore the impact of the global lock until someone complains. And for the new features, to make them mutually exclusive with Dynamic PAMT support by simply keying off module support, rather than allowing Dynamic PAMT to be disabled. But since Dynamic PAMT is available on all newer modules, this would only appear to make the new features enabled. In practice they would be dead code. And default off is arguably the best default option in DPAMT's current state. So prefer the kernel param. Also, I cherry-picked this from the last DPAMT patchset and didn't retest it on upstream yet. Will do, but I'm not expecting problems. --- Documentation/admin-guide/kernel-parameters.txt | 7 +++++++ arch/x86/virt/vmx/tdx/tdx.c | 12 ++++++++++++ 2 files changed, 19 insertions(+) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 176648941aec2..af8b8eb54228e 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -7564,6 +7564,13 @@ Kernel parameters tdfx= [HW,DRM] + tdx_dpamt= + [X86] Controls whether TDX will use Dynamic PAMT + to save memory, when supported. + + Valid parameters: "on", "off" + Default: "off" + test_suspend= [SUSPEND] Format: { "mem" | "standby" | "freeze" }[,N] Specify "mem" (for Suspend-to-RAM) or "standby" (for diff --git a/arch/x86/virt/vmx/tdx/tdx.c b/arch/x86/virt/vmx/tdx/tdx.c index 96ced0494b687..ed5f37e5ebb29 100644 --- a/arch/x86/virt/vmx/tdx/tdx.c +++ b/arch/x86/virt/vmx/tdx/tdx.c @@ -50,6 +50,8 @@ /* Number of DPAMT pages to be provided to TDX module per 2MB region of PA */ #define TDX_DPAMT_ENTRY_PAGE_CNT 2 +static bool tdx_enable_dpamt __ro_after_init; + struct tdx_module_state { bool initialized; bool sysinit_done; @@ -2055,6 +2057,9 @@ EXPORT_SYMBOL_FOR_KVM(tdh_phymem_page_wbinvd_hkid); bool tdx_supports_dynamic_pamt(const struct tdx_sys_info *sysinfo) { + if (!tdx_enable_dpamt) + return false; + return sysinfo->features.tdx_features0 & TDX_FEATURES0_DYNAMIC_PAMT; } EXPORT_SYMBOL_FOR_KVM(tdx_supports_dynamic_pamt); @@ -2316,6 +2321,13 @@ void tdx_free_control_page(struct page *page) } EXPORT_SYMBOL_FOR_KVM(tdx_free_control_page); +static int __init tdx_dpamt_setup(char *str) +{ + return kstrtobool(str, &tdx_enable_dpamt) == 0; +} + +__setup("tdx_dpamt=", tdx_dpamt_setup); + void tdx_sys_disable(void) { struct tdx_module_args args = {}; -- 2.56.1 ^ permalink raw reply related [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-11-26 0:54 [PATCH] x86/virt/tdx: Add command line param for DPAMT Rick Edgecombe @ 2026-11-26 8:13 ` Yan Zhao 2026-12-02 0:12 ` Dave Hansen 2026-12-02 1:14 ` Edgecombe, Rick P 2026-11-26 10:48 ` Nikolay Borisov 1 sibling, 2 replies; 19+ messages in thread From: Yan Zhao @ 2026-11-26 8:13 UTC (permalink / raw) To: Rick Edgecombe Cc: bp, dave.hansen, hpa, kas, linux-kernel, mingo, nik.borisov, tglx, x86, chao.gao, yilun.xu, ackerleytng, vannapurve, seanjc + Sean, Ackerley, Vishal, On Wed, Nov 25, 2026 at 04:54:16PM -0800, Rick Edgecombe wrote: > The Physical Address Metadata Table (PAMT) holds TDX metadata for > physical memory and must be allocated by the kernel during TDX module > initialization. Dynamic PAMT (DPAMT) is a TDX module feature that can > reduce this memory use by allocating part of the PAMT dynamically. > > In order to work with DPAMT, the kernel needs to perform upkeep on the > DPAMT for each page that it gives to the TDX module. Late during the > upstreaming of DPAMT, an optimization patch that avoided taking a global > lock for each maintenance operation was dropped. The plan was to follow up > the initial upstreaming with optimization work, however priority for this > work has yet to materialize. > > Separately from the wrinkle of the global lock, TDX continues to struggle > with large patchsets to enable new features. Doing DPAMT maintenance for > the new types of memory these features require, further grows the initial > patchsets. > > Adding a kernel parameter for DPAMT can help these two separate problems. > Having DPAMT be default off can make the offensive global lock the rare > case, while still giving some big memory conscious users the option to use > DPAMT. Having DPAMT capable of being off means that the upcoming TDX > features can be merged in smaller pieces by ignoring DPAMT to start. There is a new direction to have initial TDX huge page support without DPAMT, as it simplifies the initial patch set and would be faster to upstream. That is, TDX huge page support would depend on this patch that makes DPAMT optional and default off, and huge pages would only be enabled when DPAMT is off. Would you like to have an early discussion on this direction? Is the mutual exclusivity between DPAMT and the initial huge page support acceptable in practice? Pros: - Simplifies the diffs in tip and KVM. Only one patch is needed under tip, and DPAMT-related handling in KVM can also be dropped. Cons: - Part of the KVM implementation becomes slightly awkward, since the 4KB mapping/unmapping code already supports DPAMT. > So add a parameter and make DPAMT default off. > > Signed-off-by: Rick Edgecombe <rick.p.edgecombe@intel.com> > --- > Dave, feel free to ignore. > > TDX developers, this is small, but can I get a round of review on the > patch? One consideration I had was if tdx_supports_dynamic_pamt() should > be renamed, but I thought it wasn't worth the churn. tdx_enables_dynamic_pamt() seems more accurate. > Another idea is to ignore the impact of the global lock until someone > complains. And for the new features, to make them mutually exclusive with > Dynamic PAMT support by simply keying off module support, rather than > allowing Dynamic PAMT to be disabled. But since Dynamic PAMT is available > on all newer modules, this would only appear to make the new features > enabled. In practice they would be dead code. And default off is arguably > the best default option in DPAMT's current state. So prefer the kernel > param. > > Also, I cherry-picked this from the last DPAMT patchset and didn't retest > it on upstream yet. Will do, but I'm not expecting problems. Tested working with kvm-x86-next-2026.11.11, which is at v7.4.0-rc2. > --- > Documentation/admin-guide/kernel-parameters.txt | 7 +++++++ > arch/x86/virt/vmx/tdx/tdx.c | 12 ++++++++++++ > 2 files changed, 19 insertions(+) > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index 176648941aec2..af8b8eb54228e 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -7564,6 +7564,13 @@ Kernel parameters > > tdfx= [HW,DRM] > > + tdx_dpamt= > + [X86] Controls whether TDX will use Dynamic PAMT [X86] --> [X86-64] ? And is a "KNL" tag necessary? > + to save memory, when supported. > + > + Valid parameters: "on", "off" > + Default: "off" > + > test_suspend= [SUSPEND] > Format: { "mem" | "standby" | "freeze" }[,N] > Specify "mem" (for Suspend-to-RAM) or "standby" (for > diff --git a/arch/x86/virt/vmx/tdx/tdx.c b/arch/x86/virt/vmx/tdx/tdx.c > index 96ced0494b687..ed5f37e5ebb29 100644 > --- a/arch/x86/virt/vmx/tdx/tdx.c > +++ b/arch/x86/virt/vmx/tdx/tdx.c > @@ -50,6 +50,8 @@ > /* Number of DPAMT pages to be provided to TDX module per 2MB region of PA */ > #define TDX_DPAMT_ENTRY_PAGE_CNT 2 > > +static bool tdx_enable_dpamt __ro_after_init; > + > struct tdx_module_state { > bool initialized; > bool sysinit_done; > @@ -2055,6 +2057,9 @@ EXPORT_SYMBOL_FOR_KVM(tdh_phymem_page_wbinvd_hkid); > > bool tdx_supports_dynamic_pamt(const struct tdx_sys_info *sysinfo) > { > + if (!tdx_enable_dpamt) > + return false; > + > return sysinfo->features.tdx_features0 & TDX_FEATURES0_DYNAMIC_PAMT; > } > EXPORT_SYMBOL_FOR_KVM(tdx_supports_dynamic_pamt); > @@ -2316,6 +2321,13 @@ void tdx_free_control_page(struct page *page) > } > EXPORT_SYMBOL_FOR_KVM(tdx_free_control_page); > > +static int __init tdx_dpamt_setup(char *str) > +{ > + return kstrtobool(str, &tdx_enable_dpamt) == 0; > +} > + > +__setup("tdx_dpamt=", tdx_dpamt_setup); It looks like core_param() is perferred over __setup() for a simple typed variable set from the cmdline? How about: core_param(tdx_enable_dpamt, tdx_enable_dpamt, bool, 0444); > void tdx_sys_disable(void) > { > struct tdx_module_args args = {}; > -- > 2.56.1 > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-11-26 8:13 ` Yan Zhao @ 2026-12-02 0:12 ` Dave Hansen 2026-12-02 18:04 ` Vishal Annapurve 2026-12-03 7:45 ` Yan Zhao 2026-12-02 1:14 ` Edgecombe, Rick P 1 sibling, 2 replies; 19+ messages in thread From: Dave Hansen @ 2026-12-02 0:12 UTC (permalink / raw) To: Yan Zhao, Rick Edgecombe Cc: bp, hpa, kas, linux-kernel, mingo, nik.borisov, tglx, x86, chao.gao, yilun.xu, ackerleytng, vannapurve, seanjc On 11/26/26 00:13, Yan Zhao wrote: > Would you like to have an early discussion on this direction? To be honest, no. If you think this is wrong, then the right way to challenge the idea is to structure the series with DPAMT support at the end. That'll show us how tiny it is and also let the maintainer just chop the patches off the end if they don't agree. So, no. I don't want to have an early discussion. I want you to prove me wrong with code. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-12-02 0:12 ` Dave Hansen @ 2026-12-02 18:04 ` Vishal Annapurve 2026-12-03 7:45 ` Yan Zhao 1 sibling, 0 replies; 19+ messages in thread From: Vishal Annapurve @ 2026-12-02 18:04 UTC (permalink / raw) To: Dave Hansen Cc: Yan Zhao, Rick Edgecombe, bp, hpa, kas, linux-kernel, mingo, nik.borisov, tglx, x86, chao.gao, yilun.xu, ackerleytng, seanjc On Tue, Dec 1, 2026 at 4:12 PM Dave Hansen <dave.hansen@intel.com> wrote: > > On 11/26/26 00:13, Yan Zhao wrote: > > Would you like to have an early discussion on this direction? > > To be honest, no. > > If you think this is wrong, then the right way to challenge the idea is > to structure the series with DPAMT support at the end. That'll show us > how tiny it is and also let the maintainer just chop the patches off the > end if they don't agree. I agree; it would be good to discuss this direction with reference patches available. If DPAMT support is relatively tiny add-on, I would argue for the complete feature. > > So, no. I don't want to have an early discussion. I want you to prove me > wrong with code. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-12-02 0:12 ` Dave Hansen 2026-12-02 18:04 ` Vishal Annapurve @ 2026-12-03 7:45 ` Yan Zhao 2026-12-04 16:47 ` Dave Hansen 1 sibling, 1 reply; 19+ messages in thread From: Yan Zhao @ 2026-12-03 7:45 UTC (permalink / raw) To: Dave Hansen Cc: Rick Edgecombe, bp, hpa, kas, linux-kernel, mingo, nik.borisov, tglx, x86, chao.gao, yilun.xu, ackerleytng, vannapurve, seanjc On Tue, Dec 01, 2026 at 04:12:31PM -0800, Dave Hansen wrote: > On 11/26/26 00:13, Yan Zhao wrote: > > Would you like to have an early discussion on this direction? > > To be honest, no. > > If you think this is wrong, then the right way to challenge the idea is Sorry, I had no intention of challenging any idea. I should have initiated this discussion in the huge page thread instead of here. I fully agree with this patch to make DPAMT optional. Based on DPAMT being optional, there are 3 options for TDX huge page support (see detailed analysis at the bottom): 1: Do not include any DPAMT support 2: Include DPAMT support from the beginning 3: Start with DPAMT-off and add append DPAMT support at the end. Either option 1 or option 2 is ok to me. > to structure the series with DPAMT support at the end. That'll show us > how tiny it is and also let the maintainer just chop the patches off the > end if they don't agree. The diff is non-tiny. 7 files changed, 130 insertions(+), 43 deletions(-). Besides, Sean previously pointed out it would be better not to append DPAMT support at the end. https://lore.kernel.org/all/aXqSg2nUSYJMbcXT@google.com. > So, no. I don't want to have an early discussion. I want you to prove me > wrong with code. To me, option 3 is less optimal than options 1 and 2. However, I can work on the formal patches if you would still like to take a look at option 3. Analysis of current options -------------------------- Option 1: Do not include any DPAMT support Pros: Simplicity: by removing all DPAMT-related handing, the huge page changes would be reduced from "18 files changed, 633 insertions(+), 57 deletions(-)" to "17 files changed, 518 insertions(+), 39 deletions(-)". The tip side would be greatly simplified: with only 1 patch remaining. On the KVM side, 3 patches can be dropped, and the patch adding core support for splitting under a non-vCPU context would be greatly simplified due to the removal of the per-VM DPAMT cache. Cons: 1. KVM changes are slightly awkward since the current 4KB mapping/unmapping already include DPAMT support. 2. mutual exclusivity between DPAMT and the initial huge page. Option 2: Include DPAMT support from the beginning Pros: 1. The KVM code was largely co-developed with Sean, so it is expected to face less objection from the KVM side. 2. Sean previously suggested including DPAMT support from the beginning: "In the end, this fits nicely into *one* patch, with significantly fewer lines changed overall." https://lore.kernel.org/all/aXqSg2nUSYJMbcXT@google.com. Cons: More code overall. Option 3: Start with DPAMT-off and append the DPAMT support at the end. Pros: The first part is simplified. Maintainer can chop the patches off the end if they don't agree. Cons: 1. The diff in the 2nd part is non-tiny: 7 files changed, 130 insertions(+), 43 deletions(-). 2. The diff is less clean compared to having DPAMT-on support included from the start (option 2). ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-12-03 7:45 ` Yan Zhao @ 2026-12-04 16:47 ` Dave Hansen 2026-12-04 18:44 ` Edgecombe, Rick P 0 siblings, 1 reply; 19+ messages in thread From: Dave Hansen @ 2026-12-04 16:47 UTC (permalink / raw) To: Yan Zhao Cc: Rick Edgecombe, bp, hpa, kas, linux-kernel, mingo, nik.borisov, tglx, x86, chao.gao, yilun.xu, ackerleytng, vannapurve, seanjc On 12/2/26 23:45, Yan Zhao wrote: > Besides, Sean previously pointed out it would be better not to append DPAMT > support at the end. https://lore.kernel.org/all/aXqSg2nUSYJMbcXT@google.com. I think this is one where Sean and I disagree. He obviously owns the KVM code here. But all I hear from my dear colleagues at Intel is that us maintainers are merging TDX code too slowly. I'm hoping that smaller, more digestible series make it easier for maintainers to consume. Because the big patch bombs with the kitchen sink up front aren't working. So, I don't _know_ that Sean is wrong here. But I suspect he'll be a happier and more productive reviewer if he can concentrate his review attention on smaller pieces. Maybe I'm wrong about DPAMT. Maybe I'm just generally wrong and I don't have a clue how to get big patch bombs to pass muster with Linux maintainers. Maybe the way KVM is doing things is _already_ optimal. But I suspect there's room for improvement somewhere. Anybody else have ideas other than, "just keep doing what we've been doing"? ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-12-04 16:47 ` Dave Hansen @ 2026-12-04 18:44 ` Edgecombe, Rick P 2026-12-04 19:16 ` Sean Christopherson 0 siblings, 1 reply; 19+ messages in thread From: Edgecombe, Rick P @ 2026-12-04 18:44 UTC (permalink / raw) To: Hansen, Dave, Zhao, Yan Y Cc: Gao, Chao, Xu, Yilun, seanjc@google.com, bp@alien8.de, kas@kernel.org, ackerleytng@google.com, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@redhat.com, x86@kernel.org, tglx@kernel.org, Annapurve, Vishal, nik.borisov@suse.com On Fri, 2026-12-04 at 08:47 -0800, Dave Hansen wrote: > On 12/2/26 23:45, Yan Zhao wrote: > > Besides, Sean previously pointed out it would be better not to append DPAMT > > support at the end. https://lore.kernel.org/all/aXqSg2nUSYJMbcXT@google.com. > > I think this is one where Sean and I disagree. He obviously owns the KVM > code here. I think Yan is a little overselling what Sean said there. He did want us to make sure the code didn't need to be immediately churned when huge pages followed DPAMT. This lead to a preparatory MMU refactor series which is now merged. But then we split up DPAMT and huge pages again and upstreamed them separately. So to suggest he has made some mandate against splitting up seems like a misrepresentation. Besides, that reads like a complaint about reviewability in general. The ideal splitting for making something reviewable takes thought. It is not something that comes from hard rules. One thing I'd like to hear is the diffstat Yan shared, split between KVM and arch/x86. And maybe some more context on the KVM side changes. If the addition is small on the KVM side then the concern might be even less relevant. > > But all I hear from my dear colleagues at Intel is that us maintainers > are merging TDX code too slowly. I'm hoping that smaller, more > digestible series make it easier for maintainers to consume. Because the > big patch bombs with the kitchen sink up front aren't working. > > So, I don't _know_ that Sean is wrong here. But I suspect he'll be a > happier and more productive reviewer if he can concentrate his review > attention on smaller pieces. > > Maybe I'm wrong about DPAMT. Maybe I'm just generally wrong and I don't > have a clue how to get big patch bombs to pass muster with Linux > maintainers. Maybe the way KVM is doing things is _already_ optimal. > > But I suspect there's room for improvement somewhere. Anybody else have > ideas other than, "just keep doing what we've been doing"? I'm on board with the cut mercilessly approach. I think we are seeing success for this approach even outside of TDX. The example that comes to mind is the LASS upstreaming. The initial version hardly worked for anyone because of vsyscall config exclusion. Then there was a smooth flow of enhancements. Instead of one giant unwieldy series to have to track changes in. We run the risk of the design not being as ideal once you get the whole thing together. So the exception for considering things widely needs to be anything around uABI. Everything else, I think the tradeoff of splitting tends to win. But yes, let's not be dogmatic about it. Everything can be case by case. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-12-04 18:44 ` Edgecombe, Rick P @ 2026-12-04 19:16 ` Sean Christopherson 2026-12-04 19:18 ` Dave Hansen 2026-12-04 21:44 ` Sohil Mehta 0 siblings, 2 replies; 19+ messages in thread From: Sean Christopherson @ 2026-12-04 19:16 UTC (permalink / raw) To: Rick P Edgecombe Cc: Dave Hansen, Yan Y Zhao, Chao Gao, Yilun Xu, bp@alien8.de, kas@kernel.org, ackerleytng@google.com, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@redhat.com, x86@kernel.org, tglx@kernel.org, Vishal Annapurve, nik.borisov@suse.com On Fri, Dec 04, 2026, Rick P Edgecombe wrote: > On Fri, 2026-12-04 at 08:47 -0800, Dave Hansen wrote: > > On 12/2/26 23:45, Yan Zhao wrote: > > > Besides, Sean previously pointed out it would be better not to append DPAMT > > > support at the end. https://lore.kernel.org/all/aXqSg2nUSYJMbcXT@google.com. > > > > I think this is one where Sean and I disagree. He obviously owns the KVM > > code here. > > I think Yan is a little overselling what Sean said there. > > He did want us to make sure the code didn't need to be immediately churned when > huge pages followed DPAMT. This lead to a preparatory MMU refactor series which > is now merged. But then we split up DPAMT and huge pages again and upstreamed > them separately. So to suggest he has made some mandate against splitting up > seems like a misrepresentation. Ya, I'm not saying "don't split things" up, nor am I saying "bundle everything together". What I was saying is "use some common sense and don't spray me with garbage". > Besides, that reads like a complaint about reviewability in general. The ideal > splitting for making something reviewable takes thought. It is not something > that comes from hard rules. +1. E.g. splitting the FRED series into a pile of 2-3 patch series is becoming a nightmare for me, because now there's stuff flying by all over the place and I've got to try and reconstitute priorities and ordering. For me, the issue right now isn't that these series are too large, it's that I'm massively overloaded with vulnerabilities and can't spend meaningful time on *any* series, no matter the size. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-12-04 19:16 ` Sean Christopherson @ 2026-12-04 19:18 ` Dave Hansen 2026-12-04 21:44 ` Sohil Mehta 1 sibling, 0 replies; 19+ messages in thread From: Dave Hansen @ 2026-12-04 19:18 UTC (permalink / raw) To: Sean Christopherson, Rick P Edgecombe Cc: Yan Y Zhao, Chao Gao, Yilun Xu, bp@alien8.de, kas@kernel.org, ackerleytng@google.com, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@redhat.com, x86@kernel.org, tglx@kernel.org, Vishal Annapurve, nik.borisov@suse.com On 12/4/26 11:16, Sean Christopherson wrote: >> Besides, that reads like a complaint about reviewability in general. The ideal >> splitting for making something reviewable takes thought. It is not something >> that comes from hard rules. > +1. E.g. splitting the FRED series into a pile of 2-3 patch series is becoming > a nightmare for me, because now there's stuff flying by all over the place and > I've got to try and reconstitute priorities and ordering. Heh, dang it. There seemed to be some arch/x86-only bits in there I thought I could merge separately. Feel free to call a halt to that process right now if it's causing you issues. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-12-04 19:16 ` Sean Christopherson 2026-12-04 19:18 ` Dave Hansen @ 2026-12-04 21:44 ` Sohil Mehta 1 sibling, 0 replies; 19+ messages in thread From: Sohil Mehta @ 2026-12-04 21:44 UTC (permalink / raw) To: Sean Christopherson Cc: Dave Hansen, Yan Y Zhao, Chao Gao, Yilun Xu, bp@alien8.de, kas@kernel.org, ackerleytng@google.com, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@redhat.com, x86@kernel.org, tglx@kernel.org, Vishal Annapurve, nik.borisov@suse.com, Rick P Edgecombe On 12/4/2026 11:16 AM, Sean Christopherson wrote: > +1. E.g. splitting the FRED series into a pile of 2-3 patch series is becoming > a nightmare for me, because now there's stuff flying by all over the place and > I've got to try and reconstitute priorities and ordering. > Apologies for the trouble. The intention truly was to make things easier to review by splitting out stuff that FRED needs but isn't specific to FRED KVM. I've primarily been acting of feedback received during the reviews. Unfortunately, the number of patches needed to cleanly support FRED continues to increase. We felt that handling and reviewing such a large series with different pieces mixed in is slowing it down. But, I understand that a bunch of small unrelated items flying around can also cause confusion and make it harder to see the entire picture. For now, the x86 bits have been dispositioned. For the FRED KVM patches, I'll slow down a bit, keep them to a reasonable size and post them together as you prefer. Please let me know if there is a specific structure you would like to see. There is no rush. > For me, the issue right now isn't that these series are too large, it's that I'm > massively overloaded with vulnerabilities and can't spend meaningful time on *any* > series, no matter the size. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-11-26 8:13 ` Yan Zhao 2026-12-02 0:12 ` Dave Hansen @ 2026-12-02 1:14 ` Edgecombe, Rick P 2026-12-02 1:24 ` Yan Zhao 1 sibling, 1 reply; 19+ messages in thread From: Edgecombe, Rick P @ 2026-12-02 1:14 UTC (permalink / raw) To: Zhao, Yan Y Cc: Gao, Chao, Hansen, Dave, Xu, Yilun, bp@alien8.de, kas@kernel.org, ackerleytng@google.com, hpa@zytor.com, mingo@redhat.com, linux-kernel@vger.kernel.org, x86@kernel.org, tglx@kernel.org, Annapurve, Vishal, nik.borisov@suse.com, seanjc@google.com On Thu, 2026-11-26 at 16:13 +0800, Yan Zhao wrote: > > Also, I cherry-picked this from the last DPAMT patchset and didn't retest > > it on upstream yet. Will do, but I'm not expecting problems. > Tested working with kvm-x86-next-2026.11.11, which is at v7.4.0-rc2. > Thanks! Did you test on and off? Can I add your tested-by? > > --- > > Documentation/admin-guide/kernel-parameters.txt | 7 +++++++ > > arch/x86/virt/vmx/tdx/tdx.c | 12 ++++++++++++ > > 2 files changed, 19 insertions(+) > > > > diff --git a/Documentation/admin-guide/kernel-parameters.txt > > b/Documentation/admin-guide/kernel-parameters.txt > > index 176648941aec2..af8b8eb54228e 100644 > > --- a/Documentation/admin-guide/kernel-parameters.txt > > +++ b/Documentation/admin-guide/kernel-parameters.txt > > @@ -7564,6 +7564,13 @@ Kernel parameters > > > > tdfx= [HW,DRM] > > > > + tdx_dpamt= > > + [X86] Controls whether TDX will use Dynamic PAMT > [X86] --> [X86-64] ? Oh yea. > And is a "KNL" tag necessary? Oh! I had thought KNL was knights landing for some reason, the Xeon Phi thing that has nothing to do with TDX. Now I see in this file it means "Is a kernel start-up parameter." so yes I'll add it. Thanks. > > > + to save memory, when supported. > > + > > + Valid parameters: "on", "off" > > + Default: "off" > > + > > test_suspend= [SUSPEND] > > Format: { "mem" | "standby" | "freeze" }[,N] > > Specify "mem" (for Suspend-to-RAM) or "standby" > > (for > > diff --git a/arch/x86/virt/vmx/tdx/tdx.c b/arch/x86/virt/vmx/tdx/tdx.c > > index 96ced0494b687..ed5f37e5ebb29 100644 > > --- a/arch/x86/virt/vmx/tdx/tdx.c > > +++ b/arch/x86/virt/vmx/tdx/tdx.c > > @@ -50,6 +50,8 @@ > > /* Number of DPAMT pages to be provided to TDX module per 2MB region of PA > > */ > > #define TDX_DPAMT_ENTRY_PAGE_CNT 2 > > > > +static bool tdx_enable_dpamt __ro_after_init; > > + > > struct tdx_module_state { > > bool initialized; > > bool sysinit_done; > > @@ -2055,6 +2057,9 @@ EXPORT_SYMBOL_FOR_KVM(tdh_phymem_page_wbinvd_hkid); > > > > bool tdx_supports_dynamic_pamt(const struct tdx_sys_info *sysinfo) > > { > > + if (!tdx_enable_dpamt) > > + return false; > > + > > return sysinfo->features.tdx_features0 & > > TDX_FEATURES0_DYNAMIC_PAMT; > > } > > EXPORT_SYMBOL_FOR_KVM(tdx_supports_dynamic_pamt); > > @@ -2316,6 +2321,13 @@ void tdx_free_control_page(struct page *page) > > } > > EXPORT_SYMBOL_FOR_KVM(tdx_free_control_page); > > > > +static int __init tdx_dpamt_setup(char *str) > > +{ > > + return kstrtobool(str, &tdx_enable_dpamt) == 0; > > +} > > + > > +__setup("tdx_dpamt=", tdx_dpamt_setup); > It looks like core_param() is perferred over __setup() for a simple typed > variable set from the cmdline? Hmm... It does seem nice, but there isn't much use in the kernel actually. > > How about: > core_param(tdx_enable_dpamt, tdx_enable_dpamt, bool, 0444); I'm not sure about 0444. We don't even want a sysfs knob for this either. It looks like if you pass 0 it skips the sysfs knob. > > > void tdx_sys_disable(void) > > { > > struct tdx_module_args args = {}; > > -- > > 2.56.1 ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-12-02 1:14 ` Edgecombe, Rick P @ 2026-12-02 1:24 ` Yan Zhao 2026-12-02 14:27 ` Edgecombe, Rick P 0 siblings, 1 reply; 19+ messages in thread From: Yan Zhao @ 2026-12-02 1:24 UTC (permalink / raw) To: Edgecombe, Rick P Cc: Gao, Chao, Hansen, Dave, Xu, Yilun, bp@alien8.de, kas@kernel.org, ackerleytng@google.com, hpa@zytor.com, mingo@redhat.com, linux-kernel@vger.kernel.org, x86@kernel.org, tglx@kernel.org, Annapurve, Vishal, nik.borisov@suse.com, seanjc@google.com On Wed, Dec 02, 2026 at 09:14:53AM +0800, Edgecombe, Rick P wrote: > On Thu, 2026-11-26 at 16:13 +0800, Yan Zhao wrote: > > > Also, I cherry-picked this from the last DPAMT patchset and didn't retest > > > it on upstream yet. Will do, but I'm not expecting problems. > > Tested working with kvm-x86-next-2026.11.11, which is at v7.4.0-rc2. > > > > Thanks! Did you test on and off? Can I add your tested-by? Yes. On and off. Sure. > > > +static int __init tdx_dpamt_setup(char *str) > > > +{ > > > + return kstrtobool(str, &tdx_enable_dpamt) == 0; > > > +} > > > + > > > +__setup("tdx_dpamt=", tdx_dpamt_setup); > > It looks like core_param() is perferred over __setup() for a simple typed > > variable set from the cmdline? > > Hmm... It does seem nice, but there isn't much use in the kernel actually. Right, core_param() is later introduced. See Author: Rusty Russell <rusty@rustcorp.com.au> Date: Wed Oct 22 10:00:23 2008 -0500 core_param() for genuinely core kernel parameters There are a lot of one-liner uses of __setup() in the kernel: they're cumbersome and not queryable (definitely not settable) via /sys. Yet it's ugly to simplify them to module_param(), because by default that inserts a prefix of the module name (usually filename). So, introduce a "core_param". The parameter gets no prefix, but appears in /sys/module/kernel/parameters/ (if non-zero perms arg). I thought about using the name "core", but that's more common than "kernel". And if you create a module called "kernel", you will die a horrible death. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> It looks like __setup() is an old way, which fills "struct obs_kernel_param" and gets parsed by obsolete_checksetup() during kernel boot-up. __setup() does not have knob in sysfs. > > How about: > > core_param(tdx_enable_dpamt, tdx_enable_dpamt, bool, 0444); > > I'm not sure about 0444. We don't even want a sysfs knob for this either. It > looks like if you pass 0 it skips the sysfs knob. Hmm, a leading 0 is not a permission bit, but a C's octal prefix. Only all 0 will skip the sysfs knob. With 0444, there's a sysfs knob: /sys/module/kernel/parameters/tdx_enable_dpamt, with perms "-r--r--r--". > > > void tdx_sys_disable(void) > > > { > > > struct tdx_module_args args = {}; > > > -- > > > 2.56.1 > ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-12-02 1:24 ` Yan Zhao @ 2026-12-02 14:27 ` Edgecombe, Rick P 0 siblings, 0 replies; 19+ messages in thread From: Edgecombe, Rick P @ 2026-12-02 14:27 UTC (permalink / raw) To: Zhao, Yan Y Cc: Gao, Chao, Hansen, Dave, Xu, Yilun, bp@alien8.de, ackerleytng@google.com, kas@kernel.org, hpa@zytor.com, mingo@redhat.com, linux-kernel@vger.kernel.org, x86@kernel.org, tglx@kernel.org, Annapurve, Vishal, nik.borisov@suse.com, seanjc@google.com On Wed, 2026-12-02 at 09:24 +0800, Yan Zhao wrote: > > > How about: > > > core_param(tdx_enable_dpamt, tdx_enable_dpamt, bool, 0444); > > > > I'm not sure about 0444. We don't even want a sysfs knob for this either. It > > looks like if you pass 0 it skips the sysfs knob. > Hmm, a leading 0 is not a permission bit, but a C's octal prefix. > > Only all 0 will skip the sysfs knob. With 0444, there's a sysfs knob: > /sys/module/kernel/parameters/tdx_enable_dpamt, with perms "-r--r--r--". Right. I'd think to not expose anything to userspace for this. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-11-26 0:54 [PATCH] x86/virt/tdx: Add command line param for DPAMT Rick Edgecombe 2026-11-26 8:13 ` Yan Zhao @ 2026-11-26 10:48 ` Nikolay Borisov 2026-11-30 20:02 ` Edgecombe, Rick P 2026-11-30 20:42 ` Dave Hansen 1 sibling, 2 replies; 19+ messages in thread From: Nikolay Borisov @ 2026-11-26 10:48 UTC (permalink / raw) To: Rick Edgecombe, bp, dave.hansen, hpa, kas, linux-kernel, mingo, tglx, x86, chao.gao, yan.y.zhao, yilun.xu On 26.11.26 г. 2:54 ч., Rick Edgecombe wrote: > The Physical Address Metadata Table (PAMT) holds TDX metadata for > physical memory and must be allocated by the kernel during TDX module > initialization. Dynamic PAMT (DPAMT) is a TDX module feature that can > reduce this memory use by allocating part of the PAMT dynamically. > > In order to work with DPAMT, the kernel needs to perform upkeep on the > DPAMT for each page that it gives to the TDX module. Late during the > upstreaming of DPAMT, an optimization patch that avoided taking a global > lock for each maintenance operation was dropped. The plan was to follow up > the initial upstreaming with optimization work, however priority for this > work has yet to materialize. > > Separately from the wrinkle of the global lock, TDX continues to struggle > with large patchsets to enable new features. Doing DPAMT maintenance for > the new types of memory these features require, further grows the initial > patchsets. > > Adding a kernel parameter for DPAMT can help these two separate problems. > Having DPAMT be default off can make the offensive global lock the rare > case, while still giving some big memory conscious users the option to use > DPAMT. Having DPAMT capable of being off means that the upcoming TDX > features can be merged in smaller pieces by ignoring DPAMT to start. > > So add a parameter and make DPAMT default off. > > Signed-off-by: Rick Edgecombe <rick.p.edgecombe@intel.com> > --- > Dave, feel free to ignore. > > TDX developers, this is small, but can I get a round of review on the > patch? One consideration I had was if tdx_supports_dynamic_pamt() should > be renamed, but I thought it wasn't worth the churn. > > Another idea is to ignore the impact of the global lock until someone > complains. And for the new features, to make them mutually exclusive with > Dynamic PAMT support by simply keying off module support, rather than > allowing Dynamic PAMT to be disabled. But since Dynamic PAMT is available > on all newer modules, this would only appear to make the new features > enabled. In practice they would be dead code. And default off is arguably > the best default option in DPAMT's current state. So prefer the kernel > param. > > Also, I cherry-picked this from the last DPAMT patchset and didn't retest > it on upstream yet. Will do, but I'm not expecting problems. To me all this seems like "DPAMT upstream was rushed because it is helpful for some few big players", and because 99% of the other people aren't going to use it let's make it optional. And we end up with conditionals sprinkled in the code, 99% of the time those conditionals evaluating to false. Wouldn't it be better if Intel gets it act together, upstreams the optimisation work, making DPAMT a first-class citizen and just get rid of the optional and ensure that DPAMT is used in 99% of the cases? Otherwise it just feels that upstream work starts with one statement and commitments, later those are revised and/or never materialize. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-11-26 10:48 ` Nikolay Borisov @ 2026-11-30 20:02 ` Edgecombe, Rick P 2026-11-30 20:42 ` Dave Hansen 1 sibling, 0 replies; 19+ messages in thread From: Edgecombe, Rick P @ 2026-11-30 20:02 UTC (permalink / raw) To: Gao, Chao, Hansen, Dave, Xu, Yilun, bp@alien8.de, kas@kernel.org, hpa@zytor.com, mingo@redhat.com, linux-kernel@vger.kernel.org, x86@kernel.org, tglx@kernel.org, Zhao, Yan Y, nik.borisov@suse.com On Thu, 2026-11-26 at 12:48 +0200, Nikolay Borisov wrote: > > To me all this seems like "DPAMT upstream was rushed because it is > helpful for some few big players", and because 99% of the other people > aren't going to use it let's make it optional. > TBH I don't have much feedback from the long tail of TDX users. It is true that some big players wanted DPAMT though. > And we end up with > conditionals sprinkled in the code, 99% of the time those conditionals > evaluating to false. I don't expect to see conditionals sprinkling the code. I'd expect one big off switch during setup that skips enabling a bunch of features if DPAMT is enabled. Then initial feature enabling without DPAMT extras. > > Wouldn't it be better if Intel gets it act together, upstreams the > optimisation work, making DPAMT a first-class citizen and just get rid > of the optional and ensure that DPAMT is used in 99% of the cases? The optimization work won't help the problem of TDX series constantly being too big. Optional DPAMT is not going to solve that problem completely either, but every little bit helps. > Otherwise it just feels that upstream work starts with one statement and > commitments, later those are revised and/or never materialize. TBH this characterization seems a bit sensationalized. The later DPAMT series had a patch to make it optional and default off, but Dave suggested to do it as a follow up: https://lore.kernel.org/kvm/9adb11c7-7e8f-4a6c-a4d6-fdcb717c41f5@intel.com/ And here we are. So I don't see any major change here actually. But plans do change sometimes... If you were eagerly awaiting the lock optimization or something, please just say. BTW, the other decent option here is to make DPAMT optional but default on. If we have a flag, I'd think to make if default off until contention is improved. But if you would feel better that the pain was in place until the optimization materialized... On how we should do further optimizations eventually... We do have a patch on hand that helps, but it is fairly exotic one. Now that we have basic support, further optimizations will be evaluated in a different context. I'd expect a more upleveled wholistic evaluation of what the core problem is. Are there any changes in the module that could help us avoid maintaining exotic locking dances, etc? What was your expectation? ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-11-26 10:48 ` Nikolay Borisov 2026-11-30 20:02 ` Edgecombe, Rick P @ 2026-11-30 20:42 ` Dave Hansen 2026-11-30 22:17 ` Nikolay Borisov 1 sibling, 1 reply; 19+ messages in thread From: Dave Hansen @ 2026-11-30 20:42 UTC (permalink / raw) To: Nikolay Borisov, Rick Edgecombe, bp, hpa, kas, linux-kernel, mingo, tglx, x86, chao.gao, yan.y.zhao, yilun.xu On 11/26/26 02:48, Nikolay Borisov wrote: > To me all this seems like "DPAMT upstream was rushed because it is > helpful for some few big players", and because 99% of the other > people aren't going to use it let's make it optional. I can see why it might look that way, but that is precisely zero of the motivation behind the idea. Approximately all of these TDX patch series are too big. They're too big to review effectively and too big to merge quickly. DPAMT support makes them even bigger. So, if we have the opportunity to split a series into two pieces: one ignoring DPAMT, and a later one not ignoring it, I'm all for it. It has nothing to do with DPAMT being bad or good or rushed. It's just added complexity that isn't 100% needed to turn the lights on. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-11-30 20:42 ` Dave Hansen @ 2026-11-30 22:17 ` Nikolay Borisov 2026-11-30 22:20 ` Edgecombe, Rick P 2026-11-30 22:22 ` Dave Hansen 0 siblings, 2 replies; 19+ messages in thread From: Nikolay Borisov @ 2026-11-30 22:17 UTC (permalink / raw) To: Dave Hansen, Rick Edgecombe, bp, hpa, kas, linux-kernel, mingo, tglx, x86, chao.gao, yan.y.zhao, yilun.xu On 30.11.26 г. 22:42 ч., Dave Hansen wrote: > > Approximately all of these TDX patch series are too big. They're too big > to review effectively and too big to merge quickly. DPAMT support makes > them even bigger. So, if we have the opportunity to split a series into > two pieces: one ignoring DPAMT, and a later one not ignoring it, I'm all > for it. Sure, however, right now there is DPAMT code which seems to add noise to the existing series. I'm now in the process of looking at the TDX connect stuff and in it there are patches which specifically deal with DPAMT. If it's going to be optional for the time being then why bother having the code there as well ? Specifically I'm referring to : coco/tdx-host: Enable trusted DMA on IOMMUs on device connect ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-11-30 22:17 ` Nikolay Borisov @ 2026-11-30 22:20 ` Edgecombe, Rick P 2026-11-30 22:22 ` Dave Hansen 1 sibling, 0 replies; 19+ messages in thread From: Edgecombe, Rick P @ 2026-11-30 22:20 UTC (permalink / raw) To: Gao, Chao, Hansen, Dave, Xu, Yilun, bp@alien8.de, kas@kernel.org, hpa@zytor.com, mingo@redhat.com, linux-kernel@vger.kernel.org, x86@kernel.org, tglx@kernel.org, Zhao, Yan Y, nik.borisov@suse.com On Tue, 2026-12-01 at 00:17 +0200, Nikolay Borisov wrote: > > On 30.11.26 г. 22:42 ч., Dave Hansen wrote: > > > > Approximately all of these TDX patch series are too big. They're too big > > to review effectively and too big to merge quickly. DPAMT support makes > > them even bigger. So, if we have the opportunity to split a series into > > two pieces: one ignoring DPAMT, and a later one not ignoring it, I'm all > > for it. > > > Sure, however, right now there is DPAMT code which seems to add noise to > the existing series. I'm now in the process of looking at the TDX > connect stuff and in it there are patches which specifically deal with > DPAMT. If it's going to be optional for the time being then why bother > having the code there as well ? Specifically I'm referring to : > > coco/tdx-host: Enable trusted DMA on IOMMUs on device connect The point is to remove that stuff for the initial sets. So that should be removed. ^ permalink raw reply [flat|nested] 19+ messages in thread
* Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT 2026-11-30 22:17 ` Nikolay Borisov 2026-11-30 22:20 ` Edgecombe, Rick P @ 2026-11-30 22:22 ` Dave Hansen 1 sibling, 0 replies; 19+ messages in thread From: Dave Hansen @ 2026-11-30 22:22 UTC (permalink / raw) To: Nikolay Borisov, Rick Edgecombe, bp, hpa, kas, linux-kernel, mingo, tglx, x86, chao.gao, yan.y.zhao, yilun.xu On 11/30/26 14:17, Nikolay Borisov wrote: > On 30.11.26 г. 22:42 ч., Dave Hansen wrote: >> Approximately all of these TDX patch series are too big. They're too big >> to review effectively and too big to merge quickly. DPAMT support makes >> them even bigger. So, if we have the opportunity to split a series into >> two pieces: one ignoring DPAMT, and a later one not ignoring it, I'm all >> for it. > > Sure, however, right now there is DPAMT code which seems to add noise to > the existing series. I'm now in the process of looking at the TDX > connect stuff and in it there are patches which specifically deal with > DPAMT. If it's going to be optional for the time being then why bother > having the code there as well ? Specifically I'm referring to : > > coco/tdx-host: Enable trusted DMA on IOMMUs on device connect It's just that: optional. I'm trying to give flexibility to the series authors, not say they must or must not have DPAMT support in the initial batch of code. If you as a reviewer think it would be good for patch authors to take advantage of that flexibility, then that's great feedback to give. Make sense? ^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2026-12-04 21:45 UTC | newest] Thread overview: 19+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-11-26 0:54 [PATCH] x86/virt/tdx: Add command line param for DPAMT Rick Edgecombe 2026-11-26 8:13 ` Yan Zhao 2026-12-02 0:12 ` Dave Hansen 2026-12-02 18:04 ` Vishal Annapurve 2026-12-03 7:45 ` Yan Zhao 2026-12-04 16:47 ` Dave Hansen 2026-12-04 18:44 ` Edgecombe, Rick P 2026-12-04 19:16 ` Sean Christopherson 2026-12-04 19:18 ` Dave Hansen 2026-12-04 21:44 ` Sohil Mehta 2026-12-02 1:14 ` Edgecombe, Rick P 2026-12-02 1:24 ` Yan Zhao 2026-12-02 14:27 ` Edgecombe, Rick P 2026-11-26 10:48 ` Nikolay Borisov 2026-11-30 20:02 ` Edgecombe, Rick P 2026-11-30 20:42 ` Dave Hansen 2026-11-30 22:17 ` Nikolay Borisov 2026-11-30 22:20 ` Edgecombe, Rick P 2026-11-30 22:22 ` Dave Hansen
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.