[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v8 06/19] hvf: Remove use of hv_uvaddr_t and hv_gpaddr_t
From: |
Alexander Graf |
Subject: |
[PATCH v8 06/19] hvf: Remove use of hv_uvaddr_t and hv_gpaddr_t |
Date: |
Wed, 19 May 2021 22:22:40 +0200 |
The ARM version of Hypervisor.framework no longer defines these two
types, so let's just revert to standard ones.
Signed-off-by: Alexander Graf <agraf@csgraf.de>
---
accel/hvf/hvf-accel-ops.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/accel/hvf/hvf-accel-ops.c b/accel/hvf/hvf-accel-ops.c
index 5bec7b4d6d..7370fcfba0 100644
--- a/accel/hvf/hvf-accel-ops.c
+++ b/accel/hvf/hvf-accel-ops.c
@@ -109,7 +109,7 @@ static int do_hvf_set_memory(hvf_slot *slot,
hv_memory_flags_t flags)
macslot->present = 1;
macslot->gpa_start = slot->start;
macslot->size = slot->size;
- ret = hv_vm_map((hv_uvaddr_t)slot->mem, slot->start, slot->size, flags);
+ ret = hv_vm_map(slot->mem, slot->start, slot->size, flags);
assert_hvf_ok(ret);
return 0;
}
@@ -253,12 +253,12 @@ static void hvf_set_dirty_tracking(MemoryRegionSection
*section, bool on)
/* protect region against writes; begin tracking it */
if (on) {
slot->flags |= HVF_SLOT_LOG;
- hv_vm_protect((hv_gpaddr_t)slot->start, (size_t)slot->size,
+ hv_vm_protect((uintptr_t)slot->start, (size_t)slot->size,
HV_MEMORY_READ);
/* stop tracking region*/
} else {
slot->flags &= ~HVF_SLOT_LOG;
- hv_vm_protect((hv_gpaddr_t)slot->start, (size_t)slot->size,
+ hv_vm_protect((uintptr_t)slot->start, (size_t)slot->size,
HV_MEMORY_READ | HV_MEMORY_WRITE);
}
}
--
2.30.1 (Apple Git-130)
- [PATCH v8 09/19] hvf: Make synchronize functions static, (continued)
- [PATCH v8 09/19] hvf: Make synchronize functions static, Alexander Graf, 2021/05/19
- [PATCH v8 07/19] hvf: Split out common code on vcpu init and destroy, Alexander Graf, 2021/05/19
- [PATCH v8 10/19] hvf: Remove hvf-accel-ops.h, Alexander Graf, 2021/05/19
- [PATCH v8 12/19] hvf: Simplify post reset/init/loadvm hooks, Alexander Graf, 2021/05/19
- [PATCH v8 08/19] hvf: Use cpu_synchronize_state(), Alexander Graf, 2021/05/19
- [PATCH v8 06/19] hvf: Remove use of hv_uvaddr_t and hv_gpaddr_t,
Alexander Graf <=
- [PATCH v8 05/19] hvf: Make hvf_set_phys_mem() static, Alexander Graf, 2021/05/19
- [PATCH v8 14/19] arm/hvf: Add a WFI handler, Alexander Graf, 2021/05/19
- [PATCH v8 11/19] hvf: Introduce hvf vcpu struct, Alexander Graf, 2021/05/19
- [PATCH v8 13/19] hvf: Add Apple Silicon support, Alexander Graf, 2021/05/19
- [PATCH v8 15/19] hvf: arm: Implement -cpu host, Alexander Graf, 2021/05/19