[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] memory-region: Report if region is read-only on inf
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH] memory-region: Report if region is read-only on info mtree |
Date: |
Fri, 03 Feb 2012 13:02:05 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
Helpful to understand guest configurations of things like the i440FX's
PAM.
Signed-off-by: Jan Kiszka <address@hidden>
---
memory.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/memory.c b/memory.c
index ee4c98a..ea4adda 100644
--- a/memory.c
+++ b/memory.c
@@ -1608,23 +1608,25 @@ static void mtree_print_mr(fprintf_function mon_printf,
void *f,
ml->printed = false;
QTAILQ_INSERT_TAIL(alias_print_queue, ml, queue);
}
- mon_printf(f, TARGET_FMT_plx "-" TARGET_FMT_plx " (prio %d): alias %s
@%s "
+ mon_printf(f, TARGET_FMT_plx "-" TARGET_FMT_plx " (prio %d, %s): alias
%s @%s "
TARGET_FMT_plx "-" TARGET_FMT_plx "\n",
base + mr->addr,
base + mr->addr
+ (target_phys_addr_t)int128_get64(mr->size) - 1,
mr->priority,
+ mr->readonly ? "RO" : "RW",
mr->name,
mr->alias->name,
mr->alias_offset,
mr->alias_offset
+ (target_phys_addr_t)int128_get64(mr->size) - 1);
} else {
- mon_printf(f, TARGET_FMT_plx "-" TARGET_FMT_plx " (prio %d): %s\n",
+ mon_printf(f, TARGET_FMT_plx "-" TARGET_FMT_plx " (prio %d, %s): %s\n",
base + mr->addr,
base + mr->addr
+ (target_phys_addr_t)int128_get64(mr->size) - 1,
mr->priority,
+ mr->readonly ? "RO" : "RW",
mr->name);
}
--
1.7.3.4
- [Qemu-devel] [PATCH] memory-region: Report if region is read-only on info mtree,
Jan Kiszka <=
- Re: [Qemu-devel] [PATCH] memory-region: Report if region is read-only on info mtree, Blue Swirl, 2012/02/04
- Re: [Qemu-devel] [PATCH] memory-region: Report if region is read-only on info mtree, Jan Kiszka, 2012/02/04
- Re: [Qemu-devel] [PATCH] memory-region: Report if region is read-only on info mtree, Blue Swirl, 2012/02/04
- Re: [Qemu-devel] [PATCH] memory-region: Report if region is read-only on info mtree, Jan Kiszka, 2012/02/04
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] memory-region: Report if region is read-only on info mtree, Stefan Hajnoczi, 2012/02/09
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] memory-region: Report if region is read-only on info mtree, Jan Kiszka, 2012/02/09
- Re: [Qemu-devel] [Qemu-trivial] [PATCH] memory-region: Report if region is read-only on info mtree, Stefan Hajnoczi, 2012/02/09
[Qemu-devel] [PATCH v2] memory-region: Report if region is read-only or write-only on info mtree, Jan Kiszka, 2012/02/04