commit | 64bf2e614d83bc0b7ec5d6aedd48f20aea2a0975 | [log] [tgz] |
---|---|---|
author | Quentin Perret <qperret@google.com> | Fri Jan 10 14:56:59 2025 +0000 |
committer | Quentin Perret <qperret@google.com> | Fri Jan 10 15:40:16 2025 +0000 |
tree | 86614a97f0797b0684d53423fad595e864b129d8 | |
parent | b85ac754879310de69180281951285f01d424a8c [diff] |
KVM: arm64: Use scoped_guards in pKVM The error handling code is often source of bugs because it doesn't get much love and testing. scoped_guards allow to reduce the error handling complexity by simplifying greatly locking patterns. This is pretty much always a good thing, and in particular in security-sensitive code where bugs are costly. Convert pKVM to use scoped_guards where possible. No functional changes intended. Signed-off-by: Quentin Perret <qperret@google.com>