All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Laurent Vivier <lvivier@redhat.com>,
	kvm@vger.kernel.org, kvm-ppc@vger.kernel.org
Cc: drjones@redhat.com, thuth@redhat.com, dgibson@redhat.com
Subject: Re: [kvm-unit-tests PATCH v2 0/5] Check emulation
Date: Tue, 22 Mar 2016 09:50:16 +0000	[thread overview]
Message-ID: <56F11558.8030609@redhat.com> (raw)
In-Reply-To: <1458560014-28862-1-git-send-email-lvivier@redhat.com>

On 21/03/2016 12:33, Laurent Vivier wrote:
> This series adds exception handler to be able to test instruction
> emulation. We test then invalid instruction, lswx instruction, and
> check that lswx instruction triggers an alignment interrupt in
> little-endian mode. During the development of this series, I've seen
> that processor is not running in 64bit mode, so I've added a test
> to check that is the case now.
> 
> This has been tested with KVM PR, HV, TCG in big and little-endian mode.
> 
> KVM-PR needs a fix to be able to manage correctly invalid instruction.
>     http://patchwork.ozlabs.org/patch/597855/
> 
> QEMU needs a fix to initialize correctly the 64bit mode:
>     http://patchwork.ozlabs.org/patch/598198/
> 
> With TCG, some lswx tests fail because it needs some fixes... I'm working
> on this.
> 
> v2: 
>     clearly restore r1 in call_handler
>     use "exception_stack[cpu + 1]" instead of "exception_stack + cpu + 1"
>     check program check type (invalid instruction)
>     add "-v" parameter to display invalid instruction address
>     use "mtxer" instead of "mtspr"
>     Fix comments in lswx asm()
>     add "memory" in clobber list
>     add Thomas' Rb on patches 3 and 5.
> 
> Laurent Vivier (5):
>   powerpc: add exception handler
>   powerpc: add test to check invalid instruction trap
>   powerpc: check 64bit mode
>   powerpc: check lswx
>   powerpc: Check lswx in little-endian mode.
> 
>  lib/powerpc/asm/hcall.h     |   1 +
>  lib/powerpc/asm/ppc_asm.h   |   5 +
>  lib/powerpc/asm/processor.h |  11 ++
>  lib/powerpc/processor.c     |  38 +++++++
>  lib/powerpc/setup.c         |  19 ++++
>  lib/ppc64/asm-offsets.c     |  42 ++++++++
>  lib/ppc64/asm/processor.h   |   1 +
>  lib/ppc64/asm/ptrace.h      |  24 +++++
>  powerpc/Makefile.common     |   6 +-
>  powerpc/cstart64.S          | 140 +++++++++++++++++++++++++
>  powerpc/emulator.c          | 241 ++++++++++++++++++++++++++++++++++++++++++++
>  powerpc/unittests.cfg       |   3 +
>  12 files changed, 530 insertions(+), 1 deletion(-)
>  create mode 100644 lib/powerpc/asm/processor.h
>  create mode 100644 lib/powerpc/processor.c
>  create mode 100644 lib/ppc64/asm/processor.h
>  create mode 100644 lib/ppc64/asm/ptrace.h
>  create mode 100644 powerpc/emulator.c
> 

Applied, thanks.

Paolo

WARNING: multiple messages have this Message-ID (diff)
From: Paolo Bonzini <pbonzini@redhat.com>
To: Laurent Vivier <lvivier@redhat.com>,
	kvm@vger.kernel.org, kvm-ppc@vger.kernel.org
Cc: drjones@redhat.com, thuth@redhat.com, dgibson@redhat.com
Subject: Re: [kvm-unit-tests PATCH v2 0/5] Check emulation
Date: Tue, 22 Mar 2016 10:50:16 +0100	[thread overview]
Message-ID: <56F11558.8030609@redhat.com> (raw)
In-Reply-To: <1458560014-28862-1-git-send-email-lvivier@redhat.com>

