hvf: Split out common code on vcpu init and destroy
commitcfe58455f3b79810375cb4ef560071c1ecff6dea
authorAlexander Graf <agraf@csgraf.de>
Thu, 3 Jun 2021 13:09:32 +0000 (3 14:09 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 3 Jun 2021 15:43:27 +0000 (3 16:43 +0100)
treee0c2901fa2c20e774167617b602855340037498d
parent6e19f86a80746270ab2ab6fe4828c680d982fa72
hvf: Split out common code on vcpu init and destroy

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 splits the vcpu init and destroy functions into a generic and
an architecture specific portion. This also allows us to move the generic
functions into the generic hvf code, removing exported functions.

Signed-off-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Message-id: 20210519202253.76782-8-agraf@csgraf.de
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
accel/hvf/hvf-accel-ops.c
accel/hvf/hvf-accel-ops.h
include/sysemu/hvf_int.h
target/i386/hvf/hvf.c