mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
HV: HV: make io_read_fn_t return true or false
This patch makes io_read_fn_t return true or false instead of void. Returning true means that the handler in HV process the request completely. Returning false means that we need to re-inject the request to DM after processing it in HV. Tracked-On: #2865 Signed-off-by: Kaige Fu <kaige.fu@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
3b2ad67788
commit
1c0d7f78d0
@@ -49,7 +49,7 @@ struct acrn_vm;
|
||||
struct acrn_vcpu;
|
||||
|
||||
typedef
|
||||
uint32_t (*io_read_fn_t)(struct acrn_vm *vm, uint16_t port, size_t size);
|
||||
bool (*io_read_fn_t)(struct acrn_vm *vm, struct acrn_vcpu *vcpu, uint16_t port, size_t size);
|
||||
|
||||
typedef
|
||||
bool (*io_write_fn_t)(struct acrn_vm *vm, uint16_t port, size_t size, uint32_t val);
|
||||
|
Reference in New Issue
Block a user