[PATCH] booke/powerpc: define wimge shift mask to fix compilation error

2014-05-13 Thread Bharat Bhushan
This fixes below compilation error on SOCs where CONFIG_PHYS_64BIT is not defined: arch/powerpc/kvm/e500_mmu_host.c: In function 'kvmppc_e500_shadow_map': | arch/powerpc/kvm/e500_mmu_host.c:631:20: error: 'PTE_WIMGE_SHIFT' undeclared (first use in this function) |wimg = (*ptep

[PATCH v2 01/16] x86: Convert conditional compilation of debug printfs to regular ifs

2014-05-13 Thread Marc Marí
Modify debug macros to have the same format through the codebase and use regular ifs instead of ifdef. As the debug printf is always put in code, some casting had to be added to avoid warnings treated as errors at compile time. Signed-off-by: Marc Marí marc.mari.barc...@gmail.com ---

[PATCH v2 02/16] s390: Convert conditional compilation of debug printfs to regular ifs

2014-05-13 Thread Marc Marí
Modify debug macros to have the same format through the codebase and use regular ifs instead of ifdef. As the debug printf is always put in code, some casting had to be added to avoid warnings treated as errors at compile time. Signed-off-by: Marc Marí marc.mari.barc...@gmail.com ---

RE: [PATCH] booke/powerpc: define wimge shift mask to fix compilation error

2014-05-13 Thread bharat.bhus...@freescale.com
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, May 13, 2014 11:18 AM To: Bhushan Bharat-R65777 Cc: kvm-...@vger.kernel.org; kvm@vger.kernel.org; Wood Scott-B07421; Bhushan Bharat-R65777 Subject: Re: [PATCH] booke/powerpc: define wimge shift mask to

Re: [PATCH v2 01/16] x86: Convert conditional compilation of debug printfs to regular ifs

2014-05-13 Thread Andreas Färber
Am 13.05.2014 09:02, schrieb Marc Marí: Modify debug macros to have the same format through the codebase and use regular ifs instead of ifdef. As the debug printf is always put in code, some casting had to be added to avoid warnings treated as errors at compile time. Signed-off-by:

[PATCH v1] vhost: avoid large order allocations

2014-05-13 Thread Michael Mueller
A test case which generates memory pressure while performing guest administration fails with vhost triggering page allocation failure and guest not starting up. After some analysis we discovered the allocation order of vhost to be rensponsible for this behaviour. Thus we suggest patch 1/1 which

[PATCH v1] vhost: avoid large order allocations

2014-05-13 Thread Michael Mueller
From: Dong Dong Chen ddon...@cn.ibm.com Under memory pressure we observe load issues with module vhost_net, as the vhost setup code will try to do an order 4 allocation for the device. The likeliness of this issue to occur can be reduced when the statically allocated variable iov in struct

Re: [PATCH v1] vhost: avoid large order allocations

2014-05-13 Thread Michael S. Tsirkin
On Tue, May 13, 2014 at 10:35:33AM +0200, Michael Mueller wrote: From: Dong Dong Chen ddon...@cn.ibm.com Under memory pressure we observe load issues with module vhost_net, as the vhost setup code will try to do an order 4 allocation for the device. The likeliness of this issue to occur can

Re: [PATCH v1] vhost: avoid large order allocations

2014-05-13 Thread Michael Mueller
On Tue, 13 May 2014 11:40:49 +0300 Michael S. Tsirkin m...@redhat.com wrote: Please dont' do this, extra indirection hurts performance. Instead, please change vhost_net_open and scsi to allocate the whole structure with vmalloc if kmalloc fails, along the lines of

Re: [Qemu-devel] [PATCH v2 02/16] s390: Convert conditional compilation of debug printfs to regular ifs

2014-05-13 Thread Cornelia Huck
On Tue, 13 May 2014 09:02:38 +0200 Marc Marí marc.mari.barc...@gmail.com wrote: I'd replace the subject with s390: convert debug printfs to QEMU_DPRINTF which is more descriptive and has the additional virtue of being shorter ;) Modify debug macros to have the same format through the codebase

[patch added to the 3.12 stable tree] MIPS: KVM: Pass reserved instruction exceptions to guest

2014-05-13 Thread Jiri Slaby
From: James Hogan james.ho...@imgtec.com This patch has been added to the 3.12 stable tree. If you have any objections, please let us know. === commit 15505679362270d02c449626385cb74af8905514 upstream. Previously a reserved instruction exception while in guest code would cause a

[PATCH v2] usb: fix up post load checks

2014-05-13 Thread Michael S. Tsirkin
Correct post load checks: 1. dev-setup_len == sizeof(dev-data_buf) seems fine, no need to fail migration 2. When state is DATA, passing index len will cause memcpy with negative length, resulting in heap overflow First of the issues was reported by dgilbert. Reported-by: Dr. David

[PATCH 3.12 131/182] MIPS: KVM: Pass reserved instruction exceptions to guest

2014-05-13 Thread Jiri Slaby
From: James Hogan james.ho...@imgtec.com 3.12-stable review patch. If anyone has any objections, please let me know. === commit 15505679362270d02c449626385cb74af8905514 upstream. Previously a reserved instruction exception while in guest code would cause a KVM internal error if

Re: [Qemu-devel] KVM call agenda for 2014-05-13

2014-05-13 Thread Andreas Färber
Am 12.05.2014 13:09, schrieb Peter Maydell: On 12 May 2014 11:30, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Mon, May 12, 2014 at 7:44 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 12 May 2014 10:10, Juan Quintela quint...@redhat.com wrote: Please, send any topic that

Re: [Qemu-devel] KVM call agenda for 2014-05-13

2014-05-13 Thread Peter Maydell
On 13 May 2014 00:27, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Ok so here's my plan: This generally all sounds good to me. A slight nit: QOMify address spaces. So they can be instantiated, reffed etc. completely aside from the hotplug discussion this greatly helps connecting bus

Re: [Qemu-devel] KVM call agenda for 2014-05-13

2014-05-13 Thread Peter Maydell
On 13 May 2014 12:07, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Tuesday, May 13, 2014, Peter Maydell peter.mayd...@linaro.org wrote: I'm not sure that the thing a bus master exposes to be connected up should be an AddressSpace -- I think it should be a MemoryRegion (more

[PATCH] emulator: correct format string

2014-05-13 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- x86/emulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x86/emulator.c b/x86/emulator.c index 388db99..20e3a45 100644 --- a/x86/emulator.c +++ b/x86/emulator.c @@ -891,14 +891,14 @@ static void test_sreg(volatile

KVM call minutes for 2014-05-13

2014-05-13 Thread Markus Armbruster
Today's agenda: - QOMifying both Memory regions and GPIOs and attaching them via QOM links (Peter Crosthwaite) Here are my notes; please correct mistakes. Peter C: Everything with a connection becomes a QOM object, references become links Peter Maydell: Okay PC: Don't include address spaces

Re: [PATCH v1] vhost: avoid large order allocations

2014-05-13 Thread Romain Francoise
Michael S. Tsirkin m...@redhat.com writes: Please dont' do this, extra indirection hurts performance. Instead, please change vhost_net_open and scsi to allocate the whole structure with vmalloc if kmalloc fails, along the lines of 74d332c13b2148ae934ea94dac1745ae92efe8e5 Back in January

[PATCH 4/5] KVM: vmx: force CPL=0 on real-protected mode transition

2014-05-13 Thread Paolo Bonzini
When writing 1 to CR0.PE, the CPL remains 0 even if bits 0-1 of CS disagree. Before calling vmx_set_cr0, VCPU_EXREG_CPL was cleared by vmx_vcpu_run, so set it again and make sure that enter_pmode does not change it. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- arch/x86/kvm/vmx.c | 26

[PATCH 5/5] KVM: x86: add capability to get/set CPL

2014-05-13 Thread Paolo Bonzini
Until now, KVM used to assume that CS.RPL could always be used as the CPL value when KVM_SET_SREGS is called. Unfortunately this is not the case. If userspace decides to call KVM_GET_SREGS/KVM_SET_SREGS exactly after CR0.PE has been set to 1, but before the long jump that reloads CS, the CPL will

[PATCH 2/5] KVM: x86: retrieve CPL in KVM_GET_SREGS, prepare to be able to set it

2014-05-13 Thread Paolo Bonzini
For the set path, this patch never uses the new code so there is no semantic change. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- arch/x86/include/asm/kvm_host.h | 2 +- arch/x86/include/uapi/asm/kvm.h | 5 - arch/x86/kvm/svm.c | 13 ++--- arch/x86/kvm/vmx.c

[PATCH 3/5] KVM: vmx: always compute the CPL on KVM_SET_SREGS

2014-05-13 Thread Paolo Bonzini
It is not obvious that the CPL will be guessed right the next time we run vmx_get_cpl. Make the code similar to SVM, and do the guess already during vmx_set_segment while we have the correct value of CR0.PE. For unrestricted guest mode, there is still a small window where CR0.PE and we could set

[PATCH 1/5] KVM: x86: support KVM_ENABLE_CAP on vm file descriptors

2014-05-13 Thread Paolo Bonzini
We will use it for CPL save/restore; making it an enabled capability lets us reuse a padding field in kvm_segment instead of inventing a new ioctl. This is also simpler because KVM_SET_SREGS already mucks with the CPL. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- arch/x86/kvm/x86.c | 24

[PATCH v1 RFC 0/6] KVM: s390: cpu model implementation

2014-05-13 Thread Michael Mueller
The proposed patch set implements S390 cpu model support in kvm. A cpu model is defined by a triple comprizing the cpu type , the cpu facility set and instruction blocking control. A consumer requests a feasible combination of that that triple before vcpu creation. All subsequently created vcpu's

[PATCH v1 RFC 2/6] KVM: s390: split SIE state guest prefix field

2014-05-13 Thread Michael Mueller
This patch splits the SIE state guest prefix at offset 4 into a prefix bit field. Additionally it provides the access functions: - kvm_s390_get_prefix() - kvm_s390_set_prefix() to access the prefix per vcpu. Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck

[PATCH v1 RFC 00/10] QEMU: s390: cpu model implementation

2014-05-13 Thread Michael Mueller
This patch set in combination with its kernel kvm patch set proposes an implementation of S390 cpu models. The origin of this item is to provide a means for management interfaces like libvirt to draw decisions if life guest migration to a target hypervisor is reasonable. A migration constraint is

[PATCH v1 RFC 5/6] KVM: s390: initial implementation of soft facilities

2014-05-13 Thread Michael Mueller
This patch implements the new state soft_fac_bits. This state defines which facilities are emulated in kernel and not in processor or millicode. Currently all bits are cleared. Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com --- arch/s390/kvm/Makefile | 2 +- arch/s390/kvm/kvm-s390.h |

[PATCH v1 RFC 05/10] s390: update linux-headers for kvm VM device attributes

2014-05-13 Thread Michael Mueller
Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com --- linux-headers/asm-s390/kvm.h | 26 ++ linux-headers/linux/kvm.h| 1 + 2 files changed, 27 insertions(+) diff --git a/linux-headers/asm-s390/kvm.h b/linux-headers/asm-s390/kvm.h index c003c6a..2fba454 100644

[PATCH v1 RFC 10/10] QEMU: s390: cpu model enablement

2014-05-13 Thread Michael Mueller
This patch enables all previous cpu model related patches and allows the feature to become active. It basically implements the host properties being fetched from the host and applied to the predefined S390 cpu classes during initialization of the HW platform. In a second step,

[PATCH v1 RFC 02/10] QEMU: s390: cpu model cpu class definition

2014-05-13 Thread Michael Mueller
This patch implements the static part of the s390 cpu class definitions. It defines single cpu models by means of virtual cpu ids which contain information on the cpu generation, the machine class, the GA number and the machine type. The cpu id is used to instantiate a cpu class per cpu id.

[PATCH v1 RFC 04/10] QEMU: s390: cpu model alias support

2014-05-13 Thread Michael Mueller
This patch implements the infrastructure to dynamically add cpu model aliases. Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com Reviewed-by: Cornelia Huck cornelia.h...@de.ibm.com --- target-s390x/cpu-models.c | 64 +++ target-s390x/cpu-models.h

[PATCH] KVM: x86: get/set CPL separately from CS

2014-05-13 Thread Paolo Bonzini
KVM used to assume that CS.RPL could always be used as the CPL value when KVM_SET_SREGS is called. QEMU could call KVM_GET_SREGS and the KVM_SET_SREGS exactly after CR0.PE has been set to 1, but before the long jump that reloads CS. Then, KVM would reset the CPL to bits 0-1 of CS (aka CS.RPL).

[PATCH v1 RFC 07/10] QEMU: s390: cpu model class initialization

2014-05-13 Thread Michael Mueller
This patch provides routines to dynamically update the previously defined S390 cpu classes in the current host context. The main function issuing this process is s390_setup_cpu_classes(). It takes the current host context as parameter to setup the classes accordingly. It basically performs the

[PATCH v1 RFC 01/10] QEMU: introduce function cpudesc_avail

2014-05-13 Thread Michael Mueller
This patch introduces the function cpudesc_avail() which returns by default true if not architecture specific implemented. Its intention is to indicate if the cpu model description is available for display by list_cpus(). This change allows cpu model descriptions to become dynamically created by

[PATCH v1 RFC 3/6] KVM: s390: use facilities and cpu_id per KVM

2014-05-13 Thread Michael Mueller
The patch introduces facilities and cpu_ids per virtual machine. Different virtual machines may want to expose different facilities and cpu ids to the guest, so let's make them per-vm instead of global. In addition this patch renames all ocurrences of *facilities to *fac_list smilar to the

[PATCH v1 RFC 08/10] QEMU: s390: cpu model QMP query-cpu-definitions

2014-05-13 Thread Michael Mueller
This patch implements the QMP command query-cpu-definitions in the S390 context. The command returns a descending sorted list of cpu model names derived from the currently (in the current host context) supported set of cpu classes. That means a consumer can successfully request each reported cpu

[PATCH v1 RFC 09/10] QEMU: s390: cpu model QMP query-cpu-model

2014-05-13 Thread Michael Mueller
This patch implements a new QMP request named query-cpu-model. It returns the cpu model of cpu 0. eg: request: '{execute : query-cpu-model } answer: '{return : {name: 2827-ga2}} Alias names are resolved to their respective machine type and GA names already during cpu instantiation. Thus, also a

[PATCH v1 RFC 03/10] QEMU: s390: cpu model facilities support

2014-05-13 Thread Michael Mueller
This patch defines S390 cpu facilities and their presence at the different cpu model levels. The implemented functions allow to calculate cpu model specific facility sets. These sets are associated to the defined cpu classes used to calculate the list of supported cpu models. Signed-off-by:

[PATCH v1 RFC 06/10] QEMU: s390: cpu model kvm VM attr interface routines

2014-05-13 Thread Michael Mueller
The patch implements routines to set and retrieve processor configuration data and to retrieve machine configuration data. The machine related data will be used to determine the list of supported cpu models of this host. Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com ---

[PATCH 0/5] KVM: x86: support setting the CPL independent of CS

2014-05-13 Thread Paolo Bonzini
Until now, KVM used to assume that CS.RPL could always be used as the CPL value when KVM_SET_SREGS is called. Unfortunately this is not the case. If userspace decides to call KVM_GET_SREGS/KVM_SET_SREGS exactly after CR0.PE has been set to 1, but before the long jump that reloads CS, the CPL will

[PATCH v1 RFC 6/6] KVM: s390: add cpu model support

2014-05-13 Thread Michael Mueller
This patch enables cpu model support in kvm/s390 via the vm attribute interface. During KVM initialization, the host properties cpuid, IBC value and the facility list are stored in the architecture specific cpu model structure. During vcpu setup, these properties are taken to initialize the

[PATCH v1 RFC 1/6] s390/sclp: add sclp_get_ibc function

2014-05-13 Thread Michael Mueller
The patch adds functionality to retrieve the IBC configuration by means of function sclp_get_ibc(). Signed-off-by: Michael Mueller m...@linux.vnet.ibm.com Acked-by: Cornelia Huck cornelia.h...@de.ibm.com Acked-by: Heiko Carstens heiko.carst...@de.ibm.com Acked-by: Christian Borntraeger

[PATCH v1 RFC 4/6] KVM: s390: add ibc api

2014-05-13 Thread Michael Mueller
The patch addds an internal KVM API to access instruction blocking control. It offers the following functions: - has_ibc() : tests if the system offers instruction blocking control - lowest_ibc() : first level supported - latest_ibc() : latest level supported Signed-off-by: Michael Mueller

Re: [PATCH v1] vhost: avoid large order allocations

2014-05-13 Thread Michael Mueller
On Tue, 13 May 2014 16:29:58 +0200 Romain Francoise rom...@orebokech.com wrote: Michael S. Tsirkin m...@redhat.com writes: Please dont' do this, extra indirection hurts performance. Instead, please change vhost_net_open and scsi to allocate the whole structure with vmalloc if kmalloc

Re: [Qemu-devel] [PATCH v2 01/16] x86: Convert conditional compilation of debug printfs to regular ifs

2014-05-13 Thread Eric Blake
On 05/13/2014 01:02 AM, Marc Marí wrote: Modify debug macros to have the same format through the codebase and use regular ifs instead of ifdef. As the debug printf is always put in code, some casting had to be added to avoid warnings treated as errors at compile time. Umm, where in this

Re: [PATCH v1] vhost: avoid large order allocations

2014-05-13 Thread Michael S. Tsirkin
On Tue, May 13, 2014 at 04:29:58PM +0200, Romain Francoise wrote: Michael S. Tsirkin m...@redhat.com writes: Please dont' do this, extra indirection hurts performance. Instead, please change vhost_net_open and scsi to allocate the whole structure with vmalloc if kmalloc fails, along the

Re: [Qemu-devel] [PATCH v1 RFC 09/10] QEMU: s390: cpu model QMP query-cpu-model

2014-05-13 Thread Eric Blake
On 05/13/2014 09:00 AM, Michael Mueller wrote: This patch implements a new QMP request named query-cpu-model. It returns the cpu model of cpu 0. eg: request: '{execute : query-cpu-model } answer: '{return : {name: 2827-ga2}} Alias names are resolved to their respective machine type and

Re: [PULL 3.15 0/4] 3.15 patch queue 2014-05-12

2014-05-13 Thread Paolo Bonzini
Il 12/05/2014 22:26, Alexander Graf ha scritto: Hi Paolo / Marcelo, This is my current patch queue for 3.15. Please pull. Alex The following changes since commit 0f689a33ad17845363acdc6d52783befd6ad116c: Merge branch 'for-linus' of

Från Mr Chris Campbell ( Business erbjudande )

2014-05-13 Thread Credit Suisse Bank London
Hej kompis , Jag hoppas att du gör bra i dag ? Jag är Mr Chris Campbell koncernens chefsjurist / Direktör Audit Department of Credit Suisse Bank , One Cabot Square , London E14 4QJ , Storbritannien . Jag kontaktade dig när det gäller ett affärsförslag som kommer att vara en enorm fördel för

Re: [PATCH v10 03/19] qspinlock: Add pending bit

2014-05-13 Thread Waiman Long
On 05/12/2014 11:22 AM, Radim Krčmář wrote: 2014-05-07 11:01-0400, Waiman Long: From: Peter Zijlstrapet...@infradead.org Because the qspinlock needs to touch a second cacheline; add a pending bit and allow a single in-word spinner before we punt to the second cacheline. I think there is an

[no subject]

2014-05-13 Thread Miller-Eaglin, Rhonda E
Your email was listed for AIG Master-Card funds for Compensation,contact(morganad...@att.net) -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [Qemu-devel] [PATCH] vfio-pci: Quirk RTL8168 NIC

2014-05-13 Thread Francois Romieu
Alex Williamson alex.william...@redhat.com : [...] Oh right, I looked for code references to the register but didn't notice that Linux configures it for MSI, not MSI-X. In my brief testing I only saw that Windows generates interrupts on the first vector, so perhaps not much lost without

[PATCH] booke/powerpc: define wimge shift mask to fix compilation error

2014-05-13 Thread Bharat Bhushan
This fixes below compilation error on SOCs where CONFIG_PHYS_64BIT is not defined: arch/powerpc/kvm/e500_mmu_host.c: In function 'kvmppc_e500_shadow_map': | arch/powerpc/kvm/e500_mmu_host.c:631:20: error: 'PTE_WIMGE_SHIFT' undeclared (first use in this function) |wimg = (*ptep

RE: [PATCH] booke/powerpc: define wimge shift mask to fix compilation error

2014-05-13 Thread bharat.bhus...@freescale.com
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, May 13, 2014 11:18 AM To: Bhushan Bharat-R65777 Cc: kvm-ppc@vger.kernel.org; k...@vger.kernel.org; Wood Scott-B07421; Bhushan Bharat-R65777 Subject: Re: [PATCH] booke/powerpc: define wimge shift mask

Re: [PULL 3.15 0/4] 3.15 patch queue 2014-05-12

2014-05-13 Thread Paolo Bonzini
Il 12/05/2014 22:26, Alexander Graf ha scritto: Hi Paolo / Marcelo, This is my current patch queue for 3.15. Please pull. Alex The following changes since commit 0f689a33ad17845363acdc6d52783befd6ad116c: Merge branch 'for-linus' of

[PATCH 7/8] powerpc/powernv: Implement ppc_call_opal()

2014-05-13 Thread Gavin Shan
If we're running PowerNV platform, ppc_firmware() will be directed to ppc_call_opal() where we can call to OPAL API accordingly. In ppc_call_opal(), the input argument are parsed out and call to appropriate OPAL API to handle that. Each request passed to the function is identified with token. As

[PATCH 1/8] drivers/vfio: Introduce CONFIG_VFIO_EEH

2014-05-13 Thread Gavin Shan
The patch introduces CONFIG_VFIO_EEH for more IOCTL commands on tce_iommu_driver_ops to support EEH funtionality for PCI devices that are passed through from host to guest. Signed-off-by: Gavin Shan gws...@linux.vnet.ibm.com --- drivers/vfio/Kconfig | 6 ++ 1 file changed, 6 insertions(+)

[PATCH RFC v3 0/8] EEH Support for VFIO PCI device

2014-05-13 Thread Gavin Shan
The series of patches intends to support EEH for PCI devices, which are passed through to PowerKVM based guest via VFIO. The implementation is straightforward based on the issues or problems we have to resolve to support EEH for PowerKVM based guest. - Emulation for EEH RTAS requests. All EEH

[PATCH 5/8] powerpc/powernv: Sync OPAL header file with firmware

2014-05-13 Thread Gavin Shan
The patch synchronizes OPAL header file with firmware so that the host kernel can make OPAL call to do error injection. Signed-off-by: Gavin Shan gws...@linux.vnet.ibm.com --- arch/powerpc/include/asm/opal.h| 65 ++

[PATCH 4/8] powerpc/eeh: Avoid event on passed PE

2014-05-13 Thread Gavin Shan
If we detects frozen state on PE that has been passed to guest, we needn't handle it. Instead, we rely on the guest to detect and recover it. The patch avoid EEH event on the frozen passed PE so that the guest can have chance to handle that. Signed-off-by: Gavin Shan gws...@linux.vnet.ibm.com ---

[PATCH 3/8] drivers/vfio: New IOCTL command VFIO_EEH_INFO

2014-05-13 Thread Gavin Shan
The patch adds new IOCTL command VFIO_EEH_INFO to VFIO container to support EEH functionality for PCI devices, which have been passed from host to guest via VFIO. Signed-off-by: Gavin Shan gws...@linux.vnet.ibm.com --- arch/powerpc/platforms/powernv/Makefile | 1 +

[PATCH 8/8] powerpc/powernv: Error injection infrastructure

2014-05-13 Thread Gavin Shan
The patch intends to implement the error injection infrastructure for PowerNV platform. The predetermined handlers will be called according to the type of injected error (e.g. OpalErrinjctTypeIoaBusError). For now, we just support PCI error injection. We need support injecting other types of

[PATCH 2/8] powerpc/eeh: Info to trace passed devices

2014-05-13 Thread Gavin Shan
The address of passed PCI devices (domain:bus:slot:func) might be quite different from the perspective of host and guest. We have to trace the address mapping so that we can emulate EEH RTAS requests from guest. The patch introduces additional fields to eeh_pe and eeh_dev for the purpose. Also,

[PATCH 6/8] powerpc: Extend syscall ppc_rtas()

2014-05-13 Thread Gavin Shan
Originally, syscall ppc_rtas() can be used to invoke RTAS call from user space. Utility errinjct is using it to inject various errors to the system for testing purpose. The patch intends to extend the syscall to support both pSeries and PowerNV platform. With that, RTAS and OPAL call can be