[PATCH] Add a header in ifcfg and nm keyfiles describing the owner of the files

2024-04-18 Thread Ani Sinha
A comment describing the source of writing the contents of the ifcfg and network manager keyfiles (hyperv kvp daemon) is useful. It is valuable both for debugging as well as for preventing users from modifying them. CC: shradhagu...@linux.microsoft.com CC: eahar...@linux.microsoft.com CC: wei@

[PATCH v2] Add a header in ifcfg and nm keyfiles describing the owner of the files

2024-04-18 Thread Ani Sinha
A comment describing the source of writing the contents of the ifcfg and network manager keyfiles (hyperv kvp daemon) is useful. It is valuable both for debugging as well as for preventing users from modifying them. CC: shradhagu...@linux.microsoft.com CC: eahar...@linux.microsoft.com CC: wei@

[PATCH v2] firmware: dmi: Stop decoding on broken entry

2024-04-18 Thread Jean Delvare
If a DMI table entry is shorter than 4 bytes, it is invalid. Due to how DMI table parsing works, it is impossible to safely recover from such an error, so we have to stop decoding the table. Signed-off-by: Jean Delvare Reported-by: Michael Schierl Link: https://lore.kernel.org/linux-kernel/Zh2K

RE: [PATCH v2] firmware: dmi: Stop decoding on broken entry

2024-04-18 Thread Michael Kelley
From: Jean Delvare Sent: Thursday, April 18, 2024 5:28 AM > > If a DMI table entry is shorter than 4 bytes, it is invalid. Due to > how DMI table parsing works, it is impossible to safely recover from > such an error, so we have to stop decoding the table. > > Signed-off-by: Jean Delvare > Repo

Re: [PATCH v3] Drivers: hv: Cosmetic changes for hv.c and balloon.c

2024-04-18 Thread Saurabh Singh Sengar
On Thu, Apr 11, 2024 at 10:28:03PM -0700, Aditya Nagesh wrote: > Fix issues reported by checkpatch.pl script in hv.c and > balloon.c > - Remove unnecessary parentheses > - Remove extra newlines > - Remove extra spaces > - Add spaces between comparison operators > - Remove comparison with NULL

Re: [PATCH v2] Add a header in ifcfg and nm keyfiles describing the owner of the files

2024-04-18 Thread Easwar Hariharan
On 4/18/2024 5:05 AM, Ani Sinha wrote: > A comment describing the source of writing the contents of the ifcfg and > network manager keyfiles (hyperv kvp daemon) is useful. It is valuable both > for debugging as well as for preventing users from modifying them. > > CC: shradhagu...@linux.microsoft.

Re: [PATCH net-next] net: mana: Add new device attributes for mana

2024-04-18 Thread Jason Gunthorpe
On Wed, Apr 17, 2024 at 11:01:08PM -0700, Shradha Gupta wrote: > > > > > +static ssize_t mana_attr_show(struct device *dev, > > > > > + struct device_attribute *attr, char *buf) > > > > > +{ > > > > > + struct pci_dev *pdev = to_pci_dev(dev); > > > > > + struct gd

Re: [PATCH net-next] net: mana: Add new device attributes for mana

2024-04-18 Thread Andrew Lunn
> >From an RDMA perspective this is all available from other APIs already > at least and I wouldn't want to see new sysfs unless there is a netdev > justification. It is unlikely there is a netdev justification. Configuration happens via netlink, not sysfs. Andrew

RE: [PATCH v2] Add a header in ifcfg and nm keyfiles describing the owner of the files

2024-04-18 Thread Dexuan Cui
> From: Easwar Hariharan > Sent: Thursday, April 18, 2024 9:16 AM > > On 4/18/2024 5:05 AM, Ani Sinha wrote: > > A comment describing the source of writing the contents of the ifcfg and > > network manager keyfiles (hyperv kvp daemon) is useful. It is valuable s/hyperv/Hyper-V/ > > +#define CFG

RE: [PATCH net-next] net: mana: Add new device attributes for mana

2024-04-18 Thread Haiyang Zhang
> -Original Message- > From: Shradha Gupta > Sent: Monday, April 15, 2024 5:50 AM > To: linux-ker...@vger.kernel.org; linux-hyperv@vger.kernel.org; linux- > r...@vger.kernel.org; net...@vger.kernel.org > Cc: Shradha Gupta ; Eric Dumazet > ; Jakub Kicinski ; Paolo Abeni > ; Ajay Sharma ;

[PATCH] PCI: Add a mutex to protect the global list pci_domain_busn_res_list

2024-04-18 Thread Dexuan Cui
There has been an effort to make the pci-hyperv driver support async-probing to reduce the boot time. With async-probing, multiple kernel threads can be running hv_pci_probe() -> create_root_hv_pci_bus() -> pci_scan_root_bus_bridge() -> pci_bus_insert_busn_res() at the same time to update the globa

[PATCH] hv/vmbus_drv: rename hv_acpi_init() to vmbus_init()

2024-04-18 Thread Erni Sri Satya Vennela
As the driver now supports both ACPI and DeviceTree, rename hv_acpi_init() to vmbus_init() and change comments accordingly. Signed-off-by: Erni Sri Satya Vennela --- drivers/hv/vmbus_drv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/