mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-20 20:53:46 +00:00
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:
parent
e4f5c1ef48
commit
db708fc3e8
@ -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;
|
||||
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. */
|
||||
vm->sw.is_completion_polling = true;
|
||||
vm->sw.is_polling_ioreq = true;
|
||||
}
|
||||
status = set_vcpuid_entries(vm);
|
||||
if (status == 0) {
|
||||
|
@ -552,7 +552,7 @@ int32_t hcall_notify_ioreq_finish(uint16_t vmid, uint16_t vcpu_id)
|
||||
__func__, vcpu_id, target_vm->vm_id);
|
||||
} else {
|
||||
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]);
|
||||
}
|
||||
ret = 0;
|
||||
|
@ -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;
|
||||
(void)memcpy_s(&vhm_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;
|
||||
is_polling = true;
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ struct vm_sw_info {
|
||||
/* HVA to IO shared page */
|
||||
void *io_shared_page;
|
||||
/* If enable IO completion polling mode */
|
||||
bool is_completion_polling;
|
||||
bool is_polling_ioreq;
|
||||
};
|
||||
|
||||
struct vm_pm_info {
|
||||
|
Loading…
Reference in New Issue
Block a user