Skip to content

Commit 54ddda9

Browse files
author
Marc Zyngier
committed
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 <[email protected]> Reviewed-by: Reiji Watanabe <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
1 parent 5a3984f commit 54ddda9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/arm64/include/asm/kvm_host.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,13 @@ struct kvm_vcpu_arch {
333333
} fp_state;
334334

335335
/* Configuration flags, set once and for all before the vcpu can run */
336-
u64 cflags;
336+
u8 cflags;
337337

338338
/* Input flags to the hypervisor code, potentially cleared after use */
339-
u64 iflags;
339+
u8 iflags;
340340

341341
/* State flags for kernel bookkeeping, unused by the hypervisor code */
342-
u64 sflags;
342+
u8 sflags;
343343

344344
/*
345345
* We maintain more than a single set of debug registers to support

0 commit comments

Comments
 (0)