Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT
From: Edgecombe, Rick P
Date: Wed Dec 02 2026 - 09:27:47 EST
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.