Messages in this thread | | | Subject | Re: [RFC v2 10/32] x86/tdx: Wire up KVM hypercalls | From | "Kuppuswamy, Sathyanarayanan" <> | Date | Wed, 12 May 2021 07:10:41 -0700 |
| |
On 5/12/21 6:00 AM, Kirill A. Shutemov wrote: > This has to be compiled only for TDX+KVM.
Got it. So if we want to remove the "C" file include, we will have to add #ifdef CONFIG_KVM_GUEST in Makefile.
ifdef CONFIG_KVM_GUEST obj-$(CONFIG_INTEL_TDX_GUEST) += tdx-kvm.o #endif
Dave, do you prefer above change over "C" file include?
25 #ifdef CONFIG_KVM_GUEST 26 #include "tdx-kvm.c" 27 #endif
-- Sathyanarayanan Kuppuswamy Linux Kernel Developer
| |