@@ -111,12 +111,12 @@ static bool vcpu_pending_request(struct vcpu *vcpu)
111
111
vcpu_make_request (vcpu , ACRN_REQUEST_EVENT );
112
112
}
113
113
114
- return vcpu -> arch_vcpu .pending_intr != 0 ;
114
+ return vcpu -> arch_vcpu .pending_req != 0 ;
115
115
}
116
116
117
117
int vcpu_make_request (struct vcpu * vcpu , int eventid )
118
118
{
119
- bitmap_set (eventid , & vcpu -> arch_vcpu .pending_intr );
119
+ bitmap_set (eventid , & vcpu -> arch_vcpu .pending_req );
120
120
/*
121
121
* if current hostcpu is not the target vcpu's hostcpu, we need
122
122
* to invoke IPI to wake up target vcpu
@@ -255,7 +255,7 @@ int interrupt_window_vmexit_handler(struct vcpu *vcpu)
255
255
256
256
if (vcpu_pending_request (vcpu )) {
257
257
/* Do nothing
258
- * acrn_do_intr_process will continue for this vcpu
258
+ * acrn_handle_pending_request will continue for this vcpu
259
259
*/
260
260
} else {
261
261
/* No interrupts to inject.
@@ -296,18 +296,18 @@ int external_interrupt_vmexit_handler(struct vcpu *vcpu)
296
296
return 0 ;
297
297
}
298
298
299
- int acrn_do_intr_process (struct vcpu * vcpu )
299
+ int acrn_handle_pending_request (struct vcpu * vcpu )
300
300
{
301
301
int ret = 0 ;
302
302
int vector ;
303
303
int tmp ;
304
304
bool intr_pending = false;
305
- uint64_t * pending_intr_bits = & vcpu -> arch_vcpu .pending_intr ;
305
+ uint64_t * pending_req_bits = & vcpu -> arch_vcpu .pending_req ;
306
306
307
- if (bitmap_test_and_clear (ACRN_REQUEST_TLB_FLUSH , pending_intr_bits ))
307
+ if (bitmap_test_and_clear (ACRN_REQUEST_TLB_FLUSH , pending_req_bits ))
308
308
invept (vcpu );
309
309
310
- if (bitmap_test_and_clear (ACRN_REQUEST_TMR_UPDATE , pending_intr_bits ))
310
+ if (bitmap_test_and_clear (ACRN_REQUEST_TMR_UPDATE , pending_req_bits ))
311
311
vioapic_update_tmr (vcpu );
312
312
313
313
/* handling cancelled event injection when vcpu is switched out */
@@ -353,7 +353,7 @@ int acrn_do_intr_process(struct vcpu *vcpu)
353
353
354
354
/* Do pending interrupts process */
355
355
/* TODO: checkin NMI intr windows before inject */
356
- if (bitmap_test_and_clear (ACRN_REQUEST_NMI , pending_intr_bits )) {
356
+ if (bitmap_test_and_clear (ACRN_REQUEST_NMI , pending_req_bits )) {
357
357
/* Inject NMI vector = 2 */
358
358
exec_vmwrite (VMX_ENTRY_INT_INFO_FIELD ,
359
359
VMX_INT_INFO_VALID | (VMX_INT_TYPE_NMI << 8 ) | IDT_NMI );
@@ -370,23 +370,23 @@ int acrn_do_intr_process(struct vcpu *vcpu)
370
370
if (is_guest_irq_enabled (vcpu )) {
371
371
/* Inject external interrupt first */
372
372
if (bitmap_test_and_clear (ACRN_REQUEST_EXTINT ,
373
- pending_intr_bits )) {
373
+ pending_req_bits )) {
374
374
/* has pending external interrupts */
375
375
ret = vcpu_do_pending_extint (vcpu );
376
376
goto INTR_WIN ;
377
377
}
378
378
379
379
/* Inject vLAPIC vectors */
380
380
if (bitmap_test_and_clear (ACRN_REQUEST_EVENT ,
381
- pending_intr_bits )) {
381
+ pending_req_bits )) {
382
382
/* has pending vLAPIC interrupts */
383
383
ret = vcpu_do_pending_event (vcpu );
384
384
goto INTR_WIN ;
385
385
}
386
386
}
387
387
388
388
/* Inject GP event */
389
- if (bitmap_test_and_clear (ACRN_REQUEST_GP , pending_intr_bits )) {
389
+ if (bitmap_test_and_clear (ACRN_REQUEST_GP , pending_req_bits )) {
390
390
/* has pending GP interrupts */
391
391
ret = vcpu_do_pending_gp (vcpu );
392
392
goto INTR_WIN ;
@@ -416,7 +416,7 @@ void cancel_event_injection(struct vcpu *vcpu)
416
416
/*
417
417
* If event is injected, we clear VMX_ENTRY_INT_INFO_FIELD,
418
418
* save injection info, and mark inject event pending.
419
- * The event will be re-injected in next acrn_do_intr_process
419
+ * The event will be re-injected in next acrn_handle_pending_request
420
420
* call.
421
421
*/
422
422
if (intinfo & VMX_INT_INFO_VALID ) {
0 commit comments