lkml.org 
[lkml]   [2022]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC PATCH v5 032/104] KVM: x86/mmu: introduce config for PRIVATE KVM MMU
From
On 4/1/22 04:13, Kai Huang wrote:
>> I don't want to use CONFIG_INTEL_TDX_HOST in KVM MMU code. I think the change
>> to KVM MMU should be a sort of independent from TDX. But it seems failed based
>> on your feedback.
>
> Why do you need to use any config? As I said majority of your changes to MMU
> are not under any config. But I'll leave this to maintainer/reviewers.

There are few uses, but the effect should be pretty large, because the
config symbol replaces variable accesses with constants:

+static inline gfn_t kvm_gfn_stolen_mask(struct kvm *kvm)
+{
+#ifdef CONFIG_KVM_MMU_PRIVATE
+ return kvm->arch.gfn_shared_mask;
+#else
+ return 0;
+#endif
+}

Please keep it.

Paolo

\
 
 \ /
  Last update: 2022-04-05 23:10    [W:0.182 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site