[PATCH] Drivers: HV: Fix the check for return value from kmsg get dump buffer

2018-07-26 Thread Sunil Muthuswamy
;) Signed-off-by: Sunil Muthuswamy --- drivers/hv/vmbus_drv.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 05e37283d7c3..a7f33c1f42c5 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -1047,1

RE: [PATCH] Drivers: HV: panic kmsg dump, move MSR access to arch specific

2018-07-26 Thread Sunil Muthuswamy
I just sent three individual patches to address the below. Thanks, Sunil > -Original Message- > From: KY Srinivasan > Sent: Thursday, July 26, 2018 11:53 AM > To: Sunil Muthuswamy ; Michael Kelley (EOSG) > > Cc: Stephen Hemminger ; Haiyang Zhang > ; de...@l

[PATCH] Drivers: HV: Fix the issue with freeing up hv_ctl_table_hdr

2018-07-26 Thread Sunil Muthuswamy
The check to free the Hyper-V control table header was reversed. This fixes it. Fixes: 81b18bce48af ("Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic") Signed-off-by: Sunil Muthuswamy --- drivers/hv/vmbus_drv.c | 14 -- 1 file changed, 4 inserti

[PATCH] Drivers: HV: move the crash control MSR access out of common code

2018-07-26 Thread Sunil Muthuswamy
Fixes: 81b18bce48af ("Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic") Signed-off-by: Sunil Muthuswamy --- arch/x86/include/asm/mshyperv.h | 3 +++ drivers/hv/vmbus_drv.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x

[PATCH] Drivers: HV: panic kmsg dump, move MSR access to arch specific

2018-07-23 Thread Sunil Muthuswamy
Moves the MSR access from arch independent code to arch dependent code. Also includes minor bug fixes. Fixes: 81b18bce48af ("Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic") Signed-off-by: Sunil Muthuswamy --- Have added a "Fixes&quo

[PATCH] Drivers: HV: panic kmsg dump, move MSR access to arch specific

2018-07-20 Thread Sunil Muthuswamy
Moves the MSR access from arch independent code to arch dependent code. Also includes minor bug fixes. Signed-off-by: Sunil Muthuswamy --- arch/x86/include/asm/mshyperv.h | 3 +++ drivers/hv/vmbus_drv.c | 26 +- 2 files changed, 12 insertions(+), 17 deletions

RE: [PATCH 1/1] Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

2018-07-11 Thread Sunil Muthuswamy
n.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.com; jasow...@redhat.com; Stephen Hemminger > ; vkuzn...@redhat.com > Cc: Sunil Muthuswamy > Subject: RE: [PATCH 1/1] Drivers: HV: Send one page worth of kmsg dump > over Hy

RE: [PATCH v3] Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

2018-06-11 Thread Sunil Muthuswamy
8 7:57 PM > To: Sunil Muthuswamy > Cc: kbuild-...@01.org; Haiyang Zhang ; > de...@linuxdriverproject.org; Sunil Muthuswamy > ; Stephen Hemminger > > Subject: Re: [PATCH v3] Drivers: HV: Send one page worth of kmsg dump > over Hyper-V during panic > > Hi Sunil, > >

[PATCH v6] Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

2018-06-11 Thread Sunil Muthuswamy
-off-by: Sunil Muthuswamy --- Changes since v1: - Added a sysctl config option to allow the user to control if panic message should be reported to Hyper-V. Changes since v2: - Addressed comments from Greg KH. - Moved the sysctl config option from 'kernel.hyperv' to 'kernel.' since the likelihood

RE: [PATCH v5] Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

2018-06-11 Thread Sunil Muthuswamy
> -Original Message- > From: KY Srinivasan > Sent: Monday, June 11, 2018 11:39 AM > To: Sunil Muthuswamy ; Haiyang Zhang > > Cc: de...@linuxdriverproject.org; Stephen Hemminger > > Subject: RE: [PATCH v5] Drivers: HV: Send one page worth of kmsg dump >

RE: [PATCH v5] Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

2018-06-11 Thread Sunil Muthuswamy
> -Original Message- > From: KY Srinivasan > Sent: Sunday, June 10, 2018 2:54 PM > To: Sunil Muthuswamy ; Haiyang Zhang > > Cc: de...@linuxdriverproject.org; Stephen Hemminger > > Subject: RE: [PATCH v5] Drivers: HV: Send one page worth of kmsg dump >

[PATCH v5] Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

