public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Krowiak <akrowiak@linux.vnet.ibm.com>
To: linux-s390@vger.kernel.org, qemu-s390x@nongnu.org, kvm@vger.kernel.org
Cc: freude@de.ibm.com, schwidefsky@de.ibm.com,
	heiko.carstens@de.ibm.com, borntraeger@de.ibm.com,
	cohuck@redhat.com, kwankhede@nvidia.com,
	bjsdjshi@linux.vnet.ibm.com, pbonzini@redhat.com,
	alex.williamson@redhat.com, pmorel@linux.vnet.ibm.com,
	alifm@linux.vnet.ibm.com, mjrosato@linux.vnet.ibm.com,
	jjherne@linux.vnet.ibm.com, thuth@redhat.com,
	pasic@linux.vnet.ibm.com,
	Tony Krowiak <akrowiak@linux.vnet.ibm.com>
Subject: [RFC 0/5] guest dedicated crypto adapters: QEMU usage
Date: Thu, 26 Oct 2017 11:54:49 -0400	[thread overview]
Message-ID: <1509033294-4945-1-git-send-email-akrowiak@linux.vnet.ibm.com> (raw)

I was asked to post this QEMU patch set to the mailing list to illustrate
how the KVM/kernel counterpart will be used. The KVM/kernel patches can be
viewed at:

https://lkml.org/lkml/2017/10/13/706

The IBM Adjunct Processor (AP) Cryptographic Facility is comprised 
of three AP instructions and from 1 to 256 PCIe cryptographic adapter cards.
These AP adapters provide cryptographic functions to all CPUs assigned to a
linux system running in an IBM Z system LPAR.

This patch series introduces a new QEMU command line option and QEMU object
model to obtain direct guest access to one or more AP adapter cards assigned
to the LPAR in which the host linux system is running. It is predicated 
on the KVM/kernel model for providing direct guest access to AP adapters. A 
complete description for dedicating crypto adapters to a linux guest can be 
found in the docs/ap-matrix.txt file provided with this patch set.

Signed-off-by: Tony Krowiak <akrowiak@linux.vnet.ibm.com>

Tony Krowiak (5):
  s390x/ap-matrix: Adjunct Processor (AP) matrix object model
  s390x/vfio: ap-matrix: Introduce VFIO AP Matrix device
  s390x/ap-matrix: Configure AP matrix for KVM guest
  s390x/cpumodel: enable AP facilities for guest
  s390x/docs: documentation for ap-matrix

 default-configs/s390x-softmmu.mak |    1 +
 docs/ap_matrix.txt                |  529 +++++++++++++++++++++++++++++++++++++
 hw/s390x/Makefile.objs            |    2 +
 hw/s390x/ap-matrix-device.c       |   33 +++
 hw/s390x/ap-matrix-device.h       |   53 ++++
 hw/s390x/s390-ap-matrix.c         |   52 ++++
 hw/vfio/Makefile.objs             |    1 +
 hw/vfio/ap-matrix.c               |  224 ++++++++++++++++
 include/hw/s390x/s390-ap-matrix.h |   39 +++
 include/hw/vfio/vfio-common.h     |    1 +
 linux-headers/linux/vfio.h        |   29 ++-
 target/s390x/cpu_features.c       |    2 +
 target/s390x/cpu_features_def.h   |    2 +
 target/s390x/gen-features.c       |    4 +
 14 files changed, 969 insertions(+), 3 deletions(-)
 create mode 100644 docs/ap_matrix.txt
 create mode 100644 hw/s390x/ap-matrix-device.c
 create mode 100644 hw/s390x/ap-matrix-device.h
 create mode 100644 hw/s390x/s390-ap-matrix.c
 create mode 100644 hw/vfio/ap-matrix.c
 create mode 100644 include/hw/s390x/s390-ap-matrix.h

             reply	other threads:[~2017-10-26 15:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-26 15:54 Tony Krowiak [this message]
2017-10-26 15:54 ` [RFC 1/5] s390x/ap-matrix: Adjunct Processor (AP) matrix object model Tony Krowiak
2017-11-14 14:58   ` Cornelia Huck
2017-10-26 15:54 ` [RFC 2/5] s390x/vfio: ap-matrix: Introduce VFIO AP Matrix device Tony Krowiak
2017-11-14 15:03   ` Cornelia Huck
2017-10-26 15:54 ` [RFC 3/5] s390x/ap-matrix: Configure AP matrix for KVM guest Tony Krowiak
2017-11-14 15:07   ` Cornelia Huck
2017-10-26 15:54 ` [RFC 4/5] s390x/cpumodel: enable AP facilities for guest Tony Krowiak
2017-11-14 15:11   ` Cornelia Huck
2017-11-14 16:23     ` David Hildenbrand
2017-10-26 15:54 ` [RFC 5/5] s390x/docs: documentation for ap-matrix Tony Krowiak
2017-11-14 15:21   ` Cornelia Huck
2017-11-14 15:23 ` [RFC 0/5] guest dedicated crypto adapters: QEMU usage Cornelia Huck

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=1509033294-4945-1-git-send-email-akrowiak@linux.vnet.ibm.com \
    --to=akrowiak@linux.vnet.ibm.com \
    --cc=alex.williamson@redhat.com \
    --cc=alifm@linux.vnet.ibm.com \
    --cc=bjsdjshi@linux.vnet.ibm.com \
    --cc=borntraeger@de.ibm.com \
    --cc=cohuck@redhat.com \
    --cc=freude@de.ibm.com \
    --cc=heiko.carstens@de.ibm.com \
    --cc=jjherne@linux.vnet.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=kwankhede@nvidia.com \
    --cc=linux-s390@vger.kernel.org \
    --cc=mjrosato@linux.vnet.ibm.com \
    --cc=pasic@linux.vnet.ibm.com \
    --cc=pbonzini@redhat.com \
    --cc=pmorel@linux.vnet.ibm.com \
    --cc=qemu-s390x@nongnu.org \
    --cc=schwidefsky@de.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox