i386: hvf: Use ins_len to advance IP

There's no need to read VMCS twice, instruction length is already
available in ins_len.

Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Message-Id: <20200528193758.51454-6-r.bolshakov@yadro.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
Roman Bolshakov 2020-05-28 22:37:50 +03:00 committed by Paolo Bonzini
parent 6345d7e2ae
commit 81ae3d0216

View File

@ -871,7 +871,7 @@ int hvf_vcpu_exec(CPUState *cpu)
} else { } else {
simulate_wrmsr(cpu); simulate_wrmsr(cpu);
} }
RIP(env) += rvmcs(cpu->hvf_fd, VMCS_EXIT_INSTRUCTION_LENGTH); RIP(env) += ins_len;
store_regs(cpu); store_regs(cpu);
break; break;
} }