[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/6] exec.c: replace hwaddr with uint64_t for better
From: |
Wei Yang |
Subject: |
[Qemu-devel] [PATCH 1/6] exec.c: replace hwaddr with uint64_t for better understanding |
Date: |
Thu, 21 Mar 2019 16:25:50 +0800 |
Function phys_page_set() and phys_page_set_level() 's argument *nb*
stands for number of pages to set instead of hardware address.
This would be more proper to use uint64_t instead of hwaddr for its
type.
Signed-off-by: Wei Yang <address@hidden>
---
exec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/exec.c b/exec.c
index 86a38d3b3b..98ebd0dd1d 100644
--- a/exec.c
+++ b/exec.c
@@ -254,7 +254,7 @@ static uint32_t phys_map_node_alloc(PhysPageMap *map, bool
leaf)
}
static void phys_page_set_level(PhysPageMap *map, PhysPageEntry *lp,
- hwaddr *index, hwaddr *nb, uint16_t leaf,
+ hwaddr *index, uint64_t *nb, uint16_t leaf,
int level)
{
PhysPageEntry *p;
@@ -280,7 +280,7 @@ static void phys_page_set_level(PhysPageMap *map,
PhysPageEntry *lp,
}
static void phys_page_set(AddressSpaceDispatch *d,
- hwaddr index, hwaddr nb,
+ hwaddr index, uint64_t nb,
uint16_t leaf)
{
/* Wildly overreserve - it doesn't matter much. */
--
2.19.1
- [Qemu-devel] [PATCH 0/6] Refine exec, Wei Yang, 2019/03/21
- [Qemu-devel] [PATCH 1/6] exec.c: replace hwaddr with uint64_t for better understanding,
Wei Yang <=
- [Qemu-devel] [PATCH 2/6] exec.c: remove an unnecessary assert on PHYS_MAP_NODE_NIL in phys_map_node_alloc(), Wei Yang, 2019/03/21
- [Qemu-devel] [PATCH 3/6] exec.c: get nodes_nb_alloc with one MAX calculation, Wei Yang, 2019/03/21
- [Qemu-devel] [PATCH 4/6] exec.c: subpage->sub_section is already initialized to 0, Wei Yang, 2019/03/21
- [Qemu-devel] [PATCH 5/6] exec.c: correct the maximum skip value during compact, Wei Yang, 2019/03/21
- [Qemu-devel] [PATCH 6/6] exec.c: add a check between constants to see whether we could skip, Wei Yang, 2019/03/21