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 <[email protected]>
[ fixes for 32 bit build (casts!), ldq_phys() API change,
Greg Kurz <
[email protected] ]
Signed-off-by: Greg Kurz <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>