• Suresh Warrier's avatar
    KVM: PPC: Book3S HV: Move virtual mode ICP functions to real-mode · b0221556
    Suresh Warrier authored
    Interrupt-based hypercalls return H_TOO_HARD to inform KVM that it needs
    to switch to the host to complete the rest of hypercall function in
    virtual mode. This patch ports the virtual mode ICS/ICP reject and resend
    functions to be runnable in hypervisor real mode, thus avoiding the need
    to switch to the host to execute these functions in virtual mode. However,
    the hypercalls continue to return H_TOO_HARD for vcpu_wakeup and notify
    events - these events cannot be done in real mode and they will still need
    a switch to host virtual mode.
    
    There are sufficient differences between the real mode code and the
    virtual mode code for the ICS/ICP resend and reject functions that
    for now the code has been duplicated instead of sharing common code.
    In the future, we can look at creating common functions.
    Signed-off-by: default avatarSuresh Warrier <warrier@linux.vnet.ibm.com>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    b0221556
book3s_hv_rm_xics.c 16.3 KB