mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
To: "Zhao, Yan Y" <yan.y.zhao@intel.com>
Cc: "Gao, Chao" <chao.gao@intel.com>,
	"Hansen, Dave" <dave.hansen@intel.com>,
	"Xu, Yilun" <yilun.xu@intel.com>, "bp@alien8.de" <bp@alien8.de>,
	"ackerleytng@google.com" <ackerleytng@google.com>,
	"kas@kernel.org" <kas@kernel.org>,
	"hpa@zytor.com" <hpa@zytor.com>,
	"mingo@redhat.com" <mingo@redhat.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"x86@kernel.org" <x86@kernel.org>,
	"tglx@kernel.org" <tglx@kernel.org>,
	"Annapurve, Vishal" <vannapurve@google.com>,
	"nik.borisov@suse.com" <nik.borisov@suse.com>,
	"seanjc@google.com" <seanjc@google.com>
Subject: Re: [PATCH] x86/virt/tdx: Add command line param for DPAMT
Date: Wed, 2 Dec 2026 14:27:35 +0000	[thread overview]
Message-ID: <bd89d182dafe73ca60f6b2532b44c133543dbc8a.camel@intel.com> (raw)
In-Reply-To: <aw9zR0QE2Kalg083@yzhao56-desk>

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.

  reply	other threads:[~2026-12-02 14:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  0:54 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-12-02  1:24     ` Yan Zhao
2026-12-02 14:27       ` Edgecombe, Rick P [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bd89d182dafe73ca60f6b2532b44c133543dbc8a.camel@intel.com \
    --to=rick.p.edgecombe@intel.com \
    --cc=ackerleytng@google.com \
    --cc=bp@alien8.de \
    --cc=chao.gao@intel.com \
    --cc=dave.hansen@intel.com \
    --cc=hpa@zytor.com \
    --cc=kas@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=nik.borisov@suse.com \
    --cc=seanjc@google.com \
    --cc=tglx@kernel.org \
    --cc=vannapurve@google.com \
    --cc=x86@kernel.org \
    --cc=yan.y.zhao@intel.com \
    --cc=yilun.xu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®