KVM: arm64: Don't use empty structures as CPU reset state
authorMarc Zyngier <maz@kernel.org>
Sun, 12 Apr 2020 17:49:31 +0000 (18:49 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 28 May 2020 11:00:40 +0000 (12:00 +0100)
commit349c330ced9764667678f4d2804fd4ebc16110c9
treeb8ee0dfada573f5e2b7fd26ba8db8dce7319ec27
parentbb44a8dbea259bc1dc2177b4bc90ca4e8fcbf659
KVM: arm64: Don't use empty structures as CPU reset state

Keeping empty structure as the vcpu state initializer is slightly
wasteful: we only want to set pstate, and zero everything else.
Just do that.

Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/reset.c