39a3445012
Until now, Hypervisor.framework has only been available on x86_64 systems. With Apple Silicon shipping now, it extends its reach to aarch64. To prepare for support for multiple architectures, let's start moving common code out into its own accel directory. This patch moves the vCPU thread loop over. Signed-off-by: Alexander Graf <agraf@csgraf.de> Reviewed-by: Sergio Lopez <slp@redhat.com> Message-id: 20210519202253.76782-3-agraf@csgraf.de Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
24 lines
577 B
C
24 lines
577 B
C
/*
|
|
* Accelerator CPUS Interface
|
|
*
|
|
* Copyright 2020 SUSE LLC
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef HVF_CPUS_H
|
|
#define HVF_CPUS_H
|
|
|
|
#include "sysemu/cpus.h"
|
|
|
|
int hvf_init_vcpu(CPUState *);
|
|
int hvf_vcpu_exec(CPUState *);
|
|
void hvf_cpu_synchronize_state(CPUState *);
|
|
void hvf_cpu_synchronize_post_reset(CPUState *);
|
|
void hvf_cpu_synchronize_post_init(CPUState *);
|
|
void hvf_cpu_synchronize_pre_loadvm(CPUState *);
|
|
void hvf_vcpu_destroy(CPUState *);
|
|
|
|
#endif /* HVF_CPUS_H */
|