All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: kvm-ppc@vger.kernel.org
Cc: kvm@vger.kernel.org, anton@samba.org
Subject: [PATCH 00/13] PPC: KVM: Enable PR KVM on ppc64le
Date: Thu, 24 Apr 2014 13:12:27 +0000	[thread overview]
Message-ID: <1398345160-4830-1-git-send-email-agraf@suse.de> (raw)

During the enablement of ppc64le KVM has been kept unfixed. This patch set
is the initial attempt to make all of KVM work on ppc64le hosts. It starts
the effort by bringing PR KVM over.

With this patch set I am successfully able to run book3s_32 (BE) and
book3s_64 (BE, LE) guests on a host ppc64le system.

Please bear in mind that this patch set does *not* implement POWER8 support,
so if you're running on a POWER8 host you definitely want to pass in -cpu POWER7
and cross your fingers that the guest doesn't trigger a facility unavailable
interrupt which we don't trap on yet.


Alex

Alexander Graf (13):
  KVM: PPC: Book3S PR: Implement LPCR ONE_REG
  KVM: PPC: Book3S: PR: Fix C/R bit setting
  KVM: PPC: Book3S_32: PR: Access HTAB in big endian
  KVM: PPC: Book3S_64 PR: Access HTAB in big endian
  KVM: PPC: Book3S_64 PR: Access shadow slb in big endian
  KVM: PPC: Book3S PR: Give guest control over MSR_LE
  KVM: PPC: Book3S PR: Default to big endian guest
  KVM: PPC: Book3S PR: PAPR: Access HTAB in big endian
  KVM: PPC: Book3S PR: PAPR: Access RTAS in big endian
  KVM: PPC: PR: Fill pvinfo hcall instructions in big endian
  KVM: PPC: Make shared struct aka magic page guest endian
  KVM: PPC: Book3S PR: Do dcbz32 patching with big endian instructions
  KVM: PPC: Book3S: Move little endian conflict to HV KVM

 arch/powerpc/include/asm/kvm_book3s.h    |   4 +-
 arch/powerpc/include/asm/kvm_host.h      |   3 +
 arch/powerpc/include/asm/kvm_ppc.h       |  80 ++++++++++++++++++++++-
 arch/powerpc/kernel/asm-offsets.c        |   2 +
 arch/powerpc/kvm/Kconfig                 |   2 +-
 arch/powerpc/kvm/book3s.c                |  72 ++++++++++----------
 arch/powerpc/kvm/book3s_32_mmu.c         |  41 +++++++-----
 arch/powerpc/kvm/book3s_32_mmu_host.c    |   4 +-
 arch/powerpc/kvm/book3s_64_mmu.c         |  42 +++++++-----
 arch/powerpc/kvm/book3s_64_mmu_host.c    |   4 +-
 arch/powerpc/kvm/book3s_64_slb.S         |  33 +++++-----
 arch/powerpc/kvm/book3s_emulate.c        |  28 ++++----
 arch/powerpc/kvm/book3s_hv.c             |  11 ++++
 arch/powerpc/kvm/book3s_interrupts.S     |  23 ++++++-
 arch/powerpc/kvm/book3s_paired_singles.c |  16 +++--
 arch/powerpc/kvm/book3s_pr.c             | 109 +++++++++++++++++++------------
 arch/powerpc/kvm/book3s_pr_papr.c        |  16 +++--
 arch/powerpc/kvm/book3s_rtas.c           |  29 ++++++++
 arch/powerpc/kvm/emulate.c               |  24 +++----
 arch/powerpc/kvm/powerpc.c               |  50 +++++++++++---
 arch/powerpc/kvm/trace_pr.h              |   2 +-
 21 files changed, 410 insertions(+), 185 deletions(-)

-- 
1.8.1.4


WARNING: multiple messages have this Message-ID (diff)
From: Alexander Graf <agraf@suse.de>
To: kvm-ppc@vger.kernel.org
Cc: kvm@vger.kernel.org, anton@samba.org
Subject: [PATCH 00/13] PPC: KVM: Enable PR KVM on ppc64le
Date: Thu, 24 Apr 2014 15:12:27 +0200	[thread overview]
Message-ID: <1398345160-4830-1-git-send-email-agraf@suse.de> (raw)

During the enablement of ppc64le KVM has been kept unfixed. This patch set
is the initial attempt to make all of KVM work on ppc64le hosts. It starts
the effort by bringing PR KVM over.

With this patch set I am successfully able to run book3s_32 (BE) and
book3s_64 (BE, LE) guests on a host ppc64le system.

Please bear in mind that this patch set does *not* implement POWER8 support,
so if you're running on a POWER8 host you definitely want to pass in -cpu POWER7
and cross your fingers that the guest doesn't trigger a facility unavailable
interrupt which we don't trap on yet.


Alex

