[PATCH 4/4] KVM: PPC: BookE: Add EPR ONE_REG sync

2013-01-07 Thread Alexander Graf
We need to be able to read and write the contents of the EPR register from user space. This patch implements that logic through the ONE_REG API and declares its (never implemented) SREGS counterpart as deprecated. Signed-off-by: Alexander Graf --- Documentation/virtual/kvm/api.txt |1 + a

[PATCH 2/4] KVM: PPC: BookE: Emulate mfspr on EPR

2013-01-07 Thread Alexander Graf
The EPR register is potentially valid for PR KVM as well, so we need to emulate accesses to it. It's only defined for reading, so only handle the mfspr case. Signed-off-by: Alexander Graf --- arch/powerpc/kvm/booke_emulate.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --gi

[PATCH 1/4] KVM: PPC: BookE: Allow irq deliveries to inject requests

2013-01-07 Thread Alexander Graf
From: Mihai Caraman When injecting an interrupt into guest context, we usually don't need to check for requests anymore. At least not until today. With the introduction of EPR, we will have to create a request when the guest has successfully accepted an external interrupt though. So we need to

[PATCH 3/4] KVM: PPC: BookE: Implement EPR exit

2013-01-07 Thread Alexander Graf
The External Proxy Facility in FSL BookE chips allows the interrupt controller to automatically acknowledge an interrupt as soon as a core gets its pending external interrupt delivered. Today, user space implements the interrupt controller, so we need to check on it during such a cycle. This patc

[PATCH 0/4] KVM: PPC: BookE: Add EPR user space support v3

2013-01-07 Thread Alexander Graf
The FSL MPIC implementation contains a feature called "external proxy facility" which allows for interrupts to be acknowledged in the MPIC as soon as a core accepts its pending external interrupt. This patch set implements all the necessary pieces to support this from the kernel space side. v1 ->

Re: [PATCH 3/4] KVM: PPC: BookE: Implement EPR exit

2013-01-07 Thread Alexander Graf
On 07.01.2013, at 18:47, Scott Wood wrote: > On 01/04/2013 05:41:42 PM, Alexander Graf wrote: >> @@ -408,6 +411,11 @@ static int kvmppc_booke_irqprio_deliver(struct kvm_vcpu >> *vcpu, >> set_guest_esr(vcpu, vcpu->arch.queued_esr); >> if (update_dear == true) >>

Re: [PATCH 3/4] KVM: PPC: BookE: Implement EPR exit

2013-01-07 Thread Scott Wood
On 01/04/2013 05:41:42 PM, Alexander Graf wrote: @@ -408,6 +411,11 @@ static int kvmppc_booke_irqprio_deliver(struct kvm_vcpu *vcpu, set_guest_esr(vcpu, vcpu->arch.queued_esr); if (update_dear == true) set_guest_dear(vcpu, vcpu->ar