On 2013-07-24 13:20, Arthur Chunqi Li wrote: > And what about this version: > > static int vmx_run() > { > u32 ret = 0; > > asm volatile( > "mov %%rsp, %%rsi\n\t" > "mov %2, %%edi\n\t" > "call vmcs_write\n\t" > > "0: " > LOAD_GPR_C > "cmpl $0, %1\n\t" > "jne 1f\n\t" > "vmlaunch;seta %1\n\t" That doesn't differentiate between CF and ZF (so that you can check if vmlaunch set the right flag). Also, only one instruction per line, please. Jan
Attachment:
signature.asc
Description: OpenPGP digital signature