mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:17 +00:00
accel/hvf: Drop hvf_slot and hvf_find_overlap_slot
These are now unused. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp> Message-ID: <20260112103034.65310-10-philmd@linaro.org>
This commit is contained in:
committed by
Philippe Mathieu-Daudé
parent
d1f4ba9d94
commit
6bf331164c
@@ -64,20 +64,6 @@ HVFState *hvf_state;
|
||||
|
||||
/* Memory slots */
|
||||
|
||||
hvf_slot *hvf_find_overlap_slot(uint64_t start, uint64_t size)
|
||||
{
|
||||
hvf_slot *slot;
|
||||
int x;
|
||||
for (x = 0; x < hvf_state->num_slots; ++x) {
|
||||
slot = &hvf_state->slots[x];
|
||||
if (slot->size && start < (slot->start + slot->size) &&
|
||||
(start + size) > slot->start) {
|
||||
return slot;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void do_hvf_cpu_synchronize_state(CPUState *cpu, run_on_cpu_data arg)
|
||||
{
|
||||
if (!cpu->vcpu_dirty) {
|
||||
|
||||
@@ -24,15 +24,6 @@ typedef hv_vcpu_t hvf_vcpuid;
|
||||
typedef hv_vcpuid_t hvf_vcpuid;
|
||||
#endif
|
||||
|
||||
typedef struct hvf_slot {
|
||||
uint64_t start;
|
||||
uint64_t size;
|
||||
uint8_t *mem;
|
||||
int slot_id;
|
||||
uint32_t flags;
|
||||
MemoryRegion *region;
|
||||
} hvf_slot;
|
||||
|
||||
typedef struct hvf_vcpu_caps {
|
||||
uint64_t vmx_cap_pinbased;
|
||||
uint64_t vmx_cap_procbased;
|
||||
@@ -45,9 +36,6 @@ typedef struct hvf_vcpu_caps {
|
||||
struct HVFState {
|
||||
AccelState parent_obj;
|
||||
|
||||
hvf_slot slots[32];
|
||||
int num_slots;
|
||||
|
||||
hvf_vcpu_caps *hvf_caps;
|
||||
uint64_t vtimer_offset;
|
||||
QTAILQ_HEAD(, hvf_sw_breakpoint) hvf_sw_breakpoints;
|
||||
@@ -70,7 +58,6 @@ void assert_hvf_ok_impl(hv_return_t ret, const char *file, unsigned int line,
|
||||
const char *hvf_return_string(hv_return_t ret);
|
||||
int hvf_arch_init(void);
|
||||
hv_return_t hvf_arch_vm_create(MachineState *ms, uint32_t pa_range);
|
||||
hvf_slot *hvf_find_overlap_slot(uint64_t, uint64_t);
|
||||
void hvf_kick_vcpu_thread(CPUState *cpu);
|
||||
|
||||
/* Must be called by the owning thread */
|
||||
|
||||
Reference in New Issue
Block a user