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:
Kaige Fu 2018-07-02 19:38:59 +08:00 committed by lijinxia
parent 05d2558f9f
commit 4cd27a5ddd

View File

@ -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;
}