OSDN Git Service

target-ppc: Fix page table lookup with kvm enabled
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 20 Feb 2014 17:52:24 +0000 (18:52 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 5 Mar 2014 02:07:02 +0000 (03:07 +0100)
commit7c43bca004afdb2a86c20ab3131ec1eb7a78d80d
tree307e01bd324b38976bf99cca15ea574974293c59
parentf3c75d42adbba553eaf218a832d4fbea32c8f7b8
target-ppc: Fix page table lookup with kvm enabled

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
 0xc000000000098660 <do_fork>:   Cannot access memory at address 0xc000000000098660
 (gdb)

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
[ fixes for 32 bit build (casts!), ldq_phys() API change,
  Greg Kurz <gkurz@linux.vnet.ibm.com ]
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr.c
hw/ppc/spapr_hcall.c
target-ppc/kvm.c
target-ppc/kvm_ppc.h
target-ppc/mmu-hash64.c
target-ppc/mmu-hash64.h