]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hvf: Move vcpu thread functions into common directory
authorAlexander Graf <agraf@csgraf.de>
Thu, 3 Jun 2021 13:09:31 +0000 (14:09 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 3 Jun 2021 15:43:26 +0000 (16:43 +0100)
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>
accel/hvf/hvf-accel-ops.c [moved from target/i386/hvf/hvf-accel-ops.c with 100% similarity]
accel/hvf/hvf-accel-ops.h [moved from target/i386/hvf/hvf-accel-ops.h with 100% similarity]
accel/hvf/meson.build
target/i386/hvf/meson.build
target/i386/hvf/x86hvf.c

index 227b11cd717b80442844ed2afdca93b855701153..fc52cb78433a3169e8585405ebf79082f156346d 100644 (file)
@@ -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)
index d253d5fd102025d439d844c6da5127dd90afbcf0..f6d4c394d3e3eb7751484c66b0a3191da0b6dbb7 100644 (file)
@@ -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',
index 0d7533742ebf5ec07b1787c691862c44c958a47c..2b99f3eaa2d597abc370056657414c55bd60a8db 100644 (file)
@@ -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)