Messages in this thread | | | From | Dexuan Cui <> | Subject | RE: [PATCH 5/6] x86/hyperv: Support hypercalls for TDX guests | Date | Mon, 28 Nov 2022 01:55:48 +0000 |
| |
> From: Sathyanarayanan Kuppuswamy > <sathyanarayanan.kuppuswamy@linux.intel.com> > > + > > +u64 hv_tdx_hypercall(u64 control, u64 input_addr, u64 output_addr) > > +{ > > + struct tdx_hypercall_args args = { }; > > I think you mean initialize to 0. Yes, it's the same as "struct tdx_hypercall_args args = { 0 };"
I was educated to use "{ }", which is said to be more preferred, compared to "{ 0 } ":
https://lwn.net/ml/linux-kernel/YG1qF8lULn8lLJa/@unreal/ https://lwn.net/ml/linux-kernel/MW2PR2101MB0892AC106C360F2A209560A8BF759@MW2PR2101MB0892.namprd21.prod.outlook.com/
| |