diff options
author | Alexander Graf <agraf@csgraf.de> | 2021-06-03 14:09:31 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-06-03 16:43:26 +0100 |
commit | 39a3445012e44b01f6a7e7b29cf7477ef2a656eb (patch) | |
tree | 6b21b55fc4bd69df6bebb9d99339d2c8418e5241 | |
parent | d57bc3c1098f1614db1c5763f3672fe01d768972 (diff) | |
download | qemu-39a3445012e44b01f6a7e7b29cf7477ef2a656eb.zip qemu-39a3445012e44b01f6a7e7b29cf7477ef2a656eb.tar.gz qemu-39a3445012e44b01f6a7e7b29cf7477ef2a656eb.tar.bz2 |
hvf: Move vcpu thread functions into common directory
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>
-rw-r--r-- | accel/hvf/hvf-accel-ops.c (renamed from target/i386/hvf/hvf-accel-ops.c) | 0 | ||||
-rw-r--r-- | accel/hvf/hvf-accel-ops.h (renamed from target/i386/hvf/hvf-accel-ops.h) | 0 | ||||
-rw-r--r-- | accel/hvf/meson.build | 1 | ||||
-rw-r--r-- | target/i386/hvf/meson.build | 1 | ||||
-rw-r--r-- | target/i386/hvf/x86hvf.c | 2 |
5 files changed, 2 insertions, 2 deletions
diff --git a/target/i386/hvf/hvf-accel-ops.c b/accel/hvf/hvf-accel-ops.c index cbaad23..cbaad23 100644 --- a/target/i386/hvf/hvf-accel-ops.c +++ b/accel/hvf/hvf-accel-ops.c diff --git a/target/i386/hvf/hvf-accel-ops.h b/accel/hvf/hvf-accel-ops.h index 8f992da..8f992da 100644 --- a/target/i386/hvf/hvf-accel-ops.h +++ b/accel/hvf/hvf-accel-ops.h diff --git a/accel/hvf/meson.build b/accel/hvf/meson.build index 227b11c..fc52cb7 100644 --- a/accel/hvf/meson.build +++ b/accel/hvf/meson.build @@ -1,6 +1,7 @@ hvf_ss = ss.source_set() hvf_ss.add(files( 'hvf-all.c', + 'hvf-accel-ops.c', )) specific_ss.add_all(when: 'CONFIG_HVF', if_true: hvf_ss) diff --git a/target/i386/hvf/meson.build b/target/i386/hvf/meson.build index d253d5f..f6d4c39 100644 --- a/target/i386/hvf/meson.build +++ b/target/i386/hvf/meson.build @@ -1,6 +1,5 @@ i386_softmmu_ss.add(when: [hvf, 'CONFIG_HVF'], if_true: files( 'hvf.c', - 'hvf-accel-ops.c', 'x86.c', 'x86_cpuid.c', 'x86_decode.c', diff --git a/target/i386/hvf/x86hvf.c b/target/i386/hvf/x86hvf.c index 0d75337..2b99f3e 100644 --- a/target/i386/hvf/x86hvf.c +++ b/target/i386/hvf/x86hvf.c @@ -32,7 +32,7 @@ #include <Hypervisor/hv.h> #include <Hypervisor/hv_vmx.h> -#include "hvf-accel-ops.h" +#include "accel/hvf/hvf-accel-ops.h" void hvf_set_segment(struct CPUState *cpu, struct vmx_segment *vmx_seg, SegmentCache *qseg, bool is_tr) |