Re: [PATCH v2] powerpc/pseries: Fix maximum memory value

2019-07-04 Thread Aravinda Prasad
On Thursday 04 July 2019 04:43 PM, Michael Ellerman wrote: > "Naveen N. Rao" writes: >> Nathan Lynch wrote: >>> Aravinda Prasad writes: >>>> Calculating the maximum memory based on the number of lmbs >>>> and lmb size does not account f

Re: [PATCH v2] powerpc/pseries: Fix maximum memory value

2019-06-30 Thread Aravinda Prasad
On Friday 28 June 2019 10:57 PM, Nathan Lynch wrote: > Aravinda Prasad writes: >> Calculating the maximum memory based on the number of lmbs >> and lmb size does not account for the RMA region. Hence >> use memory_hotplug_max(), which already accounts for the >&g

[PATCH v2] powerpc/pseries: Fix maximum memory value

2019-06-27 Thread Aravinda Prasad
: 772b039fd9a7: ("powerpc/pseries: Export maximum memory value") Signed-off-by: Aravinda Prasad --- arch/powerpc/platforms/pseries/lparcfg.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/pseries/lparcfg.c b/arch/powerpc/platfor

Re: [PATCH] powerpc/pseries: Fix maximum memory value

2019-06-27 Thread Aravinda Prasad
On Thursday 27 June 2019 04:06 AM, Nathan Lynch wrote: > Aravinda Prasad writes: >> Calculating the maximum memory based on the number of lmbs >> and lmb size does not account for the RMA region. Hence >> use drmem_lmb_memory_max(), which already accounts for the >&g

[PATCH] powerpc/pseries: Fix maximum memory value

2019-06-26 Thread Aravinda Prasad
t;) Signed-off-by: Aravinda Prasad --- arch/powerpc/platforms/pseries/lparcfg.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pseries/lparcfg.c b/arch/powerpc/platforms/pseries/lparcfg.c index e33e8bc..f425842 100644 --- a/arch/powerpc/platfor

Re: [PATCH 2/2] powerpc/64s: Better printing of machine check info for guest MCEs

2019-02-20 Thread Aravinda Prasad
On Wednesday 20 February 2019 06:36 AM, Paul Mackerras wrote: > This adds an "in_guest" parameter to machine_check_print_event_info() > so that we can avoid trying to translate guest NIP values into > symbolic form using the host kernel's symbol table. Reviewed-by: A

Re: [PATCH 1/2] KVM: PPC: Book3S HV: Simplify machine check handling