On 21/03/2016 12:33, Laurent Vivier wrote:
> This series adds exception handler to be able to test instruction
> emulation. We test then invalid instruction, lswx instruction, and
> check that lswx instruction triggers an alignment interrupt in
> little-endian mode. During the development of this series, I've seen
> that processor is not running in 64bit mode, so I've added a test
> to check that is the case now.
> 
> This has been tested with KVM PR, HV, TCG in big and little-endian mode.
> 
> KVM-PR needs a fix to be able to manage correctly invalid instruction.
>     http://patchwork.ozlabs.org/patch/597855/
> 
> QEMU needs a fix to initialize correctly the 64bit mode:
>     http://patchwork.ozlabs.org/patch/598198/
> 
> With TCG, some lswx tests fail because it needs some fixes... I'm working
> on this.
> 
> v2: 
>     clearly restore r1 in call_handler
>     use "exception_stack[cpu + 1]" instead of "exception_stack + cpu + 1"
>     check program check type (invalid instruction)
>     add "-v" parameter to display invalid instruction address
>     use "mtxer" instead of "mtspr"
>     Fix comments in lswx asm()
>     add "memory" in clobber list
>     add Thomas' Rb on patches 3 and 5.
> 
> Laurent Vivier (5):
>   powerpc: add exception handler
>   powerpc: add test to check invalid instruction trap
>   powerpc: check 64bit mode
>   powerpc: check lswx
>   powerpc: Check lswx in little-endian mode.
> 
>  lib/powerpc/asm/hcall.h     |   1 +
>  lib/powerpc/asm/ppc_asm.h   |   5 +
>  lib/powerpc/asm/processor.h |  11 ++
>  lib/powerpc/processor.c     |  38 +++++++
>  lib/powerpc/setup.c         |  19 ++++
>  lib/ppc64/asm-offsets.c     |  42 ++++++++
>  lib/ppc64/asm/processor.h   |   1 +
>  lib/ppc64/asm/ptrace.h      |  24 +++++
>  powerpc/Makefile.common     |   6 +-
>  powerpc/cstart64.S          | 140 +++++++++++++++++++++++++
>  powerpc/emulator.c          | 241 ++++++++++++++++++++++++++++++++++++++++++++
>  powerpc/unittests.cfg       |   3 +
>  12 files changed, 530 insertions(+), 1 deletion(-)
>  create mode 100644 lib/powerpc/asm/processor.h
>  create mode 100644 lib/powerpc/processor.c
>  create mode 100644 lib/ppc64/asm/processor.h
>  create mode 100644 lib/ppc64/asm/ptrace.h
>  create mode 100644 powerpc/emulator.c
> 

Applied, thanks.

Paolo

  parent reply	other threads:[~2016-03-22  9:50 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-21 11:33 [kvm-unit-tests PATCH v2 0/5] Check emulation Laurent Vivier
2016-03-21 11:33 ` Laurent Vivier
2016-03-21 11:33 ` [kvm-unit-tests PATCH v2 1/5] powerpc: add exception handler Laurent Vivier
2016-03-21 11:33   ` Laurent Vivier
2016-03-21 23:47   ` David Gibson
2016-03-21 23:47     ` David Gibson
2016-03-21 11:33 ` [kvm-unit-tests PATCH v2 2/5] powerpc: add test to check invalid instruction trap Laurent Vivier
2016-03-21 11:33   ` Laurent Vivier
2016-03-21 14:57   ` Thomas Huth
2016-03-21 14:57     ` Thomas Huth
2016-03-21 23:49   ` David Gibson
2016-03-21 23:49     ` David Gibson
2016-03-21 11:33 ` [kvm-unit-tests PATCH v2 3/5] powerpc: check 64bit mode Laurent Vivier
2016-03-21 11:33   ` Laurent Vivier
2016-03-21 23:49   ` David Gibson
2016-03-21 23:49     ` David Gibson
2016-03-21 11:33 ` [kvm-unit-tests PATCH v2 4/5] powerpc: check lswx Laurent Vivier
2016-03-21 11:33   ` Laurent Vivier
2016-03-21 12:07   ` Thomas Huth
2016-03-21 12:07     ` Thomas Huth
2016-03-21 14:25     ` Paolo Bonzini
2016-03-21 14:25       ` Paolo Bonzini
2016-03-21 15:59       ` Laurent Vivier
2016-03-21 15:59         ` Laurent Vivier
2016-03-21 23:53   ` David Gibson
2016-03-21 23:53     ` David Gibson
2016-03-21 11:33 ` [kvm-unit-tests PATCH v2 5/5] powerpc: Check lswx in little-endian mode Laurent Vivier
2016-03-21 11:33   ` Laurent Vivier
2016-03-21 23:56   ` David Gibson
2016-03-21 23:56     ` David Gibson
2016-03-22  8:12     ` Thomas Huth
2016-03-22  8:12       ` Thomas Huth
2016-03-22  8:25       ` Laurent Vivier
2016-03-22  8:25         ` Laurent Vivier
2016-03-23  0:14         ` David Gibson
2016-03-23  0:14           ` David Gibson
2016-03-22  9:50 ` Paolo Bonzini [this message]
2016-03-22  9:50   ` [kvm-unit-tests PATCH v2 0/5] Check emulation Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56F11558.8030609@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=dgibson@redhat.com \
    --cc=drjones@redhat.com \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=lvivier@redhat.com \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.