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 CPU and memory operations over. While at it, make sure the code is consumable on non-i386 systems. Signed-off-by: Alexander Graf <agraf@csgraf.de> Reviewed-by: Sergio Lopez <slp@redhat.com> Message-id: 20210519202253.76782-4-agraf@csgraf.de Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
23 lines
521 B
C
23 lines
521 B
C
/*
|
|
* QEMU Hypervisor.framework (HVF) support
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*
|
|
*/
|
|
|
|
/* header to be included in HVF-specific code */
|
|
|
|
#ifndef HVF_INT_H
|
|
#define HVF_INT_H
|
|
|
|
#include <Hypervisor/hv.h>
|
|
|
|
void hvf_set_phys_mem(MemoryRegionSection *, bool);
|
|
void assert_hvf_ok(hv_return_t ret);
|
|
hvf_slot *hvf_find_overlap_slot(uint64_t, uint64_t);
|
|
int hvf_put_registers(CPUState *);
|
|
int hvf_get_registers(CPUState *);
|
|
|
|
#endif
|