mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-23 05:57:33 +00:00
HV: Don't pass retval to vmm_emulate_instruction()
We pass retval to vmm_emulate_instruction and assign the return value to retval at the same time. The retval will be passed to mmio_read/write finally as memarg and the functions don't use the parameter actually. Apparently, we misused the retval. This patch fix it by passing 'NULL' to vmm_emulate_instruction. Signed-off-by: Kaige Fu <kaige.fu@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
05d2558f9f
commit
4cd27a5ddd
@ -336,7 +336,7 @@ int emulate_instruction(struct vcpu *vcpu)
|
||||
paging = &emul_cnx->paging;
|
||||
|
||||
retval = vmm_emulate_instruction(vcpu, gpa,
|
||||
&emul_cnx->vie, paging, mread, mwrite, &retval);
|
||||
&emul_cnx->vie, paging, mread, mwrite, NULL);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user