Re: [PATCH 20/30] KVM: SVM: preserve VGIF across VMCB switch
From: Paolo Bonzini
Date: Mon Jun 01 2020 - 03:31:10 EST
On 01/06/20 01:11, Krish Sadhukhan wrote:
>>
>> +ÂÂÂ svm->vmcb->control.int_ctlÂÂÂÂÂÂÂÂÂÂÂÂ =
>> +ÂÂÂÂÂÂÂ (svm->nested.ctl.int_ctl & ~mask) |
>> +ÂÂÂÂÂÂÂ (svm->nested.hsave->control.int_ctl & mask);
>
>
> If this is the very first VMRUN, do we have any int_ctl saved in hsave ?
Yes, copy_vmcb_control_area(hsave, vmcb) is called before
enter_svm_guest_mode (which calls nested_prepare_vmcb_control).
Paolo