Messages in this thread | | | Date | Thu, 26 May 2022 07:45:34 -0700 | Subject | Re: [PATCH v7 2/5] x86/tdx: Add TDX Guest event notify interrupt support | From | Sathyanarayanan Kuppuswamy <> |
| |
On 5/26/22 6:48 AM, Wander Lairson Costa wrote: > On Mon, May 23, 2022 at 09:05:14PM -0700, Kuppuswamy Sathyanarayanan wrote: >> >> -#define LOCAL_TIMER_VECTOR 0xec >> +#if IS_ENABLED(CONFIG_INTEL_TDX_GUEST) >> +/* Vector on which TDX Guest event notification is delivered */ >> +#define TDX_GUEST_EVENT_NOTIFY_VECTOR 0xec >> +#endif > > We can simplify this a bit by removing the #if conditional without harm > to the code.
In non TDX environment, we don't initialize this vector. It is similar to definitions related to HYPERV or KVM which also use #if defined. So followed the same format.
> >> + >> +#define LOCAL_TIMER_VECTOR 0xeb >> >> #define NR_VECTORS 256 >> >
-- Sathyanarayanan Kuppuswamy Linux Kernel Developer
| |