RE: [PATCH] x86/mtrr: Rename mtrr_overwrite_state() to guest_force_mtrr_state()

2024-10-18 Thread Michael Kelley
From: Kirill A. Shutemov Sent: Wednesday, October 16, 2024 3:51 AM > > Rename the helper to better reflect its function. > > Signed-off-by: Kirill A. Shutemov > Suggested-by: Dave Hansen > --- > arch/x86/hyperv/ivm.c | 2 +- > arch/x86/include/asm/mtrr.h| 10 +-

RE: [RFC PATCH] drivers: hv: Convert open-coded timeouts to msecs_to_jiffies()

2024-10-18 Thread Michael Kelley
From: Easwar Hariharan Sent: Friday, October 18, 2024 3:50 PM > > On 10/18/2024 12:54 AM, Praveen Kumar wrote: > > On 17-10-2024 04:07, Easwar Hariharan wrote: > >> We have several places where timeouts are open-coded as N (seconds) * HZ, > >> but best practice is to use msecs_to_jiffies(). Conv

Re: [PATCH 1/2] Drivers: hv: vmbus: Wait for offers during boot

2024-10-18 Thread Easwar Hariharan
On 10/18/2024 4:58 AM, Naman Jain wrote: > Channels offers are requested during vmbus initialization and resume > from hibernation. Add support to wait for all channel offers to be > delivered and processed before returning from vmbus_request_offers. > This is to support user mode (VTL0) in OpenHCL

Re: [RFC PATCH] drivers: hv: Convert open-coded timeouts to msecs_to_jiffies()

2024-10-18 Thread Easwar Hariharan
On 10/18/2024 12:54 AM, Praveen Kumar wrote: > On 17-10-2024 04:07, Easwar Hariharan wrote: >> We have several places where timeouts are open-coded as N (seconds) * HZ, >> but best practice is to use msecs_to_jiffies(). Convert the timeouts to >> make them HZ invariant. >>> Signed-off-by: Easwar Ha

[PATCH net,v3] hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event

2024-10-18 Thread Haiyang Zhang
The existing code moves VF to the same namespace as the synthetic NIC during netvsc_register_vf(). But, if the synthetic device is moved to a new namespace after the VF registration, the VF won't be moved together. To make the behavior more consistent, add a namespace check for synthetic NIC's NET

[PATCH 2/2] Drivers: hv: vmbus: Log on missing offers

2024-10-18 Thread Naman Jain
From: John Starks When resuming from hibernation, log any channels that were present before hibernation but now are gone. Signed-off-by: John Starks Co-developed-by: Naman Jain Signed-off-by: Naman Jain --- drivers/hv/vmbus_drv.c | 16 1 file changed, 16 insertions(+) diff

Re: [RFC PATCH] drivers: hv: Convert open-coded timeouts to msecs_to_jiffies()

2024-10-18 Thread Naman Jain
On 10/17/2024 4:07 AM, Easwar Hariharan wrote: We have several places where timeouts are open-coded as N (seconds) * HZ, but best practice is to use msecs_to_jiffies(). Convert the timeouts to make them HZ invariant. Signed-off-by: Easwar Hariharan --- drivers/hv/hv_balloon.c | 9 +---

[PATCH 1/2] Drivers: hv: vmbus: Wait for offers during boot

2024-10-18 Thread Naman Jain
Channels offers are requested during vmbus initialization and resume from hibernation. Add support to wait for all channel offers to be delivered and processed before returning from vmbus_request_offers. This is to support user mode (VTL0) in OpenHCL (A Linux based paravisor for Confidential VMs) t

[PATCH 0/2] Drivers: hv: vmbus: Wait for offers and log missing offers

2024-10-18 Thread Naman Jain
After VM requests for channel offers during boot or resume from hibernation, host offers the available channels and then sends a separate message when all offers are delivered. Wait for this message to make this offers request and receipt process synchronous. This is to support user mode (VTL0) in

Re: [RFC PATCH] drivers: hv: Convert open-coded timeouts to msecs_to_jiffies()

2024-10-18 Thread Praveen Kumar
On 17-10-2024 04:07, Easwar Hariharan wrote: > We have several places where timeouts are open-coded as N (seconds) * HZ, > but best practice is to use msecs_to_jiffies(). Convert the timeouts to > make them HZ invariant. > > Signed-off-by: Easwar Hariharan > --- > drivers/hv/hv_balloon.c | 9 +++