lkml.org 
[lkml]   [2022]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH v4 08/18] KVM: arm64: Add PROTECTED_NVHE_STACKTRACE Kconfig
    From
    This can be used to disable stacktrace for the protected KVM
    nVHE hypervisor, in order to save on the associated memory usage.

    This option is disabled by default, since protected KVM is not widely
    used on platforms other than Android currently.

    Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
    ---
    arch/arm64/kvm/Kconfig | 15 +++++++++++++++
    1 file changed, 15 insertions(+)

    diff --git a/arch/arm64/kvm/Kconfig b/arch/arm64/kvm/Kconfig
    index 8a5fbbf084df..1edab6f8a3b8 100644
    --- a/arch/arm64/kvm/Kconfig
    +++ b/arch/arm64/kvm/Kconfig
    @@ -46,6 +46,21 @@ menuconfig KVM

    If unsure, say N.

    +config PROTECTED_NVHE_STACKTRACE
    + bool "Protected KVM hypervisor stacktraces"
    + depends on KVM
    + default n
    + help
    + Say Y here to enable pKVM hypervisor stacktraces on hyp_panic()
    +
    + If you are not using protected nVHE (pKVM), say N.
    +
    + If using protected nVHE mode, but cannot afford the associated
    + memory cost (less than 0.75 page per CPU) of pKVM stacktraces,
    + say N.
    +
    + If unsure, say N.
    +
    config NVHE_EL2_DEBUG
    bool "Debug mode for non-VHE EL2 object"
    depends on KVM
    --
    2.37.0.170.g444d1eabd0-goog
    \
     
     \ /
      Last update: 2022-07-15 08:13    [W:4.726 / U:0.112 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site