Skip to content

Commit db708fc

Browse files
Shuo A Liuwenlingz
authored andcommitted
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>
1 parent e4f5c1e commit db708fc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

hypervisor/arch/x86/guest/vm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ int32_t create_vm(uint16_t vm_id, struct acrn_vm_config *vm_config, struct acrn_
575575
vm->sw.io_shared_page = NULL;
576576
if ((vm_config->load_order == POST_LAUNCHED_VM) && ((vm_config->guest_flags & GUEST_FLAG_IO_COMPLETION_POLLING) != 0U)) {
577577
/* enable IO completion polling mode per its guest flags in vm_config. */
578-
vm->sw.is_completion_polling = true;
578+
vm->sw.is_polling_ioreq = true;
579579
}
580580
status = set_vcpuid_entries(vm);
581581
if (status == 0) {

hypervisor/common/hypercall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ int32_t hcall_notify_ioreq_finish(uint16_t vmid, uint16_t vcpu_id)
552552
__func__, vcpu_id, target_vm->vm_id);
553553
} else {
554554
vcpu = vcpu_from_vid(target_vm, vcpu_id);
555-
if (!vcpu->vm->sw.is_completion_polling) {
555+
if (!vcpu->vm->sw.is_polling_ioreq) {
556556
signal_event(&vcpu->events[VCPU_EVENT_IOREQ]);
557557
}
558558
ret = 0;

hypervisor/dm/io_req.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ int32_t acrn_insert_request(struct acrn_vcpu *vcpu, const struct io_request *io_
9797
vhm_req->type = io_req->io_type;
9898
(void)memcpy_s(&vhm_req->reqs, sizeof(union vhm_io_request),
9999
&io_req->reqs, sizeof(union vhm_io_request));
100-
if (vcpu->vm->sw.is_completion_polling) {
100+
if (vcpu->vm->sw.is_polling_ioreq) {
101101
vhm_req->completion_polling = 1U;
102102
is_polling = true;
103103
}

hypervisor/include/arch/x86/guest/vm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct vm_sw_info {
6767
/* HVA to IO shared page */
6868
void *io_shared_page;
6969
/* If enable IO completion polling mode */
70-
bool is_completion_polling;
70+
bool is_polling_ioreq;
7171
};
7272

7373
struct vm_pm_info {

0 commit comments

Comments
 (0)