2019-02-20 Thread Aravinda Prasad
machine_check_print_event_info(&vcpu->arch.mce_evt, false); > break; > case BOOK3S_INTERRUPT_PROGRAM: > { > diff --git a/arch/powerpc/kvm/book3s_hv_ras.c > b/arch/powerpc/kvm/book3s_hv_ras.c > index 0787f12..9aa10b1 100644 &g

Re: [PATCH] powerpc/pseries: Export maximum memory value

2018-10-22 Thread Aravinda Prasad
On Wednesday 10 October 2018 09:50 PM, Nathan Fontenot wrote: > On 10/10/2018 05:22 AM, Aravinda Prasad wrote: >> This patch exports the maximum possible amount of memory >> configured on the system via /proc/powerpc/lparcfg. >> >> Signed-off-by: Aravinda Pras

[PATCH v3] powerpc/pseries: Export raw per-CPU VPA data via debugfs

2018-10-16 Thread Aravinda Prasad
comments. Signed-off-by: Aravinda Prasad --- arch/powerpc/platforms/pseries/lpar.c | 54 + 1 file changed, 54 insertions(+) diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c index d3992ce..1c757a4 100644 --- a/arch

Re: [PATCH] powerpc/pseries: Export maximum memory value

2018-10-16 Thread Aravinda Prasad
On Wednesday 10 October 2018 10:19 PM, Naveen N. Rao wrote: > Nathan Fontenot wrote: >> On 10/10/2018 05:22 AM, Aravinda Prasad wrote: >>> This patch exports the maximum possible amount of memory >>> configured on the system via /proc/powerpc/lparcfg. >>>

[PATCH] powerpc/pseries: Export maximum memory value

2018-10-10 Thread Aravinda Prasad
This patch exports the maximum possible amount of memory configured on the system via /proc/powerpc/lparcfg. Signed-off-by: Aravinda Prasad --- arch/powerpc/platforms/pseries/lparcfg.c | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/powerpc/platforms/pseries/lparcfg.c

[PATCH v2] powerpc/pseries: Export raw per-CPU VPA data via debugfs

2018-09-25 Thread Aravinda Prasad
This patch exports the raw per-CPU VPA data via debugfs. A per-CPU file is created which exports the VPA data of that CPU to help debug some of the VPA related issues or to analyze the per-CPU VPA related statistics. Signed-off-by: Aravinda Prasad --- arch/powerpc/platforms/pseries/lpar.c

Re: [PATCH] powerpc/pseries: Export raw per-CPU VPA data via debugfs

2018-09-24 Thread Aravinda Prasad
Hi Michael, On Monday 24 September 2018 05:12 PM, Michael Ellerman wrote: > Hi Aravinda, > > Aravinda Prasad writes: > >> This patch exports the raw per-CPU VPA data via debugfs. >> A per-CPU file is created which exports the VPA data of >> that CPU to help debug

[PATCH] powerpc/pseries: Export raw per-CPU VPA data via debugfs

2018-09-20 Thread Aravinda Prasad
This patch exports the raw per-CPU VPA data via debugfs. A per-CPU file is created which exports the VPA data of that CPU to help debug some of the VPA related issues or to analyze the per-CPU VPA related statistics. Signed-off-by: Aravinda Prasad --- arch/powerpc/platforms/pseries/lpar.c

[PATCH] powerpc/pseries: Export VPA related data

2018-09-04 Thread Aravinda Prasad
This patch exports VPA related data such as stolen and donated CPU cycles through /proc/powerpc/lparcfg file. Signed-off-by: Aravinda Prasad --- arch/powerpc/include/asm/lppaca.h| 10 ++- arch/powerpc/platforms/pseries/lparcfg.c | 45 ++ 2 files

[PATCH v5 2/2] KVM: PPC: Exit guest upon MCE when FWNMI capability is enabled

2017-01-13 Thread Aravinda Prasad
kernel to perform actions in virtual mode before passing on the exception to the guest. This approach does not require complex tweaks to machine_check_fwnmi and friends. Signed-off-by: Aravinda Prasad Reviewed-by: David Gibson --- arch/powerpc/kvm/book3s_hv.c| 27

[PATCH v5 1/2] KVM: PPC: Add new capability to control MCE behaviour

2017-01-13 Thread Aravinda Prasad
chine check error if the exception was delivered to guest's 0x200 interrupt vector instead of NMI exit in case of old QEMU. Signed-off-by: Aravinda Prasad Reviewed-by: David Gibson --- Documentation/virtual/kvm/api.txt | 11 +++ arch/powerpc/include/asm/kvm_host.h |1 +

[PATCH v5 0/2] KVM: PPC: Add FWNMI support for KVM guests on POWER

2017-01-13 Thread Aravinda Prasad
redirect MCE. - Fix access width bug Change Log v2: - Added KVM capability --- Aravinda Prasad (2): KVM: PPC: Add new capability to control MCE behaviour KVM: PPC: Exit guest upon MCE when FWNMI capability is enabled Documentation/virtual/kvm/api.txt | 11 +++ ar

Re: [PATCH v4 1/2] KVM: PPC: Add new capability to control MCE behaviour

2017-01-12 Thread Aravinda Prasad
On Thursday 12 January 2017 03:26 PM, Paul Mackerras wrote: > On Mon, Jan 09, 2017 at 05:10:35PM +0530, Aravinda Prasad wrote: >> This patch introduces a new KVM capability to control >> how KVM behaves on machine check exception (MCE). >> Without this capability, KVM re

Re: [PATCH v4 2/2] KVM: PPC: Exit guest upon MCE when FWNMI capability is enabled

2017-01-12 Thread Aravinda Prasad
On Thursday 12 January 2017 02:35 PM, Balbir Singh wrote: > On Mon, Jan 09, 2017 at 05:10:45PM +0530, Aravinda Prasad wrote: [ . . .] >> The reasons for this approach is (i) it is not possible >> to distinguish whether the exception occurred in the >> guest or the host fr

[PATCH v4 2/2] KVM: PPC: Exit guest upon MCE when FWNMI capability is enabled

2017-01-09 Thread Aravinda Prasad
kernel to perform actions in virtual mode before passing on the exception to the guest. This approach does not require complex tweaks to machine_check_fwnmi and friends. Signed-off-by: Aravinda Prasad --- arch/powerpc/kvm/book3s_hv.c| 27 +- arch/powerpc/kvm

[PATCH v4 1/2] KVM: PPC: Add new capability to control MCE behaviour

2017-01-09 Thread Aravinda Prasad
before passing on the exception to the guest. Change Log v3: - Split the patch into 2. First patch introduces the new capability while the second one enhances KVM to redirect MCE. - Fix access width bug Change Log v2: - Added KVM capability Signed-off-by: Aravinda Prasad

Re: [PATCH v3 2/2] KVM: PPC: Exit guest upon MCE when FWNMI capability is enabled

2016-06-21 Thread Aravinda Prasad
On Monday 20 June 2016 10:48 AM, Paul Mackerras wrote: > Hi Aravinda, > > On Wed, Jan 13, 2016 at 12:38:09PM +0530, Aravinda Prasad wrote: >> Enhance KVM to cause a guest exit with KVM_EXIT_NMI >> exit reasons upon a machine check exception (MCE) in >> the

Re: [PATCH v3 2/2] KVM: PPC: Exit guest upon MCE when FWNMI capability is enabled

2016-01-25 Thread Aravinda Prasad
On Sunday 24 January 2016 02:54 AM, Paul Mackerras wrote: > On Sat, Jan 23, 2016 at 06:23:35PM +0530, Aravinda Prasad wrote: >> >> >> On Saturday 23 January 2016 03:58 PM, Paul Mackerras wrote: >>> On Wed, Jan 13, 2016 at 12:38:09PM +0530, Aravinda Prasad wrote: >

Re: [PATCH v3 2/2] KVM: PPC: Exit guest upon MCE when FWNMI capability is enabled

2016-01-23 Thread Aravinda Prasad
On Saturday 23 January 2016 03:58 PM, Paul Mackerras wrote: > On Wed, Jan 13, 2016 at 12:38:09PM +0530, Aravinda Prasad wrote: >> Enhance KVM to cause a guest exit with KVM_EXIT_NMI >> exit reasons upon a machine check exception (MCE) in >> the guest address space if

Re: [PATCH v3 1/2] KVM: PPC: New capability to control MCE behaviour

2016-01-23 Thread Aravinda Prasad
On Saturday 23 January 2016 03:50 PM, Paul Mackerras wrote: > On Wed, Jan 13, 2016 at 12:37:59PM +0530, Aravinda Prasad wrote: >> This patch introduces a new KVM capability to control >> how KVM behaves on machine check exception (MCE). >> Without this capability, KVM re

[PATCH v3 2/2] KVM: PPC: Exit guest upon MCE when FWNMI capability is enabled

2016-01-12 Thread Aravinda Prasad
discussions can be found at: https://lists.nongnu.org/archive/html/qemu-devel/2014-11/msg00813.html Signed-off-by: Aravinda Prasad --- arch/powerpc/kvm/book3s_hv.c| 12 ++-- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 48 +++ 2 files changed, 26

[PATCH v3 1/2] KVM: PPC: New capability to control MCE behaviour

2016-01-12 Thread Aravinda Prasad
lity while the second one enhances KVM to redirect MCE. - Fix access width bug - Rebased to v4.4-rc7 Change Log v2: - Added KVM capability Signed-off-by: Aravinda Prasad --- arch/powerpc/include/asm/kvm_host.h |1 + arch/powerpc/kernel/asm-offsets.c |1 + arch/powerpc/kvm/

Re: [PATCH v2] KVM: PPC: Exit guest upon fatal machine check exception

2015-12-16 Thread Aravinda Prasad
On Thursday 17 December 2015 08:02 AM, David Gibson wrote: > On Wed, Dec 16, 2015 at 11:26:12AM +0530, Aravinda Prasad wrote: >> This patch modifies KVM to cause a guest exit with >> KVM_EXIT_NMI instead of immediately delivering a 0x200 >> interrupt to guest upon machi

Re: [PATCH v2] KVM: PPC: Exit guest upon fatal machine check exception

2015-12-16 Thread Aravinda Prasad
On Wednesday 16 December 2015 03:10 PM, Thomas Huth wrote: > On 16/12/15 06:56, Aravinda Prasad wrote: >> This patch modifies KVM to cause a guest exit with >> KVM_EXIT_NMI instead of immediately delivering a 0x200 >> interrupt to guest upon machine check exception in >

[PATCH v2] KVM: PPC: Exit guest upon fatal machine check exception

2015-12-15 Thread Aravinda Prasad
e, it treats it as a fatal error. However, the guest could have handled the machine check error if the exception was delivered to guest's 0x200 interrupt vector instead of NMI exit in case of old QEMU. Change Log v2: - Added KVM capability Signed-off-by: Aravinda Prasad --- arch/power

Re: [PATCH] KVM: PPC: Exit guest upon fatal machine check exception

2015-11-13 Thread Aravinda Prasad
On Friday 13 November 2015 01:08 PM, Thomas Huth wrote: > On 13/11/15 07:26, Aravinda Prasad wrote: >> >> On Friday 13 November 2015 07:20 AM, David Gibson wrote: >>> On Thu, Nov 12, 2015 at 11:22:29PM +0530, Aravinda Prasad wrote: > [...] >>>> So thinkin

Re: [PATCH] KVM: PPC: Exit guest upon fatal machine check exception

2015-11-12 Thread Aravinda Prasad
On Friday 13 November 2015 07:20 AM, David Gibson wrote: > On Thu, Nov 12, 2015 at 11:22:29PM +0530, Aravinda Prasad wrote: [...] >> >> I overlooked it. I think I need to take into consideration whether guest >> issued "ibm, nmi-register". If the guest has issued

Re: [PATCH] KVM: PPC: Exit guest upon fatal machine check exception

2015-11-12 Thread Aravinda Prasad
On Friday 13 November 2015 03:07 AM, Daniel Axtens wrote: > Aravinda Prasad writes: > >>> Yeah, it would be good not to break this. >> >> I am not familiar with CAPI. Does this affect CAPI? > > When a CAPI card experiences an EEH event, any cache lines it hold

Re: [PATCH] KVM: PPC: Exit guest upon fatal machine check exception

2015-11-12 Thread Aravinda Prasad
On Thursday 12 November 2015 10:13 AM, David Gibson wrote: > On Thu, Nov 12, 2015 at 10:02:10AM +0530, Aravinda Prasad wrote: >> >> >> On Thursday 12 November 2015 09:08 AM, David Gibson wrote: >>> On Thu, Nov 12, 2015 at 01:24:19PM +1100, Daniel Axtens wrote

Re: [PATCH] KVM: PPC: Exit guest upon fatal machine check exception

2015-11-12 Thread Aravinda Prasad
On Thursday 12 November 2015 10:28 AM, Daniel Axtens wrote: > >> So, IIUC. Once the qemu pieces are in place as well it shouldn't >> change this behaviour: KVM will exit to qemu, qemu will log the error >> information (new), then reinject the MC to the guest which can still >> handle it as you

Re: [PATCH] KVM: PPC: Exit guest upon fatal machine check exception

2015-11-11 Thread Aravinda Prasad
On Thursday 12 November 2015 09:04 AM, David Gibson wrote: > On Wed, Nov 11, 2015 at 10:28:46PM +0530, Aravinda Prasad wrote: >> This patch modifies KVM to cause a guest exit with >> KVM_EXIT_NMI instead of immediately delivering a 0x200 >> interrupt to guest upon machi

Re: [PATCH] KVM: PPC: Exit guest upon fatal machine check exception

2015-11-11 Thread Aravinda Prasad
On Thursday 12 November 2015 09:08 AM, David Gibson wrote: > On Thu, Nov 12, 2015 at 01:24:19PM +1100, Daniel Axtens wrote: >> Aravinda Prasad writes: >> >>> This patch modifies KVM to cause a guest exit with >>> KVM_EXIT_NMI instead of immediately delivering a

[PATCH] KVM: PPC: Exit guest upon fatal machine check exception

2015-11-11 Thread Aravinda Prasad
discussions can be found at: https://lists.nongnu.org/archive/html/qemu-devel/2014-11/msg00813.html Signed-off-by: Aravinda Prasad --- arch/powerpc/kvm/book3s_hv.c| 12 +++- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 31 +++ 2 files changed, 14

[PATCH] Add private HCALL to inform updated RTAS base and entry

2014-08-25 Thread Aravinda Prasad
dated RTAS. Enhancements to qemu to handle the private HCALL, prepare error log and invoke machine check notification routine are in a separate patch. Signed-off-by: Nikunj A. Dadhania Signed-off-by: Aravinda Prasad --- board-qemu/slof/rtas.fs |6 +- lib/libhvcall/hvcall.code |6 ++ lib

[PATCH] Enable hardware breakpoint upon re-registering

2012-11-05 Thread Aravinda Prasad
is re-registering. Signed-off-by: Aravinda Prasad --- arch/powerpc/kernel/ptrace.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c index 79d8e56..09371d0 100644 --- a/arch/powerpc/kernel/ptrace.c +++ b/arch/po