• Andrey Smetanin's avatar
    kvm/x86: Pass return code of kvm_emulate_hypercall · 0d9c055e
    Andrey Smetanin authored
    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: default avatarAndrey Smetanin <asmetanin@virtuozzo.com>
    Reviewed-by: default avatarRoman 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: default avatarPaolo Bonzini <pbonzini@redhat.com>
    0d9c055e
hyperv.c 27.2 KB