summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRoman Bolshakov <r.bolshakov@yadro.com>2020-05-28 22:37:50 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2020-06-12 11:15:02 -0400
commit81ae3d0216587bf868486244f038072e07ee4e9d (patch)
tree6587516fcdaa6e4e450d74616d3a2eb100dbd7bc
parent6345d7e2aeb6f7bbaa9c1e7e94e21fccf9453c70 (diff)
downloadfocaccia-qemu-81ae3d0216587bf868486244f038072e07ee4e9d.tar.gz
focaccia-qemu-81ae3d0216587bf868486244f038072e07ee4e9d.zip
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>
-rw-r--r--target/i386/hvf/hvf.c2
1 files changed, 1 insertions, 1 deletions
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;
         }