@@ -305,7 +305,7 @@ int acrn_do_intr_process(struct vcpu *vcpu)
305
305
306
306
/* handling cancelled event injection when vcpu is switched out */
307
307
if (vcpu -> arch_vcpu .inject_event_pending ) {
308
- exec_vmwrite (VMX_ENTRY_EXCEPTION_EC ,
308
+ exec_vmwrite (VMX_ENTRY_EXCEPTION_ERROR_CODE ,
309
309
vcpu -> arch_vcpu .inject_info .error_code );
310
310
311
311
exec_vmwrite (VMX_ENTRY_INT_INFO_FIELD ,
@@ -331,7 +331,7 @@ int acrn_do_intr_process(struct vcpu *vcpu)
331
331
if (vector >= 0 ) {
332
332
if (exception_type [vector ] &
333
333
EXCEPTION_ERROR_CODE_VALID ) {
334
- exec_vmwrite (VMX_ENTRY_EXCEPTION_EC ,
334
+ exec_vmwrite (VMX_ENTRY_EXCEPTION_ERROR_CODE ,
335
335
vcpu -> arch_vcpu .exception_info .error );
336
336
}
337
337
@@ -419,7 +419,7 @@ void cancel_event_injection(struct vcpu *vcpu)
419
419
420
420
if (intinfo & (EXCEPTION_ERROR_CODE_VALID << 8 ))
421
421
vcpu -> arch_vcpu .inject_info .error_code =
422
- exec_vmread (VMX_ENTRY_EXCEPTION_EC );
422
+ exec_vmread (VMX_ENTRY_EXCEPTION_ERROR_CODE );
423
423
424
424
vcpu -> arch_vcpu .inject_info .intr_info = intinfo ;
425
425
exec_vmwrite (VMX_ENTRY_INT_INFO_FIELD , 0 );
@@ -452,7 +452,7 @@ int exception_vmexit_handler(struct vcpu *vcpu)
452
452
* error code to be conveyed to get via the stack
453
453
*/
454
454
if (intinfo & VMX_INT_INFO_ERR_CODE_VALID ) {
455
- int_err_code = exec_vmread (VMX_EXIT_INT_EC );
455
+ int_err_code = exec_vmread (VMX_EXIT_INT_ERROR_CODE );
456
456
457
457
/* get current privilege level and fault address */
458
458
cpl = exec_vmread (VMX_GUEST_CS_ATTR );
0 commit comments