Re: [PATCH v5 7/7] KVM: PPC: Ultravisor: Add PPC_UV config option

2019-07-10 Thread janani
On 2019-07-09 05:25, Bharata B Rao wrote: From: Anshuman Khandual CONFIG_PPC_UV adds support for ultravisor. Signed-off-by: Anshuman Khandual Signed-off-by: Bharata B Rao Signed-off-by: Ram Pai [ Update config help and commit message ] Signed-off-by: Claudio Carvalho Reviewed-by: Janani

Re: [RFC PATCH v5 6/7] kvmppc: Support reset of secure guest

2019-07-10 Thread janani
] Reviewed-by: Janani Janakiraman --- Documentation/virtual/kvm/api.txt | 19 ++ arch/powerpc/include/asm/kvm_book3s_hmm.h | 7 +++ arch/powerpc/include/asm/kvm_ppc.h| 2 + arch/powerpc/include/asm/ultravisor-api.h | 1 + arch/powerpc/include/asm/ultravisor.h | 7

Re: [PATCH v4 3/8] KVM: PPC: Ultravisor: Add generic ultravisor call handler

2019-07-08 Thread janani
-by: Ram Pai [ Change ucall.S to not save CR, rename and move headers, build ucall.S if CONFIG_PPC_POWERNV set, use R3 for the ucall number and add some comments in the code ] Signed-off-by: Claudio Carvalho Reviewed-by: Janani Janakiraman --- arch/powerpc/include/asm/ultravisor-api.h | 20

Re: [PATCH v4 2/8] powerpc: Introduce FW_FEATURE_ULTRAVISOR

2019-07-08 Thread janani
On 2019-06-28 15:08, Claudio Carvalho wrote: This feature tells if the ultravisor firmware is available to handle ucalls. Signed-off-by: Claudio Carvalho [ Device node name to "ibm,ultravisor" ] Signed-off-by: Michael Anderson Reviewed-by: Janani Janakiraman --- arch/powerpc/i

Re: [PATCH v4 4/8] KVM: PPC: Ultravisor: Use UV_WRITE_PATE ucall to register a PATE

2019-07-08 Thread janani
Signed-off-by: Ram Pai [ Write the pate in HV's table before doing that in UV's ] Signed-off-by: Claudio Carvalho Reviewed-by: Janani Janakiraman --- arch/powerpc/include/asm/ultravisor-api.h | 5 +++- arch/powerpc/include/asm/ultravisor.h | 14 ++ arch/powerpc/mm/book3s64

Re: [PATCH v4 1/8] KVM: PPC: Ultravisor: Introduce the MSR_S bit

2019-07-08 Thread janani
1 1 1 reserved The hypervisor doesn't (and can't) run with the MSR_S bit set, but a secure guest and the ultravisor firmware do. Signed-off-by: Sukadev Bhattiprolu Signed-off-by: Ram Pai [ Update the commit message ] Signed-off-by: Claudio Carvalho Reviewed-by: Janani Janakiraman

Re: [PATCH v4 5/8] KVM: PPC: Ultravisor: Restrict flush of the partition tlb cache

2019-07-08 Thread janani
On 2019-06-28 15:08, Claudio Carvalho wrote: From: Ram Pai Ultravisor is responsible for flushing the tlb cache, since it manages the PATE entries. Hence skip tlb flush, if the ultravisor firmware is available. Signed-off-by: Ram Pai Signed-off-by: Claudio Carvalho ---

Re: [PATCH v4 6/8] KVM: PPC: Ultravisor: Restrict LDBAR access

2019-07-08 Thread janani
Reviewed-by: Ryan Grimm Acked-by: Madhavan Srinivasan Acked-by: Paul Mackerras Reviewed-by: Janani Janakiraman --- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 2 ++ arch/powerpc/platforms/powernv/idle.c | 6 -- arch/powerpc/platforms/powernv/opal-imc.c | 4 3 files changed, 10

