Re: [Qemu-devel] [PULL 125/130] target-ppc: Fix page table lookup with kvm enabled

2014-03-14 Thread Paolo Bonzini
Il 07/03/2014 00:34, Alexander Graf ha scritto: @@ -105,30 +106,37 @@ static target_ulong h_enter(PowerPCCPU *cpu, sPAPREnvironment *spapr, if (!valid_pte_index(env, pte_index)) { return H_PARAMETER; } + +index = 0; +hpte = pte_index * HASH_PTE_SIZE_64; if

Re: [Qemu-devel] [PULL 125/130] target-ppc: Fix page table lookup with kvm enabled

2014-03-14 Thread Aneesh Kumar K.V
Paolo Bonzini pbonz...@redhat.com writes: Il 07/03/2014 00:34, Alexander Graf ha scritto: @@ -105,30 +106,37 @@ static target_ulong h_enter(PowerPCCPU *cpu, sPAPREnvironment *spapr, if (!valid_pte_index(env, pte_index)) { return H_PARAMETER; } + +index = 0; +

Re: [Qemu-devel] [PULL 125/130] target-ppc: Fix page table lookup with kvm enabled

2014-03-14 Thread Paolo Bonzini
Il 14/03/2014 14:13, Aneesh Kumar K.V ha scritto: diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index e999bbaea062..e079be050fc7 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -118,7 +118,8 @@ static target_ulong h_enter(PowerPCCPU *cpu, sPAPREnvironment *spapr,

[Qemu-devel] [PULL 125/130] target-ppc: Fix page table lookup with kvm enabled

2014-03-06 Thread Alexander Graf
From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com With kvm enabled, we store the hash page table information in the hypervisor. Use ioctl to read the htab contents. Without this we get the below error when trying to read the guest address (gdb) x/10 do_fork 0xc0098660 do_fork: