All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] hyperv: reduce size of ms_hyperv_info
@ 2023-09-22 19:28 Olaf Hering
  2023-09-22 20:28 ` Wei Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2023-09-22 19:28 UTC (permalink / raw)
  To: linux-hyperv, linux-arch, linux-kernel
  Cc: K. Y. Srinivasan, Haiyang Zhang, Wei Liu, Dexuan Cui, Arnd Bergmann

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 <olaf@aepfle.de>
---
v2: move vtl up, as suggested by Dexuan Cui

 include/asm-generic/mshyperv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/asm-generic/mshyperv.h b/include/asm-generic/mshyperv.h
index cecd2b7bd033..430f0ae0dde2 100644
--- a/include/asm-generic/mshyperv.h
+++ b/include/asm-generic/mshyperv.h
@@ -36,6 +36,7 @@ struct ms_hyperv_info {
 	u32 nested_features;
 	u32 max_vp_index;
 	u32 max_lp_index;
+	u8 vtl;
 	union {
 		u32 isolation_config_a;
 		struct {
@@ -54,7 +55,6 @@ struct ms_hyperv_info {
 		};
 	};
 	u64 shared_gpa_boundary;
-	u8 vtl;
 };
 extern struct ms_hyperv_info ms_hyperv;
 extern bool hv_nested;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] hyperv: reduce size of ms_hyperv_info
  2023-09-22 19:28 [PATCH v2] hyperv: reduce size of ms_hyperv_info Olaf Hering
@ 2023-09-22 20:28 ` Wei Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Wei Liu @ 2023-09-22 20:28 UTC (permalink / raw)
  To: Olaf Hering
  Cc: linux-hyperv, linux-arch, linux-kernel, K. Y. Srinivasan,
	Haiyang Zhang, Wei Liu, Dexuan Cui, Arnd Bergmann

On Fri, Sep 22, 2023 at 09:28:40PM +0200, Olaf Hering wrote:
> 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 <olaf@aepfle.de>

Applied to hyperv-fixes. Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-22 20:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-22 19:28 [PATCH v2] hyperv: reduce size of ms_hyperv_info Olaf Hering
2023-09-22 20:28 ` Wei Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.