On 04/06/20 08:39, Philippe Mathieu-Daudé wrote: >> simulate_wrmsr(cpu); >> } >> - RIP(env) += rvmcs(cpu->hvf_fd, VMCS_EXIT_INSTRUCTION_LENGTH); >> + RIP(env) += ins_len; > I'd feel safer if you change ins_len to uint64_t first. >
Why? It will never be more than 15 (it's also a 32-bit field in the VMCS). Paolo