[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Check riscv hypervisor page tables in GDB
From: |
Yanfeng |
Subject: |
Re: Check riscv hypervisor page tables in GDB |
Date: |
Sat, 23 Nov 2024 21:28:13 +0800 |
User-agent: |
Evolution 3.44.4-0ubuntu2 |
Sorry that I pasted wrong session in last email, it should be
```
(gdb) p/x $hgatp
$5 = 0x800020000008579a
(gdb) p/x *(uint64_t*)0x8579a000
Cannot access memory at address 0x8579a000
```
Regards,
yf
On Sat, 2024-11-23 at 21:24 +0800, Yanfeng wrote:
> Dear experts,
>
> I am checking a working rv64 program with hypervisor extension on QEMU v6.1
> via
> GDB.
>
> While V=0 and Priv=1, I can see page table pointed by $satp from GDB.
>
> However, while V=1, I can read $hgatp from GDB, but can't read the page table
> any more:
>
> ```
> (gdb) p/x $hgatp
> $4 = 0x800020000008579a
> (gdb) p/x *(uint64_t*)0x84027000
> Cannot access memory at address 0x84027000
> (gdb)
> ```
>
> I am wondering if my GDB usage is incorrect?
>
> Regards,
> yf
>