[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/13] i386: hvf: Use ins_len to advance IP
From: |
Roman Bolshakov |
Subject: |
[PATCH 05/13] i386: hvf: Use ins_len to advance IP |
Date: |
Thu, 28 May 2020 22:37:50 +0300 |
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>
---
target/i386/hvf/hvf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/i386/hvf/hvf.c b/target/i386/hvf/hvf.c
index 9ccdb7e7c7..8ff1d25521 100644
--- a/target/i386/hvf/hvf.c
+++ b/target/i386/hvf/hvf.c
@@ -871,7 +871,7 @@ int hvf_vcpu_exec(CPUState *cpu)
} else {
simulate_wrmsr(cpu);
}
- RIP(env) += rvmcs(cpu->hvf_fd, VMCS_EXIT_INSTRUCTION_LENGTH);
+ RIP(env) += ins_len;
store_regs(cpu);
break;
}
--
2.26.1
- [PATCH 00/13] i386: hvf: Remove HVFX86EmulatorState, Roman Bolshakov, 2020/05/28
- [PATCH 03/13] i386: hvf: Clean stray includes in sysemu, Roman Bolshakov, 2020/05/28
- [PATCH 02/13] i386: hvf: Drop useless declarations in sysemu, Roman Bolshakov, 2020/05/28
- [PATCH 01/13] i386: hvf: Move HVFState definition into hvf, Roman Bolshakov, 2020/05/28
- [PATCH 04/13] i386: hvf: Drop unused variable, Roman Bolshakov, 2020/05/28
- [PATCH 06/13] i386: hvf: Use IP from CPUX86State, Roman Bolshakov, 2020/05/28
- [PATCH 08/13] i386: hvf: Drop rflags from HVFX86EmulatorState, Roman Bolshakov, 2020/05/28
- [PATCH 05/13] i386: hvf: Use ins_len to advance IP,
Roman Bolshakov <=
- [PATCH 07/13] i386: hvf: Drop fetch_rip from HVFX86EmulatorState, Roman Bolshakov, 2020/05/28
- [PATCH 10/13] i386: hvf: Drop regs in HVFX86EmulatorState, Roman Bolshakov, 2020/05/28
- [PATCH 11/13] i386: hvf: Move lazy_flags into CPUX86State, Roman Bolshakov, 2020/05/28
- [PATCH 12/13] i386: hvf: Move mmio_buf into CPUX86State, Roman Bolshakov, 2020/05/28
- [PATCH 09/13] i386: hvf: Drop copy of RFLAGS defines, Roman Bolshakov, 2020/05/28
- [PATCH 13/13] i386: hvf: Drop HVFX86EmulatorState, Roman Bolshakov, 2020/05/28
- Re: [PATCH 00/13] i386: hvf: Remove HVFX86EmulatorState, no-reply, 2020/05/28