diff options
author | Marc Zyngier <maz@kernel.org> | 2022-05-28 12:38:27 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-06-29 10:23:46 +0100 |
commit | 54ddda919c4bc37c113727034619c4e15c184334 (patch) | |
tree | 542b7bbd6e1276cfff230328e00fa1eebc23d76a | |
parent | 5a3984f4ec73d1c7cf31a4cee46cca7d4c75deee (diff) |
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>
-rw-r--r-- | arch/arm64/include/asm/kvm_host.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index 6a37018f40b7..c6975ecf5a5f 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -333,13 +333,13 @@ struct kvm_vcpu_arch { } fp_state; /* Configuration flags, set once and for all before the vcpu can run */ - u64 cflags; + u8 cflags; /* Input flags to the hypervisor code, potentially cleared after use */ - u64 iflags; + u8 iflags; /* State flags for kernel bookkeeping, unused by the hypervisor code */ - u64 sflags; + u8 sflags; /* * We maintain more than a single set of debug registers to support |