lkml.org 
[lkml]   [2023]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v3 10/10] x86/hyperv: Move the code in ivm.c around to avoid unnecessary ifdef's
Date
From: Dexuan Cui <decui@microsoft.com> Sent: Thursday, August 24, 2023 1:07 AM
>
> Group the code this way so that we can avoid too many ifdef's:
>
> Data only used in an SNP VM with the paravisor;
> Functions only used in an SNP VM with the paravisor;
>
> Data only used in an SNP VM without the paravisor;
> Functions only used in an SNP VM without the paravisor;
>
> Functions only used in a TDX VM, with and without the paravisor;
>
> Functions used in an SNP or TDX VM, when the paravisor is present;
>
> Functions always used, even in a regular non-CoCo VM.
>
> No functional change.
>
> Signed-off-by: Dexuan Cui <decui@microsoft.com>
> ---
>
> This patch appears the first time in v3.
>
> arch/x86/hyperv/ivm.c | 309 ++++++++++++++++++++----------------------
> 1 file changed, 150 insertions(+), 159 deletions(-)
>

Reviewed-by: Michael Kelley <mikelley@microsoft.com>

\
 
 \ /
  Last update: 2023-08-24 16:12    [W:0.295 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site