diff options
| author | Stefan Hajnoczi <stefanha@redhat.com> | 2025-02-26 07:35:55 +0800 |
|---|---|---|
| committer | Stefan Hajnoczi <stefanha@redhat.com> | 2025-02-26 07:35:56 +0800 |
| commit | 50d38b8921837827ea397d4b20c8bc5efe186e53 (patch) | |
| tree | 6e420a1c1acd5edafa3f89b4b945ece9cd933715 /include | |
| parent | b69801dd6b1eb4d107f7c2f643adf0a4e3ec9124 (diff) | |
| parent | db369c11c90b35f3a6ab59ad78564aea5b30c3da (diff) | |
| download | focaccia-qemu-50d38b8921837827ea397d4b20c8bc5efe186e53.tar.gz focaccia-qemu-50d38b8921837827ea397d4b20c8bc5efe186e53.zip | |
Merge tag 'pull-loongarch-20250225' of https://gitlab.com/bibo-mao/qemu into staging
loongarch queue # -----BEGIN PGP SIGNATURE----- # # iHUEABYKAB0WIQQNhkKjomWfgLCz0aQfewwSUazn0QUCZ7156AAKCRAfewwSUazn # 0T2AAQDW4zr8ECab5FH+udeCtGOv2I6gtTT8CwjwhCdHNzsAAgEAxi0JJOjTIMrK # z657Q4MTeKbTyzi48niXBbI9hKvyhQM= # =g4Wx # -----END PGP SIGNATURE----- # gpg: Signature made Tue 25 Feb 2025 16:06:00 HKT # gpg: using EDDSA key 0D8642A3A2659F80B0B3D1A41F7B0C1251ACE7D1 # gpg: Good signature from "bibo mao <maobibo@loongson.cn>" [unknown] # gpg: WARNING: This key is not certified with a trusted signature! # gpg: There is no indication that the signature belongs to the owner. # Primary key fingerprint: 7044 3A00 19C0 E97A 31C7 13C4 8E86 8FB7 A176 9D4C # Subkey fingerprint: 0D86 42A3 A265 9F80 B0B3 D1A4 1F7B 0C12 51AC E7D1 * tag 'pull-loongarch-20250225' of https://gitlab.com/bibo-mao/qemu: target/loongarch: Enable virtual extioi feature target/loongarch: Add kvm steal time feature detection target/loongarch: Add vCPU property for kvm steal time feature target/loongarch: Enable paravirt ipi feature target/loongarch: Add paravirt ipi feature detection target/loongarch: Add vCPU property for paravirt ipi feature target/loongarch: Move kvm specified vCPU property to kvm directory target/loongarch: Add post init function for kvm mode target/loongarch: Correct maximum physical address in KVM mode target/loongarch/gdbstub: Fix gdbstub incorrectly handling some registers target/loongarch: fix vcpu reset command word issue Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/loongarch/virt.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/hw/loongarch/virt.h b/include/hw/loongarch/virt.h index 661efae61d..2e7cdfaef0 100644 --- a/include/hw/loongarch/virt.h +++ b/include/hw/loongarch/virt.h @@ -68,4 +68,13 @@ struct LoongArchVirtMachineState { OBJECT_DECLARE_SIMPLE_TYPE(LoongArchVirtMachineState, LOONGARCH_VIRT_MACHINE) void virt_acpi_setup(LoongArchVirtMachineState *lvms); void virt_fdt_setup(LoongArchVirtMachineState *lvms); + +static inline bool virt_is_veiointc_enabled(LoongArchVirtMachineState *lvms) +{ + if (lvms->veiointc == ON_OFF_AUTO_OFF) { + return false; + } + return true; +} + #endif |