[PATCH 6/7] kvm/ppc/e500: eliminate tlb_refs

2013-03-22 Thread Alexander Graf
From: Scott Wood Commit 523f0e5421c12610527c620b983b443f329e3a32 ("KVM: PPC: E500: Explicitly mark shadow maps invalid") began using E500_TLB_VALID for guest TLB1 entries, and skipping invalidations if it's not set. However, when E500_TLB_VALID was set for such entries, it was on a fake local re

[PATCH 1/7] KVM: PPC: move tsr update in a separate function

2013-03-22 Thread Alexander Graf
From: Bharat Bhushan This is done so that same function can be called from SREGS and ONE_REG interface (follow up patch). Signed-off-by: Bharat Bhushan Signed-off-by: Alexander Graf --- arch/powerpc/kvm/booke.c | 24 ++-- 1 files changed, 14 insertions(+), 10 deletions(-

[PATCH 2/7] KVM: PPC: Added one_reg interface for timer registers

2013-03-22 Thread Alexander Graf
From: Bharat Bhushan If userspace wants to change some specific bits of TSR (timer status register) then it uses GET/SET_SREGS ioctl interface. So the steps will be: i) user-space will make get ioctl, ii) change TSR in userspace iii) then make set ioctl. It can happen that TS

[PATCH 7/7] KVM: PPC: Remove unused argument to kvmppc_core_dequeue_external

2013-03-22 Thread Alexander Graf
From: Paul Mackerras Currently kvmppc_core_dequeue_external() takes a struct kvm_interrupt * argument and does nothing with it, in any of its implementations. This removes it in order to make things easier for forthcoming in-kernel interrupt controller emulation code. Signed-off-by: Paul Mackerr

[PULL 0/7] ppc patch queue 2013-03-22

2013-03-22 Thread Alexander Graf
Hi Marcelo / Gleb, This is my current patch queue for ppc. Please pull. Changes include: - race-free in-kernel watchdog handling api - e500 mmu fixes Alex The following changes since commit 2ae33b389601b86a3d0cfe2d09f5e3189d5322fd: Marcelo Tosatti (1): Merge remote-tracking bra

[PATCH 3/7] KVM: PPC: booke: Added debug handler

2013-03-22 Thread Alexander Graf
From: Bharat Bhushan Installed debug handler will be used for guest debug support and debug facility emulation features (patches for these features will follow this patch). Signed-off-by: Liu Yu [bharat.bhus...@freescale.com: Substantial changes] Signed-off-by: Bharat Bhushan Signed-off-by: Al

[PATCH 4/7] kvm/ppc/e500: h2g_tlb1_rmap: esel 0 is valid

2013-03-22 Thread Alexander Graf
From: Scott Wood Add one to esel values in h2g_tlb1_rmap, so that "no mapping" can be distinguished from "esel 0". Note that we're not saved by the fact that host esel 0 is reserved for non-KVM use, because KVM host esel numbering is not the raw host numbering (see to_htlb1_esel). Signed-off-by

[PATCH 5/7] kvm/ppc/e500: g2h_tlb1_map: clear old bit before setting new bit

2013-03-22 Thread Alexander Graf
From: Scott Wood It's possible that we're using the same host TLB1 slot to map (a presumably different portion of) the same guest TLB1 entry. Clear the bit in the map before setting it, so that if the esels are the same the bit will remain set. Signed-off-by: Scott Wood Signed-off-by: Alexande