hv: rename is_completion_polling to is_polling_ioreq

is_polling_ioreq is more straightforward. Rename it.

Tracked-On: #4329
Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Shuo A Liu 2020-01-07 14:30:00 +08:00 committed by wenlingz
parent e4f5c1ef48
commit db708fc3e8
4 changed files with 4 additions and 4 deletions

View File

@ -575,7 +575,7 @@ int32_t create_vm(uint16_t vm_id, struct acrn_vm_config *vm_config, struct acrn_
vm->sw.io_shared_page = NULL; vm->sw.io_shared_page = NULL;
if ((vm_config->load_order == POST_LAUNCHED_VM) && ((vm_config->guest_flags & GUEST_FLAG_IO_COMPLETION_POLLING) != 0U)) { if ((vm_config->load_order == POST_LAUNCHED_VM) && ((vm_config->guest_flags & GUEST_FLAG_IO_COMPLETION_POLLING) != 0U)) {
/* enable IO completion polling mode per its guest flags in vm_config. */ /* enable IO completion polling mode per its guest flags in vm_config. */
vm->sw.is_completion_polling = true; vm->sw.is_polling_ioreq = true;
} }
status = set_vcpuid_entries(vm); status = set_vcpuid_entries(vm);
if (status == 0) { if (status == 0) {

View File

@ -552,7 +552,7 @@ int32_t hcall_notify_ioreq_finish(uint16_t vmid, uint16_t vcpu_id)
__func__, vcpu_id, target_vm->vm_id); __func__, vcpu_id, target_vm->vm_id);
} else { } else {
vcpu = vcpu_from_vid(target_vm, vcpu_id); vcpu = vcpu_from_vid(target_vm, vcpu_id);
if (!vcpu->vm->sw.is_completion_polling) { if (!vcpu->vm->sw.is_polling_ioreq) {
signal_event(&vcpu->events[VCPU_EVENT_IOREQ]); signal_event(&vcpu->events[VCPU_EVENT_IOREQ]);
} }
ret = 0; ret = 0;

View File

@ -97,7 +97,7 @@ int32_t acrn_insert_request(struct acrn_vcpu *vcpu, const struct io_request *io_
vhm_req->type = io_req->io_type; vhm_req->type = io_req->io_type;
(void)memcpy_s(&vhm_req->reqs, sizeof(union vhm_io_request), (void)memcpy_s(&vhm_req->reqs, sizeof(union vhm_io_request),
&io_req->reqs, sizeof(union vhm_io_request)); &io_req->reqs, sizeof(union vhm_io_request));
if (vcpu->vm->sw.is_completion_polling) { if (vcpu->vm->sw.is_polling_ioreq) {
vhm_req->completion_polling = 1U; vhm_req->completion_polling = 1U;
is_polling = true; is_polling = true;
} }

View File

@ -67,7 +67,7 @@ struct vm_sw_info {
/* HVA to IO shared page */ /* HVA to IO shared page */
void *io_shared_page; void *io_shared_page;
/* If enable IO completion polling mode */ /* If enable IO completion polling mode */
bool is_completion_polling; bool is_polling_ioreq;
}; };
struct vm_pm_info { struct vm_pm_info {