From: Tianyu Lan<ltykernel@xxxxxxxxx> Sent: Thursday, June 1, 2023 8:16 AM
SEV-SNP guest provides vtl(Virtual Trust Level) andLet's clean up this commit message a bit. I would suggest:
get it from Hyper-V hvcall via register hvcall HVCALL_
GET_VP_REGISTERS.
During initialization of VMBus, vtl needs to be set in the
VMBus init message.
SEV-SNP guests on Hyper-V can run at multiple Virtual Trust
Levels (VTL). During boot, get the VTL at which we're running
using the GET_VP_REGISTERs hypercall, and save the value
for future use. Then during VMBus initialization, set the VTL
with the saved value as required in the VMBus init message.