Il 05/06/2014 09:00, Jan Kiszka ha scritto:
> + rflags = read_rflags() | X86_EFLAGS_CF | X86_EFLAGS_ZF;
> + write_rflags(rflags);
> + ret1 = vmx_on();
Can we ensure that the compiler doesn't inject any ops between
write_rflags and the vmxon that overwrite CF or ZF?
No, in fact if vmx_on were not inlined, building the stack frame with
"sub" would overwrite the flags.
Paolo
If you want those
flags in a specific state, maybe it's better to pass that to vmx_on and
do this in the assembly block with vmxon.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html