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 a few internal struct and constant defines over. Signed-off-by: Alexander Graf <agraf@csgraf.de> Reviewed-by: Sergio Lopez <slp@redhat.com> Message-id: 20210519202253.76782-5-agraf@csgraf.de Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
35 lines
748 B
C
35 lines
748 B
C
/*
|
|
* QEMU Hypervisor.framework (HVF) support
|
|
*
|
|
* Copyright 2017 Google Inc
|
|
*
|
|
* Adapted from target-i386/hax-i386.h:
|
|
* Copyright (c) 2011 Intel Corporation
|
|
* Written by:
|
|
* Jiang Yunhong<yunhong.jiang@intel.com>
|
|
*
|
|
* 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_I386_H
|
|
#define HVF_I386_H
|
|
|
|
#include "qemu/accel.h"
|
|
#include "sysemu/hvf.h"
|
|
#include "sysemu/hvf_int.h"
|
|
#include "cpu.h"
|
|
#include "x86.h"
|
|
|
|
void hvf_handle_io(CPUArchState *, uint16_t, void *, int, int, int);
|
|
|
|
#ifdef NEED_CPU_H
|
|
/* Functions exported to host specific mode */
|
|
|
|
/* Host specific functions */
|
|
int hvf_inject_interrupt(CPUArchState *env, int vector);
|
|
#endif
|
|
|
|
#endif
|