lkml.org 
[lkml]   [2022]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v5 05/22] x86/virt/tdx: Prevent hot-add driver managed memory
From
Date
On Fri, 2022-06-24 at 12:01 -0700, Dave Hansen wrote:
> On 6/22/22 04:16, Kai Huang wrote:
> > @@ -1319,6 +1330,10 @@ int __ref add_memory_resource(int nid, struct resource *res, mhp_t mhp_flags)
> > if (ret)
> > return ret;
> >
> > + ret = arch_memory_add_precheck(nid, start, size, mhp_flags);
> > + if (ret)
> > + return ret;
>
> Shouldn't a patch that claims to be only for "driver managed memory" be
> patching add_memory_driver_managed()?

Right given the ACPI memory hotplug is handled in a separate patch. Will move
to add_memory_driver_managed().


--
Thanks,
-Kai


\
 
 \ /
  Last update: 2022-06-27 07:28    [W:0.136 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site