2012-05-29 12:23:15 +04:00
|
|
|
obj-y += arm-semi.o
|
arm: qmp: add query-gic-capabilities interface
This patch add "query-gic-capabilities" but does not implement it. The
command is ARM-only. The command will return a list of GICCapability
structs that describes all GIC versions that current QEMU and system
support.
Libvirt is possibly the first consumer of this new command.
Before this patch, a libvirt user can successfully configure all kinds
of GIC devices for ARM guests, no matter whether current QEMU/kernel
supports them. If the specified GIC version/type is not supported, the
user will get an ambiguous "QEMU boot failure" error when trying to start
the VM. This is not user-friendly.
With this patch, libvirt should be able to query which type (and which
version) of GIC device is supported. Using this information, libvirt
can warn the user during configuration of guests when specified GIC
device type is not supported. Or better, we can just list those versions
that we support, and filter out the unsupported ones.
For example, if we got the query result:
{"return": [{"emulated": false, "version": 3, "kernel": true},
{"emulated": true, "version": 2, "kernel": false}]}
then it means that we support emulated GIC version 2 using:
qemu-system-aarch64 -M virt,accel=tcg,gic-version=2 ...
or KVM-accelerated GIC version 3 using:
qemu-system-aarch64 -M virt,accel=kvm,gic-version=3 ...
If we specify other explicit GIC versions rather than the above, QEMU
will not be able to boot.
The community is working on a more generic way to query these kinds of
information about valid values of machine properties. However, due to
the importance of supporting this specific use case, weecided to first
implement this ad-hoc one; then when the generic method is ready, we
can move on to that one smoothly.
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1458788142-17509-2-git-send-email-peterx@redhat.com
[PMM: tweaked commit message a bit; monitor.o is CONFIG_SOFTMMU only]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2016-03-30 19:27:24 +03:00
|
|
|
obj-$(CONFIG_SOFTMMU) += machine.o psci.o arch_dump.o monitor.o
|
2013-03-05 04:34:41 +04:00
|
|
|
obj-$(CONFIG_KVM) += kvm.o
|
2013-12-17 23:42:29 +04:00
|
|
|
obj-$(call land,$(CONFIG_KVM),$(call lnot,$(TARGET_AARCH64))) += kvm32.o
|
2013-12-17 23:42:30 +04:00
|
|
|
obj-$(call land,$(CONFIG_KVM),$(TARGET_AARCH64)) += kvm64.o
|
2013-09-13 21:25:53 +04:00
|
|
|
obj-$(call lnot,$(CONFIG_KVM)) += kvm-stub.o
|
2012-05-29 13:48:59 +04:00
|
|
|
obj-y += translate.o op_helper.o helper.o cpu.o
|
2018-03-02 13:45:41 +03:00
|
|
|
obj-y += neon_helper.o iwmmxt_helper.o vec_helper.o
|
2013-06-29 06:18:45 +04:00
|
|
|
obj-y += gdbstub.o
|
2013-12-17 23:42:32 +04:00
|
|
|
obj-$(TARGET_AARCH64) += cpu64.o translate-a64.o helper-a64.o gdbstub64.o
|
2013-12-17 23:42:25 +04:00
|
|
|
obj-y += crypto_helper.o
|
2016-10-27 18:10:07 +03:00
|
|
|
obj-$(CONFIG_SOFTMMU) += arm-powerctl.o
|
2018-05-18 19:48:08 +03:00
|
|
|
|
|
|
|
DECODETREE = $(SRC_PATH)/scripts/decodetree.py
|
|
|
|
|
|
|
|
target/arm/decode-sve.inc.c: $(SRC_PATH)/target/arm/sve.decode $(DECODETREE)
|
|
|
|
$(call quiet-command,\
|
|
|
|
$(PYTHON) $(DECODETREE) --decode disas_sve -o $@ $<,\
|
|
|
|
"GEN", $(TARGET_DIR)$@)
|
|
|
|
|
|
|
|
target/arm/translate-sve.o: target/arm/decode-sve.inc.c
|
2018-05-18 19:48:08 +03:00
|
|
|
obj-$(TARGET_AARCH64) += translate-sve.o sve_helper.o
|