Dr. David Alan Gilbert 574d96933c hmp: gva2gpa debug command
Add a gva2gpa command purely for debug which performs
address translation on the gva, the existing gpa2hva
command can then also be used to find it in the qemu
userspace; e.g.

(qemu) info registers
.... RSP=ffffffff81c03e98
....
(qemu) gva2gpa 0xffffffff81c03e98
gpa: 0x1c03e98
(qemu) gpa2hva 0x1c03e98
Host virtual address for 0x1c03e98 (pc.ram) is 0x7f0599a03e98
(qemu) x/10x 0xffffffff81c03e98
ffffffff81c03e98: 0x81c03eb8 0xffffffff 0x8101ea3f 0xffffffff
ffffffff81c03ea8: 0x81d27b00 0xffffffff 0x00000000 0x00000000
ffffffff81c03eb8: 0x81c03ec8 0xffffffff

gdb -p ...qemu...
(gdb) x/10x 0x7f0599a03e98
0x7f0599a03e98:	0x81c03eb8	0xffffffff	0x8101ea3f	0xffffffff
0x7f0599a03ea8:	0x81d27b00	0xffffffff	0x00000000	0x00000000
0x7f0599a03eb8:	0x81c03ec8	0xffffffff

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190412152652.827-1-dgilbert@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
2019-05-01 10:46:59 +01:00
..
2017-09-22 10:46:25 +08:00
2019-03-23 14:42:05 -07:00
2019-02-22 14:07:01 -05:00
2019-03-07 17:28:46 +01:00
2019-03-07 17:28:47 +01:00
2019-03-07 17:28:26 +01:00
2019-03-07 17:28:47 +01:00
2019-03-07 17:28:46 +01:00
2019-03-07 17:28:41 +01:00
2019-03-07 17:28:47 +01:00
2019-03-07 17:28:46 +01:00
2019-03-07 17:28:46 +01:00
2019-03-07 17:28:46 +01:00
2019-03-08 16:31:34 +00:00
2019-03-07 17:28:25 +01:00
2019-03-07 17:28:46 +01:00
2019-02-26 19:04:47 +00:00
2019-03-12 15:18:40 +01:00
2019-05-01 10:46:59 +01:00
2017-09-05 22:34:40 +02:00
2018-08-23 18:46:25 +02:00
2017-12-20 22:01:24 +08:00
2018-12-20 10:29:08 +01:00
2018-12-20 10:29:08 +01:00
2019-03-07 17:28:27 +01:00
2019-03-07 17:28:46 +01:00