]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Initialize the hypervisor's VM state at EL2
authorFuad Tabba <tabba@google.com>
Fri, 18 Oct 2024 07:48:31 +0000 (08:48 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 31 Oct 2024 18:45:24 +0000 (18:45 +0000)
commitcb0c272acebdf099431c34972963377f83872a08
treef5814b6dc4b9650a52a4de3319f3bc6d5108a1d2
parent3663b258f7231c7f3888c96e5c1eee33547873a6
KVM: arm64: Initialize the hypervisor's VM state at EL2

Do not trust the state of the VM as provided by the host when
initializing the hypervisor's view of the VM sate. Initialize it
instead at EL2 to a known good and safe state, as pKVM already
does with hypervisor VCPU states.

Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://lore.kernel.org/r/20241018074833.2563674-4-tabba@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/nvhe/pkvm.c