Re: [PATCH v4 7/8] KVM: PPC: Ultravisor: Enter a secure guest

2019-07-08 Thread janani
the actual R3 in R0 for the ultravisor and use R3 for the UV_RETURN ucall number. Update commit message and ret_to_ultra comment ] Signed-off-by: Claudio Carvalho Reviewed-by: Janani Janakiraman --- arch/powerpc/include/asm/kvm_host.h | 1 + arch/powerpc/include/asm/ultravisor-api.h | 1

Re: [PATCH v4 8/8] KVM: PPC: Ultravisor: Check for MSR_S during hv_reset_msr

2019-07-08 Thread janani
-by: Claudio Carvalho Acked-by: Paul Mackerras Reviewed-by: Janani Janakiraman --- arch/powerpc/kvm/book3s_64_mmu_hv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kvm/book3s_64_mmu_hv.c b/arch/powerpc/kvm/book3s_64_mmu_hv.c index ab3d484c5e2e..ab62a66f9b4e 100644 --- a/arch

Re: [PATCH 1/3] x86, s390: Move ARCH_HAS_MEM_ENCRYPT definition to arch/Kconfig

2019-07-15 Thread janani
Kconfig @@ -1,7 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -config ARCH_HAS_MEM_ENCRYPT -def_bool y - Since you are removing the "def_bool y" when ARCH_HAS_MEM_ENCRYPT is moved to arch/Kconfig, does the s390/Kconfig need "select ARCH_HAS_MEM_ENCRYPT" added like you d

Re: [PATCH v5 3/7] kvmppc: H_SVM_INIT_START and H_SVM_INIT_DONE hcalls

2019-07-09 Thread janani
ata B Rao Acked-by: Paul Mackerras Reviewed-by: Janani Janakiraman --- arch/powerpc/include/asm/hvcall.h | 2 ++ arch/powerpc/include/asm/kvm_book3s_hmm.h | 12 arch/powerpc/include/asm/kvm_host.h | 4 +++ arch/powerpc/include/asm/ultravisor-api.h | 1 + arch/powe

Re: [PATCH v5 2/7] kvmppc: Shared pages support for secure guests

2019-07-09 Thread janani
Reviewed-by: Janani Janakiraman --- arch/powerpc/include/asm/hvcall.h | 3 ++ arch/powerpc/kvm/book3s_hv_hmm.c | 66 +-- 2 files changed, 66 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/hvcall.h b/arch/powerpc/include/asm/hvcall.h index

Re: [PATCH v5 4/7] kvmppc: Handle memory plug/unplug to secure VM

2019-07-09 Thread janani
On 2019-07-09 05:25, Bharata B Rao wrote: Register the new memslot with UV during plug and unregister the memslot during unplug. Signed-off-by: Bharata B Rao Acked-by: Paul Mackerras Reviewed-by: Janani Janakiraman --- arch/powerpc/include/asm/ultravisor-api.h | 1 + arch/powerpc

Re: [RFC PATCH v5 5/7] kvmppc: Radix changes for secure guest

2019-07-09 Thread janani
the secondary page tables of the guest don't do so in case of secure VM. For secure guest, the active secondary page tables are in secure memory and the secondary page tables in HV are freed when guest becomes secure. Signed-off-by: Bharata B Rao Reviewed-by: Janani Janakiraman --- arch

Re: [PATCH v5 1/7] kvmppc: HMM backend driver to manage pages of secure guest

2019-07-09 Thread janani
wed-by: Janani Janakiraman --- arch/powerpc/include/asm/hvcall.h | 4 + arch/powerpc/include/asm/kvm_book3s_hmm.h | 29 ++ arch/powerpc/include/asm/kvm_host.h | 12 + arch/powerpc/include/asm/ultravisor-api.h | 2 + arch/powerpc/include/asm/ultravisor.h | 17 + arch/powerpc/