Alexander Graf (13):
  KVM: PPC: Book3S PR: Implement LPCR ONE_REG
  KVM: PPC: Book3S: PR: Fix C/R bit setting
  KVM: PPC: Book3S_32: PR: Access HTAB in big endian
  KVM: PPC: Book3S_64 PR: Access HTAB in big endian
  KVM: PPC: Book3S_64 PR: Access shadow slb in big endian
  KVM: PPC: Book3S PR: Give guest control over MSR_LE
  KVM: PPC: Book3S PR: Default to big endian guest
  KVM: PPC: Book3S PR: PAPR: Access HTAB in big endian
  KVM: PPC: Book3S PR: PAPR: Access RTAS in big endian
  KVM: PPC: PR: Fill pvinfo hcall instructions in big endian
  KVM: PPC: Make shared struct aka magic page guest endian
  KVM: PPC: Book3S PR: Do dcbz32 patching with big endian instructions
  KVM: PPC: Book3S: Move little endian conflict to HV KVM

 arch/powerpc/include/asm/kvm_book3s.h    |   4 +-
 arch/powerpc/include/asm/kvm_host.h      |   3 +
 arch/powerpc/include/asm/kvm_ppc.h       |  80 ++++++++++++++++++++++-
 arch/powerpc/kernel/asm-offsets.c        |   2 +
 arch/powerpc/kvm/Kconfig                 |   2 +-
 arch/powerpc/kvm/book3s.c                |  72 ++++++++++----------
 arch/powerpc/kvm/book3s_32_mmu.c         |  41 +++++++-----
 arch/powerpc/kvm/book3s_32_mmu_host.c    |   4 +-
 arch/powerpc/kvm/book3s_64_mmu.c         |  42 +++++++-----
 arch/powerpc/kvm/book3s_64_mmu_host.c    |   4 +-
 arch/powerpc/kvm/book3s_64_slb.S         |  33 +++++-----
 arch/powerpc/kvm/book3s_emulate.c        |  28 ++++----
 arch/powerpc/kvm/book3s_hv.c             |  11 ++++
 arch/powerpc/kvm/book3s_interrupts.S     |  23 ++++++-
 arch/powerpc/kvm/book3s_paired_singles.c |  16 +++--
 arch/powerpc/kvm/book3s_pr.c             | 109 +++++++++++++++++++------------
 arch/powerpc/kvm/book3s_pr_papr.c        |  16 +++--
 arch/powerpc/kvm/book3s_rtas.c           |  29 ++++++++
 arch/powerpc/kvm/emulate.c               |  24 +++----
 arch/powerpc/kvm/powerpc.c               |  50 +++++++++++---
 arch/powerpc/kvm/trace_pr.h              |   2 +-
 21 files changed, 410 insertions(+), 185 deletions(-)

-- 
1.8.1.4

             reply	other threads:[~2014-04-24 13:12 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-24 13:12 Alexander Graf [this message]
2014-04-24 13:12 ` [PATCH 00/13] PPC: KVM: Enable PR KVM on ppc64le Alexander Graf
2014-04-24 13:12 ` [PATCH 01/13] KVM: PPC: Book3S PR: Implement LPCR ONE_REG Alexander Graf
2014-04-24 13:12   ` Alexander Graf
2014-04-24 13:12 ` [PATCH 02/13] KVM: PPC: Book3S: PR: Fix C/R bit setting Alexander Graf
2014-04-24 13:12   ` Alexander Graf
2014-05-10  7:11   ` Paul Mackerras
2014-05-10  7:11     ` Paul Mackerras
2014-04-24 13:12 ` [PATCH 03/13] KVM: PPC: Book3S_32: PR: Access HTAB in big endian Alexander Graf
2014-04-24 13:12   ` Alexander Graf
2014-04-24 13:12 ` [PATCH 04/13] KVM: PPC: Book3S_64 " Alexander Graf
2014-04-24 13:12   ` Alexander Graf
2014-04-24 13:12 ` [PATCH 05/13] KVM: PPC: Book3S_64 PR: Access shadow slb " Alexander Graf
2014-04-24 13:12   ` Alexander Graf
2014-04-24 13:12 ` [PATCH 06/13] KVM: PPC: Book3S PR: Give guest control over MSR_LE Alexander Graf
2014-04-24 13:12   ` Alexander Graf
2014-04-24 13:12 ` [PATCH 07/13] KVM: PPC: Book3S PR: Default to big endian guest Alexander Graf
2014-04-24 13:12   ` Alexander Graf
2014-04-24 13:12 ` [PATCH 08/13] KVM: PPC: Book3S PR: PAPR: Access HTAB in big endian Alexander Graf
2014-04-24 13:12   ` Alexander Graf
2014-04-24 13:12 ` [PATCH 09/13] KVM: PPC: Book3S PR: PAPR: Access RTAS " Alexander Graf
2014-04-24 13:12   ` Alexander Graf
2014-04-24 13:12 ` [PATCH 10/13] KVM: PPC: PR: Fill pvinfo hcall instructions " Alexander Graf
2014-04-24 13:12   ` Alexander Graf
2014-04-24 13:12 ` [PATCH 11/13] KVM: PPC: Make shared struct aka magic page guest endian Alexander Graf
2014-04-24 13:12   ` Alexander Graf
2014-04-24 13:12 ` [PATCH 12/13] KVM: PPC: Book3S PR: Do dcbz32 patching with big endian instructions Alexander Graf
2014-04-24 13:12   ` Alexander Graf
2014-04-24 13:12 ` [PATCH 13/13] KVM: PPC: Book3S: Move little endian conflict to HV KVM Alexander Graf
2014-04-24 13:12   ` Alexander Graf

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=1398345160-4830-1-git-send-email-agraf@suse.de \
    --to=agraf@suse.de \
    --cc=anton@samba.org \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=kvm@vger.kernel.org \
    /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.