2018-06-08 Thread Sunil Muthuswamy
-off-by: Sunil Muthuswamy --- Changes since v1: - Added a sysctl config option to allow the user to control if panic message should be reported to Hyper-V. Changes since v2: - Addressed comments from Greg KH. - Moved the sysctl config option from 'kernel.hyperv' to 'kernel.' since the likelihood

RE: [PATCH v4] Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

2018-06-07 Thread Sunil Muthuswamy
Thanks. > -Original Message- > From: Dexuan Cui > Sent: Wednesday, June 6, 2018 5:31 PM > To: Sunil Muthuswamy > Cc: de...@linuxdriverproject.org; KY Srinivasan ; > Stephen Hemminger > Subject: RE: [PATCH v4] Drivers: HV: Send one page worth of kmsg dump > o

[PATCH v4] Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

2018-06-06 Thread Sunil Muthuswamy
-off-by: Sunil Muthuswamy Drivers: HV:Send one page worth of kmsg dump over Hyper-V during panic Signed-off-by: Sunil Muthuswamy --- Changes since v1: - Added a sysctl config option to allow the user to control if panic message should be reported to Hyper-V. Changes since v2: - Addressed

RE: [PATCH v1] Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

2018-05-31 Thread Sunil Muthuswamy
for the additional bit as well. Hold on to the patch for now, I will have a V4 with the changes. - Sunil > -Original Message- > From: KY Srinivasan > Sent: Wednesday, May 30, 2018 12:43 PM > To: Sunil Muthuswamy ; Greg KH > ; Haiyang Zhang ; > Stephen Hemminger > Cc: de...@l

RE: [PATCH v1] Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

2018-05-30 Thread Sunil Muthuswamy
unil > -Original Message- > From: Greg KH > Sent: Tuesday, May 29, 2018 9:43 PM > To: Sunil Muthuswamy > Cc: de...@linuxdriverproject.org; Haiyang Zhang > ; Stephen Hemminger > > Subject: Re: [PATCH v1] Drivers: HV: Send one page worth of kmsg dump > over Hyper-V d

RE: [PATCH v1] Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

2018-05-29 Thread Sunil Muthuswamy
The V3 patch should address the concerns/comments below. Happy to address any additional comments, if there are any. - Sunil > -Original Message- > From: Sunil Muthuswamy > Sent: Monday, May 21, 2018 9:48 AM > To: 'Greg KH' > Cc: de...@linuxdriverproject.org; Haiyang Zh

[PATCH v3] Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

2018-05-21 Thread Sunil Muthuswamy
tephen Hemminger <sthem...@microsoft.com> Signed-off-by: Sunil Muthuswamy <sunil...@microsoft.com> --- Changes since v1: - Added a sysctl config option to allow the user to control if panic message should be reported to Hyper-V. Changes since v2: - Addressed comments from Greg KH.

RE: [PATCH v1] Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

2018-05-21 Thread Sunil Muthuswamy
The v2 patch that I sent was prior to responding to this thread. I am sending out v3 which addresses the comments here. > -Original Message- > From: Greg KH <gre...@linuxfoundation.org> > Sent: Saturday, May 19, 2018 12:01 AM > To: Sunil Muthuswamy <sunil...@mi

RE: [PATCH v1] Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

2018-05-18 Thread Sunil Muthuswamy
Thanks, Greg. My first patch to the Linux kernel. Still making mistakes, but, learning through the documented process. > -Original Message- > From: Greg KH <gre...@linuxfoundation.org> > Sent: Wednesday, May 9, 2018 11:51 PM > To: Sunil Muthuswamy <sunil...@microso

[PATCH v2] Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

2018-05-18 Thread Sunil Muthuswamy
...@microsoft.com Signed-off-by: Sunil Muthuswamy <sunil...@microsoft.com> --- arch/x86/hyperv/hv_init.c | 35 ++ arch/x86/include/asm/hyperv-tlfs.h | 5 +- arch/x86/include/asm/mshyperv.h| 1 + drivers/hv/vmbus_drv.c | 128 + 4

[PATCH v1] Drivers: HV: Send one page worth of kmsg dump over Hyper-V during panic

2018-05-09 Thread Sunil Muthuswamy
actionable. To gather more actionable data, such as stack trace, the proposal is to write one page worth of kmsg data on an allocated page and the Hypervisor notified of the page address through the MSR. CC: k...@microsoft.com CC: sthem...@microsoft.com Signed-off-by: Sunil Muthuswamy