accel/hvf: Add hvf_arch_cpu_realize() stubs

Implement HVF AccelOpsClass::cpu_target_realize() hook as
empty stubs. Target implementations will come separately.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Message-ID: <20260112103034.65310-17-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé
2025-06-18 15:53:16 +02:00
parent e4f6a02d86
commit b2d57718a9
4 changed files with 14 additions and 0 deletions

View File

@@ -356,6 +356,8 @@ static void hvf_accel_ops_class_init(ObjectClass *oc, const void *data)
{
AccelOpsClass *ops = ACCEL_OPS_CLASS(oc);
ops->cpu_target_realize = hvf_arch_cpu_realize;
ops->create_vcpu_thread = hvf_start_vcpu_thread;
ops->kick_vcpu_thread = hvf_kick_vcpu_thread;
ops->handle_interrupt = generic_handle_interrupt;

View File

@@ -106,4 +106,6 @@ int hvf_update_guest_debug(CPUState *cpu);
*/
bool hvf_arch_supports_guest_debug(void);
bool hvf_arch_cpu_realize(CPUState *cpu, Error **errp);
#endif

View File

@@ -972,6 +972,11 @@ int hvf_arch_init_vcpu(CPUState *cpu)
return 0;
}
bool hvf_arch_cpu_realize(CPUState *cs, Error **errp)
{
return true;
}
void hvf_kick_vcpu_thread(CPUState *cpu)
{
hv_return_t ret;

View File

@@ -370,6 +370,11 @@ int hvf_arch_init_vcpu(CPUState *cpu)
return 0;
}
bool hvf_arch_cpu_realize(CPUState *cs, Error **errp)
{
return true;
}
static void hvf_store_events(CPUState *cpu, uint32_t ins_len, uint64_t idtvec_info)
{
X86CPU *x86_cpu = X86_CPU(cpu);