[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 11/14] hmp: use cpu_get_phys_page_debug() in hmp_gva2gpa()
From: |
Peter Xu |
Subject: |
[PULL 11/14] hmp: use cpu_get_phys_page_debug() in hmp_gva2gpa() |
Date: |
Tue, 11 Feb 2025 17:50:55 -0500 |
From: David Hildenbrand <david@redhat.com>
We don't need the MemTxAttrs, so let's simply use the simpler function
variant.
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
Link: 20250210084648.33798-7-david@redhat.com">https://lore.kernel.org/r/20250210084648.33798-7-david@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
---
monitor/hmp-cmds-target.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/monitor/hmp-cmds-target.c b/monitor/hmp-cmds-target.c
index 27ffe61818..239c2a61a4 100644
--- a/monitor/hmp-cmds-target.c
+++ b/monitor/hmp-cmds-target.c
@@ -301,7 +301,6 @@ void hmp_gpa2hva(Monitor *mon, const QDict *qdict)
void hmp_gva2gpa(Monitor *mon, const QDict *qdict)
{
target_ulong addr = qdict_get_int(qdict, "addr");
- MemTxAttrs attrs;
CPUState *cs = mon_get_cpu(mon);
hwaddr gpa;
@@ -310,7 +309,7 @@ void hmp_gva2gpa(Monitor *mon, const QDict *qdict)
return;
}
- gpa = cpu_get_phys_page_attrs_debug(cs, addr & TARGET_PAGE_MASK, &attrs);
+ gpa = cpu_get_phys_page_debug(cs, addr & TARGET_PAGE_MASK);
if (gpa == -1) {
monitor_printf(mon, "Unmapped\n");
} else {
--
2.47.0
- [PULL 02/14] os: add an ability to lock memory on_fault, (continued)
- [PULL 02/14] os: add an ability to lock memory on_fault, Peter Xu, 2025/02/11
- [PULL 03/14] system/vl: extract overcommit option parsing into a helper, Peter Xu, 2025/02/11
- [PULL 04/14] system: introduce a new MlockState enum, Peter Xu, 2025/02/11
- [PULL 06/14] physmem: factor out memory_region_is_ram_device() check in memory_access_is_direct(), Peter Xu, 2025/02/11
- [PULL 07/14] physmem: factor out RAM/ROMD check in memory_access_is_direct(), Peter Xu, 2025/02/11
- [PULL 05/14] overcommit: introduce mem-lock=on-fault, Peter Xu, 2025/02/11
- [PULL 09/14] physmem: disallow direct access to RAM DEVICE in address_space_write_rom(), Peter Xu, 2025/02/11
- [PULL 10/14] memory: pass MemTxAttrs to memory_access_is_direct(), Peter Xu, 2025/02/11
- [PULL 11/14] hmp: use cpu_get_phys_page_debug() in hmp_gva2gpa(),
Peter Xu <=
- [PULL 08/14] physmem: factor out direct access check into memory_region_supports_direct_access(), Peter Xu, 2025/02/11
- [PULL 12/14] physmem: teach cpu_memory_rw_debug() to write to more memory regions, Peter Xu, 2025/02/11
- [PULL 13/14] system/physmem: handle hugetlb correctly in qemu_ram_remap(), Peter Xu, 2025/02/11
- [PULL 14/14] system/physmem: poisoned memory discard on reboot, Peter Xu, 2025/02/11