Re: [PATCH v3 10/10] x86/hyperv: Move the code in ivm.c around to avoid unnecessary ifdef's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/24/2023 4:07 PM, Dexuan Cui wrote:
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@xxxxxxxxxxxxx>

Reviewed-by: Tianyu Lan <tiala@xxxxxxxxxxxxx>



[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux