mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-13 11:33:58 +00:00
instr_emul: remove vm_gva2gpa
- vm_gva2gpa is same as gva2gpa, so replace it with gva2gpa directly. - remove dead usage of vm_gva2gpa in emulate_movs. Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -287,17 +287,6 @@ static int mmio_write(struct vcpu *vcpu, __unused uint64_t gpa, uint64_t wval,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int vm_gva2gpa(struct vcpu *vcpu, uint64_t gva, uint64_t *gpa,
|
||||
uint32_t *err_code)
|
||||
{
|
||||
|
||||
ASSERT(gpa != NULL, "Error in input arguments");
|
||||
ASSERT(vcpu != NULL,
|
||||
"Invalid vcpu id when gva2gpa");
|
||||
|
||||
return gva2gpa(vcpu, gva, gpa, err_code);
|
||||
}
|
||||
|
||||
int decode_instruction(struct vcpu *vcpu)
|
||||
{
|
||||
struct emul_cnx *emul_cnx;
|
||||
|
||||
Reference in New Issue
Block a user