lkml.org 
[lkml]   [2022]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC PATCH v5 008/104] KVM: TDX: Add a function to initialize TDX module
From
On 3/4/22 20:48, isaku.yamahata@intel.com wrote:
> +
> + if (!tdx_module_initialized) {
> + if (enable_tdx) {
> + ret = __tdx_module_setup();
> + if (ret)
> + enable_tdx = false;

"enable_tdx = false" isn't great to do only when a VM is created. Does
it make sense to anticipate this to the point when the kvm_intel.ko
module is loaded?

Paolo

> + else
> + tdx_module_initialized = true;
> + } else
> + ret = -EOPNOTSUPP;
> + }
> +

\
 
 \ /
  Last update: 2022-03-13 15:04    [W:1.188 / U:0.688 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site