KVM: PPC: Add ePAPR idle hcall support
v7 cover KVM: PPC: Add ePAPR idle hcall support
From: Stuart Yoder <[email protected]>
-version 7 of this patchset
-version 7 changes
KVM: PPC: epapr: Factor out the epapr init
-used ENODEV return code in epapr_paravirt_init -improved error checkign logic as per review comments -fixed spelling errors
KVM: PPC: epapr: Add idle hcall support for host
-removed WE check from check if vcpu is runnable -clear KVM_REQ_UNHALT, which prevented guest from
going idle. This bit was set in common code, but never cleared on PPC.
KVM: PPC: epapr: Update other hypercall invoking
-updated Kconfig for byte-channel and vmpic hcalls
Liu Yu-B13201 (4):
KVM: PPC: epapr: Factor out the epapr init
KVM: PPC: epapr: Add idle hcall support for host
KVM: PPC: epapr: install ev_idle hcall for e500 guest
KVM: PPC: epapr: Update other hypercall invoking
arch/powerpc/include/asm/Kbuild | 1 + arch/powerpc/include/asm/epapr_hcalls.h | 35 ++++++++++-------- arch/powerpc/include/asm/fsl_hcalls.h | 36 +++++++++--------- arch/powerpc/include/asm/kvm_para.h | 14 ++++++- arch/powerpc/kernel/Makefile | 1 + arch/powerpc/kernel/epapr_hcalls.S | 52 ++++++++++++++++++++++++++ arch/powerpc/kernel/epapr_paravirt.c | 61 +++++++++++++++++++++++++++++++ arch/powerpc/kernel/kvm.c | 28 ++------------- arch/powerpc/kernel/kvm_emul.S | 10 ----- arch/powerpc/kvm/booke.c | 6 +++ arch/powerpc/kvm/powerpc.c | 9 ++++- arch/powerpc/platforms/Kconfig | 10 +++++ drivers/tty/Kconfig | 1 + drivers/virt/Kconfig | 1 + include/linux/kvm.h | 2 + 15 files changed, 194 insertions(+), 73 deletions(-) create mode 100644 arch/powerpc/kernel/epapr_hcalls.S create mode 100644 arch/powerpc/kernel/epapr_paravirt.c
Signature · 1 line
1.7.3.4