On 03/26/2013 05:05:06 PM, Mihai Caraman wrote:
+int kvmppc_set_one_reg_e500_tlb(struct kvm_vcpu *vcpu, u64 id,
+ union kvmppc_one_reg *val)
+{
+ int r = 0;
+ long int i;
+
+ switch (id) {
+ case KVM_REG_PPC_MAS0:
+ vcpu->arch.sha
On 03/26/2013 05:05:08 PM, Mihai Caraman wrote:
diff --git a/arch/powerpc/kvm/e500.h b/arch/powerpc/kvm/e500.h
index b73ca7a..795934d 100644
--- a/arch/powerpc/kvm/e500.h
+++ b/arch/powerpc/kvm/e500.h
@@ -23,6 +23,8 @@
#include
#include
+#define VCPU_FTR_MMU_V20
enum? We d
MMU registers were exposed to user-space using sregs interface. Add them
to ONE_REG interface and use kvmppc_get_one_reg/kvmppc_set_one_reg delegation
interface introduced by book3s.
Signed-off-by: Mihai Caraman
---
v2:
- Restrict set_one_reg operation for MMU registers to HW values
Documentat
Enable basic support for Freescale e6500 core, adding MAV 2.0 support.
Validated on T4240QDS platfrom. Altivec, Multithreading and HW Tablewalk
are not addressed by this patchset.
Mihai Caraman (7):
KVM: PPC: e500: Expose MMU registers via ONE_REG
KVM: PPC: e500: Move vcpu's MMU configuration
Add support for TLBnPS registers available in MMU Architecture Version
(MAV) 2.0.
Signed-off-by: Mihai Caraman
---
v2:
- Add vcpu generic function has_feature()
Documentation/virtual/kvm/api.txt |4
arch/powerpc/include/asm/kvm_host.h |1 +
arch/powerpc/include/uapi/asm/kvm.h |
Vcpu's MMU default configuration and geometry update logic was buried in
a chunk of code. Move them to dedicated functions to add more clarity.
Signed-off-by: Mihai Caraman
---
v2:
- Add better patch description. Hopefully :)
arch/powerpc/kvm/e500_mmu.c | 60 +++--
Add e6500 core to Kconfig description.
Signed-off-by: Mihai Caraman
---
v2:
- New patch
arch/powerpc/kvm/Kconfig |6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig
index 63c67ec..4489520 100644
--- a/arch/powerpc/kv
Extend processor compatibility names to e6500 cores.
Signed-off-by: Mihai Caraman
Reviewed-by: Alexander Graf
---
v2:
- No change
arch/powerpc/kvm/e500mc.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/kvm/e500mc.c b/arch/powerpc/kvm/e500mc.c
index ab0
Embedded.Page Table (E.PT) category in VMs requires indirect tlb entries
emulation which is not supported yet. Configure TLBnCFG to remove E.PT
and E.HV.LRAT categories from VCPUs.
Signed-off-by: Mihai Caraman
---
v2:
- Remove E.HV.LRAT from vcpus
arch/powerpc/kvm/e500_mmu.c |6 ++
1 f
EPTCFG register defined by E.PT is accessed unconditionally by Linux guests
in the presence of MAV 2.0. Support it now.
Signed-off-by: Mihai Caraman
---
v2:
- Use has_feature() function
Documentation/virtual/kvm/api.txt |1 +
arch/powerpc/include/asm/kvm_host.h |1 +
arch/powerpc/inc
On 03/25/2013 08:33:12 PM, Gleb Natapov wrote:
On Tue, Mar 26, 2013 at 12:35:09AM +0100, Alexander Graf wrote:
>
> On 26.03.2013, at 00:16, Scott Wood wrote:
>
> > On 03/25/2013 05:59:39 PM, Alexander Graf wrote:
> >> On 25.03.2013, at 23:54, Scott Wood wrote:
> >> > On 03/25/2013 05:32:11 PM, Al
11 matches
Mail list logo