[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <05aecc5a-e8d2-b357-3bf1-3d0cb247c28d@redhat.com>
Date: Sun, 13 Mar 2022 15:03:40 +0100
From: Paolo Bonzini <pbonzini@...hat.com>
To: isaku.yamahata@...el.com, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: isaku.yamahata@...il.com, Jim Mattson <jmattson@...gle.com>,
erdemaktas@...gle.com, Connor Kuehl <ckuehl@...hat.com>,
Sean Christopherson <seanjc@...gle.com>
Subject: Re: [RFC PATCH v5 008/104] KVM: TDX: Add a function to initialize TDX
module
On 3/4/22 20:48, isaku.yamahata@...el.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;
> + }
> +
Powered by blists - more mailing lists