Re: [PATCH v1] hyperv: reduce size of ms_hyperv_info

2023-09-22 Thread Wei Liu
On Tue, Sep 19, 2023 at 06:18:53AM +, Dexuan Cui wrote: > > From: Olaf Hering > > Sent: Monday, September 18, 2023 9:02 AM > > [...] > > Use the hole prior shared_gpa_boundary to store the result of get_vtl. > > This reduces the size by 8 bytes. > > [...] > > --- a/include/asm-generic/mshyper

Re: [PATCH v1] hyperv: reduce size of ms_hyperv_info

2023-09-19 Thread Olaf Hering
Tue, 19 Sep 2023 06:18:53 + Dexuan Cui : > How about moving the 'vtl' field to an even earlier place: I have not tried it, but I think this would just move the hole up. The end result will likely be the same, pahole -E vmlinux will show it. Olaf pgpDmiOmWAMyl.pgp Description: Digitale Sig

RE: [PATCH v1] hyperv: reduce size of ms_hyperv_info

2023-09-18 Thread Dexuan Cui
> From: Olaf Hering > Sent: Monday, September 18, 2023 9:02 AM > [...] > Use the hole prior shared_gpa_boundary to store the result of get_vtl. > This reduces the size by 8 bytes. > [...] > --- a/include/asm-generic/mshyperv.h > +++ b/include/asm-generic/mshyperv.h > @@ -53,8 +53,8 @@ struct ms_h

[PATCH v1] hyperv: reduce size of ms_hyperv_info

2023-09-18 Thread Olaf Hering
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 --- 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