Skip to content

Commit cfc7461

Browse files
olafheringliuw
authored andcommitted
hyperv: reduce size of ms_hyperv_info
Use the hole prior shared_gpa_boundary to store the result of get_vtl. This reduces the size by 8 bytes. Signed-off-by: Olaf Hering <[email protected]> Signed-off-by: Wei Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 203a521 commit cfc7461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/asm-generic/mshyperv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ struct ms_hyperv_info {
3636
u32 nested_features;
3737
u32 max_vp_index;
3838
u32 max_lp_index;
39+
u8 vtl;
3940
union {
4041
u32 isolation_config_a;
4142
struct {
@@ -54,7 +55,6 @@ struct ms_hyperv_info {
5455
};
5556
};
5657
u64 shared_gpa_boundary;
57-
u8 vtl;
5858
};
5959
extern struct ms_hyperv_info ms_hyperv;
6060
extern bool hv_nested;

0 commit comments

Comments
 (0)