]> git.proxmox.com Git - mirror_qemu.git/commitdiff
arm: Add Hypervisor.framework build target
authorAlexander Graf <agraf@csgraf.de>
Thu, 16 Sep 2021 15:54:02 +0000 (17:54 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 21 Sep 2021 15:28:26 +0000 (16:28 +0100)
Now that we have all logic in place that we need to handle Hypervisor.framework
on Apple Silicon systems, let's add CONFIG_HVF for aarch64 as well so that we
can build it.

Signed-off-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
Tested-by: Roman Bolshakov <r.bolshakov@yadro.com> (x86 only)
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Message-id: 20210916155404.86958-9-agraf@csgraf.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
meson.build
target/arm/hvf/meson.build [new file with mode: 0644]
target/arm/meson.build

index baa28d7d62ee6859beef28f48699bd11692a28f9..15ef4d3c4187c2468ba1eda169f2e645cc9e0e25 100644 (file)
@@ -77,6 +77,13 @@ else
 endif
 
 accelerator_targets = { 'CONFIG_KVM': kvm_targets }
+
+if cpu in ['aarch64']
+  accelerator_targets += {
+    'CONFIG_HVF': ['aarch64-softmmu']
+  }
+endif
+
 if cpu in ['x86', 'x86_64', 'arm', 'aarch64']
   # i386 emulator provides xenpv machine type for multiple architectures
   accelerator_targets += {
diff --git a/target/arm/hvf/meson.build b/target/arm/hvf/meson.build
new file mode 100644 (file)
index 0000000..855e6cc
--- /dev/null
@@ -0,0 +1,3 @@
+arm_softmmu_ss.add(when: [hvf, 'CONFIG_HVF'], if_true: files(
+  'hvf.c',
+))
index 25a02bf2769c2478bd44ae53e53304ecc5bee74a..50f152214afedd04fdb321d17a0ca76ef44c2a19 100644 (file)
@@ -60,5 +60,7 @@ arm_softmmu_ss.add(files(
   'psci.c',
 ))
 
+subdir('hvf')
+
 target_arch += {'arm': arm_ss}
 target_softmmu_arch += {'arm': arm_softmmu_ss}