lkml.org 
[lkml]   [2020]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHv2] perf kvm: add kvm-stat for arm64
On (20/09/15 19:57), Sergey Senozhatsky wrote:
> On (20/09/15 18:36), Leo Yan wrote:
> > > +#define HVC_STUB_ERR 0xbadca11
> > > +
> > > +/* Per asm/kvm_asm.h */
> > > +#define ARM_EXCEPTION_IRQ 0
> > > +#define ARM_EXCEPTION_EL1_SERROR 1
> > > +#define ARM_EXCEPTION_TRAP 2
> > > +#define ARM_EXCEPTION_IL 3
> >
> > Nitpick: from completeness, we also can give out KVM exiting reason
> > for 'ARM_EXCEPTION_IL'.
>
> OK, let me take a look.

I think ARM_EXCEPTION_IL are reported as HYP_GONE. According to
arch/arm64/include/asm/kvm_asm.h

---
#define ARM_EXCEPTION_IRQ 0
#define ARM_EXCEPTION_EL1_SERROR 1
#define ARM_EXCEPTION_TRAP 2
#define ARM_EXCEPTION_IL 3

#define kvm_arm_exception_type \
{ARM_EXCEPTION_IRQ, "IRQ" }, \
{ARM_EXCEPTION_EL1_SERROR, "SERROR" }, \
{ARM_EXCEPTION_TRAP, "TRAP" }, \
{ARM_EXCEPTION_HYP_GONE, "HYP_GONE" }
---

So it should be reported already.

-ss

\
 
 \ /
  Last update: 2020-09-16 02:57    [W:0.065 / U:0.636 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site