• Kyle Huey's avatar
    KVM: VMX: Move skip_emulated_instruction out of nested_vmx_check_vmcs12 · eb277562
    Kyle Huey authored
    We can't return both the pass/fail boolean for the vmcs and the upcoming
    continue/exit-to-userspace boolean for skip_emulated_instruction out of
    nested_vmx_check_vmcs, so move skip_emulated_instruction out of it instead.
    
    Additionally, VMENTER/VMRESUME only trigger singlestep exceptions when
    they advance the IP to the following instruction, not when they a) succeed,
    b) fail MSR validation or c) throw an exception. Add a separate call to
    skip_emulated_instruction that will later not be converted to the variant
    that checks the singlestep flag.
    Signed-off-by: default avatarKyle Huey <khuey@kylehuey.com>
    Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
    eb277562
vmx.c 319 KB