]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Reduce the size of the vcpu flag members
authorMarc Zyngier <maz@kernel.org>
Sat, 28 May 2022 11:38:27 +0000 (12:38 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 29 Jun 2022 09:23:46 +0000 (10:23 +0100)
commit4b46a1124ea2bf71dd8a2ec79fffef50ba4b4adb
tree542b7bbd6e1276cfff230328e00fa1eebc23d76a
parent5be36a8310aa28bab36ffb6b59d2591b2412bdb9
KVM: arm64: Reduce the size of the vcpu flag members

Now that we can detect flags overflowing their container, reduce
the size of all flag set members in the vcpu struct, turning them
into 8bit quantities.

Even with the FP state enum occupying 32bit, the whole of the state
that was represented by flags is smaller by one byte. Profit!

Reviewed-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h