ANDROID: KVM: arm64: Remove DEBUG dependency to PKVM_STACKTRACE
Now pKVM prefaults the entire host stage-2, reading the stacktrace on panic will not trigger any fault. Also, the stacktrace copy is only "leaking" PC values to EL1. The PKVM_STACKTRACE option is therefore a safe option for production. Allow turning it on without PKVM_DEBUG. Bug: 357781595 Change-Id: Ie16dbdf948355f449ddbe830a875ce248e686e79 Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
This commit is contained in:
@@ -61,6 +61,18 @@ config PTDUMP_STAGE2_DEBUGFS
|
||||
|
||||
If in doubt, say N.
|
||||
|
||||
config PKVM_STACKTRACE
|
||||
bool "Protected KVM hypervisor stacktraces"
|
||||
default n
|
||||
help
|
||||
Say Y here to enable pKVM hypervisor stacktraces on hyp_panic()
|
||||
|
||||
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, or not using protected nVHE (pKVM), say N.
|
||||
|
||||
config PKVM_MODULE_PATH
|
||||
string "Path to pKVM modules"
|
||||
default ""
|
||||
@@ -117,18 +129,6 @@ config PKVM_FTRACE
|
||||
|
||||
If unsure, Say N.
|
||||
|
||||
config PKVM_STACKTRACE
|
||||
bool "Protected KVM hypervisor stacktraces"
|
||||
default y
|
||||
help
|
||||
Say Y here to enable pKVM hypervisor stacktraces on hyp_panic()
|
||||
|
||||
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, or not using protected nVHE (pKVM), say N.
|
||||
|
||||
config PKVM_DISABLE_STAGE2_ON_PANIC
|
||||
bool "Disable the host stage-2 on panic"
|
||||
default n
|
||||
|
||||
Reference in New Issue
Block a user