hw/loongarch/virt: Enable extioi virt extension

This patch adds a new board attribute 'v-eiointc'.
A value of true enables the virt extended I/O interrupt controller.
VMs working in kvm mode have 'v-eiointc' enabled by default.

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <20240528083855.1912757-4-gaosong@loongson.cn>
This commit is contained in:
Song Gao 2024-05-28 16:38:55 +08:00
parent f2e61edb29
commit 2b284fa9ea
3 changed files with 87 additions and 3 deletions

View file

@ -50,6 +50,7 @@ struct LoongArchVirtMachineState {
Notifier machine_done;
Notifier powerdown_notifier;
OnOffAuto acpi;
OnOffAuto veiointc;
char *oem_id;
char *oem_table_id;
DeviceState *acpi_ged;