]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
hvf: Introduce hvf_arch_init() callback
authorAlexander Graf <agraf@csgraf.de>
Thu, 16 Sep 2021 15:53:57 +0000 (17:53 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 20 Sep 2021 08:57:03 +0000 (09:57 +0100)
We will need to install a migration helper for the ARM hvf backend.
Let's introduce an arch callback for the overall hvf init chain to
do so.

Signed-off-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20210916155404.86958-4-agraf@csgraf.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
accel/hvf/hvf-accel-ops.c
include/sysemu/hvf_int.h
target/i386/hvf/hvf.c

index 71cc2fa70fa135d66e081d866a8464f89966c573..65d431868fbb5c2a2ffee1d96c64069c0998b653 100644 (file)
@@ -324,7 +324,8 @@ static int hvf_accel_init(MachineState *ms)
 
     hvf_state = s;
     memory_listener_register(&hvf_memory_listener, &address_space_memory);
-    return 0;
+
+    return hvf_arch_init();
 }
 
 static void hvf_accel_class_init(ObjectClass *oc, void *data)
index 8b66a4e7d0dcd7534ce22ed4f1f834fd40bf2b82..0466106d160fe7d6112b5589d72d1bc80d6aa35e 100644 (file)
@@ -48,6 +48,7 @@ struct hvf_vcpu_state {
 };
 
 void assert_hvf_ok(hv_return_t ret);
+int hvf_arch_init(void);
 int hvf_arch_init_vcpu(CPUState *cpu);
 void hvf_arch_vcpu_destroy(CPUState *cpu);
 int hvf_vcpu_exec(CPUState *);
index 79ba4ed93ab7507a26e13df88d35172d13ed8436..abef24a9c84bdad8778da883040163e234bf91b5 100644 (file)
@@ -206,6 +206,11 @@ static inline bool apic_bus_freq_is_known(CPUX86State *env)
     return env->apic_bus_freq != 0;
 }
 
+int hvf_arch_init(void)
+{
+    return 0;
+}
+
 int hvf_arch_init_vcpu(CPUState *cpu)
 {
     X86CPU *x86cpu = X86_CPU(cpu);