[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <092b78ee1dea89728d79273dd9fd0f499db71347.camel@intel.com>
Date: Wed, 13 Nov 2024 22:01:41 +0000
From: "Edgecombe, Rick P" <rick.p.edgecombe@...el.com>
To: "pbonzini@...hat.com" <pbonzini@...hat.com>, "Hansen, Dave"
<dave.hansen@...el.com>, "seanjc@...gle.com" <seanjc@...gle.com>, "Huang,
Kai" <kai.huang@...el.com>
CC: "Yao, Yuan" <yuan.yao@...el.com>, "binbin.wu@...ux.intel.com"
<binbin.wu@...ux.intel.com>, "Li, Xiaoyao" <xiaoyao.li@...el.com>,
"isaku.yamahata@...il.com" <isaku.yamahata@...il.com>, "Zhao, Yan Y"
<yan.y.zhao@...el.com>, "tony.lindgren@...ux.intel.com"
<tony.lindgren@...ux.intel.com>, "kvm@...r.kernel.org" <kvm@...r.kernel.org>,
"Chatre, Reinette" <reinette.chatre@...el.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, "Yamahata,
Isaku" <isaku.yamahata@...el.com>
Subject: Re: [PATCH v2 08/25] x86/virt/tdx: Add SEAMCALL wrappers for TDX page
cache management
On Thu, 2024-11-14 at 10:25 +1300, Huang, Kai wrote:
> >
> > So, yeah, I'd rather not export seamcall_ret(), but I'd rather do that
> > than have a layer of abstraction that's adding little value while it
> > also brings obfuscation.
>
> Just want to provide one more information:
>
> Peter posted a series to allow us to export one symbol _only_ for a
> particular module:
>
> https://lore.kernel.org/lkml/20241111105430.575636482@infradead.org/
>
> IIUC we can use that to only export __seamcall*() for KVM.
>
> I am not sure whether this addresses the concern of "the exported symbol
> could be potentially abused by other modules like out-of-tree ones"?
I think so. It's too bad it's an RFC v1. But maybe we could point to it for the
future, if we move the wrappers back into KVM.
The other small thing the export does is move the KVM disliked code generation
into arch/x86. This is a silly non-technical reason though.
Powered by blists - more mailing lists