projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6345d7e
)
i386: hvf: Use ins_len to advance IP
author
Roman Bolshakov
<r.bolshakov@yadro.com>
Thu, 28 May 2020 19:37:50 +0000
(22:37 +0300)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 12 Jun 2020 15:15:02 +0000
(11:15 -0400)
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>
target/i386/hvf/hvf.c
patch
|
blob
|
history
diff --git
a/target/i386/hvf/hvf.c
b/target/i386/hvf/hvf.c
index 9ccdb7e7c728fa9511262a7f8e8733f872143fc1..8ff1d25521393ebd565254c55d03e7b0b96a95df 100644
(file)
--- 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;
}