powerpc: Ultravisor: Add PPC_UV config option
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>
Mon, 25 Nov 2019 03:06:31 +0000 (08:36 +0530)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 28 Nov 2019 06:02:40 +0000 (17:02 +1100)
CONFIG_PPC_UV adds support for ultravisor.

Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: Bharata B Rao <bharata@linux.ibm.com>
Signed-off-by: Ram Pai <linuxram@us.ibm.com>
[ Update config help and commit message ]
Signed-off-by: Claudio Carvalho <cclaudio@linux.ibm.com>
Reviewed-by: Sukadev Bhattiprolu <sukadev@linux.ibm.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/Kconfig

index 3e56c9c2f16eed8487190350bd615a702c9de498..d7fef29b47c95ce6d7212c9be486a48f92c6c349 100644 (file)
@@ -451,6 +451,23 @@ config PPC_TRANSACTIONAL_MEM
        help
          Support user-mode Transactional Memory on POWERPC.
 
+config PPC_UV
+       bool "Ultravisor support"
+       depends on KVM_BOOK3S_HV_POSSIBLE
+       select ZONE_DEVICE
+       select DEV_PAGEMAP_OPS
+       select DEVICE_PRIVATE
+       select MEMORY_HOTPLUG
+       select MEMORY_HOTREMOVE
+       default n
+       help
+         This option paravirtualizes the kernel to run in POWER platforms that
+         supports the Protected Execution Facility (PEF). On such platforms,
+         the ultravisor firmware runs at a privilege level above the
+         hypervisor.
+
+         If unsure, say "N".
+
 config LD_HEAD_STUB_CATCH
        bool "Reserve 256 bytes to cope with linker stubs in HEAD text" if EXPERT
        depends on PPC64