[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH RFCv4 0/3] EEH Support for VFIO PCI Device
From: |
Gavin Shan |
Subject: |
[Qemu-ppc] [PATCH RFCv4 0/3] EEH Support for VFIO PCI Device |
Date: |
Tue, 20 May 2014 18:40:38 +1000 |
The series of patches intend to support EEH for VFIO PCI devices on sPAPR
platform. It requires corresponding host kernel support. Also, it was built
on top of Alexey's VFIO-for-sPAPR git repository.
QEMU: git://github.com/aik/qemu.git (branch: vfio)
Kernel:
http://linuxppc.10917.n7.nabble.com/PATCH-RFCv4-0-4-EEH-Support-for-VFIO-PCI-device-td82463.html
Here are some highlights and I don't have experience with QEMU. Any comments
should be appreciated.
* EEH RTAS calls captured by sPAPR platform firstly, and then routed to
VFIO for handling if VFIO can. Otheriwse, it will be routed to host
kernel for handling via dedicated VFIO container IOCTL command.
* PHB BUID is the identifier to one specific PHB, which is required information
for EEH address mapping. In order to retrieve that from VFIO, the PCI
bus struct has been extended to have additional field "sysdata" for that.
* The guest can't do error injection until holding valid token. Each guest
is allowed to have one token at once. The RTAS calls managing token is
simply emulated in QEMU. However, the error injection has to be routed
to host kernel by dedicated syscall.
Changelog
=========
v3 -> v4:
* Remove the error injection from the patchset. Mike or I will work
on it later.
* The IOCTL command is handled by VFIO PCI device instead of container.
* "sysdata" in root bus to pass PHB BUID isn't needed.
* Update the IOCTL argunemt according to kernel's changes.
Gavin Shan (3):
headers: Sync with Linux header
VFIO: Introduce EEH handler
sPAPR: Support EEH RTAS services
hw/misc/vfio.c | 109 ++++++++++++++++++++++++
hw/ppc/spapr_pci.c | 205 +++++++++++++++++++++++++++++++++++++++++++++
include/hw/misc/vfio.h | 2 +
linux-headers/linux/vfio.h | 43 ++++++++++
4 files changed, 359 insertions(+)
--
1.8.3.2
- [Qemu-ppc] [PATCH RFCv4 0/3] EEH Support for VFIO PCI Device,
Gavin Shan <=