• A
    kvm/x86: Pass return code of kvm_emulate_hypercall · 0d9c055e
    Andrey Smetanin 提交于
    Pass the return code from kvm_emulate_hypercall on to the caller,
    in order to allow it to indicate to the userspace that
    the hypercall has to be handled there.
    
    Also adjust all the existing code paths to return 1 to make sure the
    hypercall isn't passed to the userspace without setting kvm_run
    appropriately.
    Signed-off-by: NAndrey Smetanin <asmetanin@virtuozzo.com>
    Reviewed-by: NRoman Kagan <rkagan@virtuozzo.com>
    CC: Gleb Natapov <gleb@kernel.org>
    CC: Paolo Bonzini <pbonzini@redhat.com>
    CC: Joerg Roedel <joro@8bytes.org>
    CC: "K. Y. Srinivasan" <kys@microsoft.com>
    CC: Haiyang Zhang <haiyangz@microsoft.com>
    CC: Roman Kagan <rkagan@virtuozzo.com>
    CC: Denis V. Lunev <den@openvz.org>
    CC: qemu-devel@nongnu.org
    Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
    0d9c055e
vmx.c 309.4 KB