Re: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-03-07 Thread Nuno Das Neves
On 3/6/2025 10:09 AM, Michael Kelley wrote: > From: Michael Kelley Sent: Thursday, March 6, 2025 > 9:58 AM > >> >> From: Nuno Das Neves Sent: Wednesday, >> February >> 26, 2025 3:08 PM >>> >>> Introduce hv_result_to_string() for this purpose. This allows >>> hypercall failures to be debugged m

Re: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-03-07 Thread Nuno Das Neves
On 3/6/2025 9:57 AM, Michael Kelley wrote: > From: Nuno Das Neves Sent: Wednesday, > February 26, 2025 3:08 PM >> >> Introduce hv_result_to_string() for this purpose. This allows >> hypercall failures to be debugged more easily with dmesg. >> >> Signed-off-by: Nuno Das Neves >> --- >> drivers/h

RE: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-03-06 Thread Michael Kelley
From: Nuno Das Neves Sent: Thursday, March 6, 2025 10:41 AM > > On 3/6/2025 10:09 AM, Michael Kelley wrote: > > From: Michael Kelley Sent: Thursday, March 6, 2025 > > 9:58 AM > > [snip] > >> I've read through the other comments on this patch. I definitely vote > >> for outputting both the he

RE: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-03-06 Thread Michael Kelley
From: Michael Kelley Sent: Thursday, March 6, 2025 9:58 AM > > From: Nuno Das Neves Sent: Wednesday, > February > 26, 2025 3:08 PM > > > > Introduce hv_result_to_string() for this purpose. This allows > > hypercall failures to be debugged more easily with dmesg. > > > > Signed-off-by: Nuno Da

RE: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-03-06 Thread Michael Kelley
From: Nuno Das Neves Sent: Wednesday, February 26, 2025 3:08 PM > > Introduce hv_result_to_string() for this purpose. This allows > hypercall failures to be debugged more easily with dmesg. > > Signed-off-by: Nuno Das Neves > --- > drivers/hv/hv_common.c | 65 +

Re: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-03-01 Thread Easwar Hariharan
On 2/28/2025 9:20 AM, Roman Kisel wrote: > > > On 2/27/2025 3:25 PM, Easwar Hariharan wrote: >> On 2/27/2025 3:08 PM, Roman Kisel wrote: > > [...] > >>> Would be great to learn the details to understand how this function is >>> going to improve the situation: >>> >>> 1. How come the hex error c

Re: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-02-28 Thread Roman Kisel
On 2/28/2025 12:22 PM, Easwar Hariharan wrote: On 2/28/2025 9:20 AM, Roman Kisel wrote: [...] So I'd think that the hex error codes from the hypervisor give the user exactly as much as the error symbolic names do to get the system to the desired state: nothing. I continue to disagree,

Re: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-02-28 Thread Roman Kisel
On 2/27/2025 3:25 PM, Easwar Hariharan wrote: On 2/27/2025 3:08 PM, Roman Kisel wrote: [...] Would be great to learn the details to understand how this function is going to improve the situation: 1. How come the hex error code was useless, what is not matching    anything in the Linux he

Re: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-02-28 Thread Roman Kisel
On 2/27/2025 4:15 PM, Nuno Das Neves wrote: On 2/27/2025 9:02 AM, Roman Kisel wrote: [...] I guess you're implying it's not worth adding such a function for only a few places in the code? That is a good point, and a bit of an oversight on my part while editing this series. Originally all t

Re: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-02-27 Thread Easwar Hariharan
On 2/27/2025 9:02 AM, Roman Kisel wrote: > > > On 2/26/2025 3:07 PM, Nuno Das Neves wrote: > > [...] > >> + >> +const char *hv_result_to_string(u64 hv_status) >> +{ >> +    switch (hv_result(hv_status)) { > > [...] > >> +    return "HV_STATUS_VTL_ALREADY_ENABLED"; >> +    default: >> +   

Re: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-02-27 Thread Nuno Das Neves
On 2/27/2025 9:02 AM, Roman Kisel wrote: > > > On 2/26/2025 3:07 PM, Nuno Das Neves wrote: > > [...] > >> + >> +const char *hv_result_to_string(u64 hv_status) >> +{ >> +    switch (hv_result(hv_status)) { > > [...] > >> +    return "HV_STATUS_VTL_ALREADY_ENABLED"; >> +    default: >> +   

Re: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-02-27 Thread Easwar Hariharan
On 2/27/2025 3:08 PM, Roman Kisel wrote: > > > On 2/27/2025 2:54 PM, Easwar Hariharan wrote: > [...] > >> >> Sorry, I have to disagree with this, a recent commit of mine[1] closed a WSL >> issue that was open for over 2 years for, partly, the utter uselessness of >> the hex return code of the hy

Re: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-02-27 Thread Nuno Das Neves
On 2/26/2025 8:22 PM, Easwar Hariharan wrote: > On 2/26/2025 3:07 PM, Nuno Das Neves wrote: >> Introduce hv_result_to_string() for this purpose. This allows >> hypercall failures to be debugged more easily with dmesg. >> > > Let the commit message stand on its own, i.e. state that hv_result_to_str

Re: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-02-27 Thread Roman Kisel
On 2/27/2025 2:54 PM, Easwar Hariharan wrote: On 2/27/2025 9:02 AM, Roman Kisel wrote: [...] Sorry, I have to disagree with this, a recent commit of mine[1] closed a WSL issue that was open for over 2 years for, partly, the utter uselessness of the hex return code of the hypercall. What

Re: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-02-27 Thread Roman Kisel
On 2/27/2025 2:54 PM, Easwar Hariharan wrote: [...] Sorry, I have to disagree with this, a recent commit of mine[1] closed a WSL issue that was open for over 2 years for, partly, the utter uselessness of the hex return code of the hypercall. Thanks for your efforts, and sorry to hear you h

Re: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-02-27 Thread Roman Kisel
On 2/26/2025 3:07 PM, Nuno Das Neves wrote: [...] + +const char *hv_result_to_string(u64 hv_status) +{ + switch (hv_result(hv_status)) { [...] + return "HV_STATUS_VTL_ALREADY_ENABLED"; + default: + return "Unknown"; + }; + return "Unkno

Re: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-02-26 Thread Easwar Hariharan
On 2/26/2025 3:07 PM, Nuno Das Neves wrote: > Introduce hv_result_to_string() for this purpose. This allows > hypercall failures to be debugged more easily with dmesg. > Let the commit message stand on its own, i.e. state that hv_result_to_string() is introduced to convert hyper-v status codes to

Re: [PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-02-26 Thread Stanislav Kinsburskii
On Wed, Feb 26, 2025 at 03:07:55PM -0800, Nuno Das Neves wrote: > Introduce hv_result_to_string() for this purpose. This allows > hypercall failures to be debugged more easily with dmesg. > > Signed-off-by: Nuno Das Neves > --- > drivers/hv/hv_common.c | 65 ++

[PATCH v5 01/10] hyperv: Convert Hyper-V status codes to strings

2025-02-26 Thread Nuno Das Neves
Introduce hv_result_to_string() for this purpose. This allows hypercall failures to be debugged more easily with dmesg. Signed-off-by: Nuno Das Neves --- drivers/hv/hv_common.c | 65 ++ drivers/hv/hv_proc.c | 13 --- include/asm-generic/mshyp