Re: [PATCH v1 1/3] x86/tdx: Check for TDX partitioning during early TDX init

2023-12-06 Thread Jeremi Piotrowski
On 05/12/2023 11:54, Kirill A. Shutemov wrote: > On Mon, Dec 04, 2023 at 08:07:38PM +0100, Jeremi Piotrowski wrote: >> On 04/12/2023 10:17, Reshetova, Elena wrote: Check for additional CPUID bits to identify TDX guests running with Trust Domain (TD) partitioning enabled. TD partitioning i

Re: [PATCH v1 1/3] x86/tdx: Check for TDX partitioning during early TDX init

2023-12-06 Thread Jeremi Piotrowski
On 05/12/2023 14:26, Huang, Kai wrote: >> > > Hm. Okay. > > Can we take a step back? What is bigger picture here? What enlightenment > do you expect from the guest when everything is in-place? > All the functional enlightenment are already in place in the kernel an

Re: [PATCH v1 1/3] x86/tdx: Check for TDX partitioning during early TDX init

2023-12-06 Thread Kirill A. Shutemov
On Wed, Dec 06, 2023 at 06:49:11PM +0100, Jeremi Piotrowski wrote: > On 05/12/2023 11:54, Kirill A. Shutemov wrote: > > On Mon, Dec 04, 2023 at 08:07:38PM +0100, Jeremi Piotrowski wrote: > >> On 04/12/2023 10:17, Reshetova, Elena wrote: > Check for additional CPUID bits to identify TDX guests

[PATCH net-next v5 0/3] ethtool: Add ethtool_puts()

2023-12-06 Thread justinstitt
Hi, This series aims to implement ethtool_puts() and send out a wave 1 of conversions from ethtool_sprintf(). There's also a checkpatch patch included to check for the cases listed below. This was sparked from recent discussion here [1] The conversions are used in cases where ethtool_sprintf() w

[PATCH net-next v5 1/3] ethtool: Implement ethtool_puts()

2023-12-06 Thread justinstitt
Use strscpy() to implement ethtool_puts(). Functionally the same as ethtool_sprintf() when it's used with two arguments or with just "%s" format specifier. Signed-off-by: Justin Stitt --- include/linux/ethtool.h | 13 + net/ethtool/ioctl.c | 7 +++ 2 files changed, 20 inser

[PATCH net-next v5 2/3] checkpatch: add ethtool_sprintf rules

2023-12-06 Thread justinstitt
Add some warnings for using ethtool_sprintf() where a simple ethtool_puts() would suffice. The two cases are: 1) Use ethtool_sprintf() with just two arguments: | ethtool_sprintf(&data, driver[i].name); or 2) Use ethtool_sprintf() with a standalone "%s" fmt string: | ethtool_sprintf(&d

[PATCH net-next v5 3/3] net: Convert some ethtool_sprintf() to ethtool_puts()

2023-12-06 Thread justinstitt
This patch converts some basic cases of ethtool_sprintf() to ethtool_puts(). The conversions are used in cases where ethtool_sprintf() was being used with just two arguments: | ethtool_sprintf(&data, buffer[i].name); or when it's used with format string: "%s" | ethtool_sprintf(&data, "

Re: [Intel-wired-lan] [PATCH net-next v5 1/3] ethtool: Implement ethtool_puts()

2023-12-06 Thread Przemek Kitszel
On 12/7/23 00:16, justinst...@google.com wrote: Use strscpy() to implement ethtool_puts(). Functionally the same as ethtool_sprintf() when it's used with two arguments or with just "%s" format specifier. Signed-off-by: Justin Stitt --- include/linux/ethtool.h | 13 + net/ethtool

RE: [PATCH net-next v5 3/3] net: Convert some ethtool_sprintf() to ethtool_puts()

2023-12-06 Thread Wei Fang
> -Original Message- > From: justinst...@google.com > Sent: 2023年12月7日 7:16 > To: David S. Miller ; Eric Dumazet > ; Jakub Kicinski ; Paolo Abeni > ; Shay Agroskin ; Arthur > Kiyanovski ; David Arinzon > ; Noam Dagan ; Saeed > Bishara ; Rasesh Mody ; > Sudarsana Kalluru ; gr-linux-nic-...@

Re: [Intel-wired-lan] [PATCH net-next v5 2/3] checkpatch: add ethtool_sprintf rules

2023-12-06 Thread Przemek Kitszel
On 12/7/23 00:16, justinst...@google.com wrote: Add some warnings for using ethtool_sprintf() where a simple ethtool_puts() would suffice. The two cases are: 1) Use ethtool_sprintf() with just two arguments: | ethtool_sprintf(&data, driver[i].name); or 2) Use ethtool_sprintf() with a stan