mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
HV: add hypercall to monitor UOS PTdev intr status
The hypercall can be used by SOS/DM to monitor UOS pass-thru devices' interrupt data; and if an "interrupt storm" happens in UOS, it can be used to delay the UOS PTdev interrupt's injection for sometime. The two functions are implemented by one hypercall with two sub-commands, and with the data/params in the buffer. Tracked-On: #866 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -181,6 +181,10 @@ int vmcall_vmexit_handler(struct vcpu *vcpu)
|
||||
ret = hcall_save_restore_sworld_ctx(vcpu);
|
||||
break;
|
||||
|
||||
case HC_VM_INTR_MONITOR:
|
||||
ret = hcall_vm_intr_monitor(vm, (uint16_t)param1, param2);
|
||||
break;
|
||||
|
||||
default:
|
||||
pr_err("op %d: Invalid hypercall\n", hypcall_id);
|
||||
ret = -EPERM;
|
||||
|
Reference in New Issue
Block a user