mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
microvm: add second ioapic
Create second ioapic, route virtio-mmio IRQs to it, allow more virtio-mmio devices (24 instead of 8). Needs ACPI, enabled by default, can be turned off using -machine ioapic2=off Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Sergio Lopez <slp@redhat.com> Message-id: 20201203105423.10431-8-kraxel@redhat.com
This commit is contained in:
parent
e57e9ae799
commit
4d01b8994c
3 changed files with 57 additions and 9 deletions
|
@ -1124,7 +1124,7 @@ static void test_acpi_microvm_tcg(void)
|
|||
test_data data;
|
||||
|
||||
test_acpi_microvm_prepare(&data);
|
||||
test_acpi_one(" -machine microvm,acpi=on,rtc=off",
|
||||
test_acpi_one(" -machine microvm,acpi=on,ioapic2=off,rtc=off",
|
||||
&data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
@ -1135,7 +1135,7 @@ static void test_acpi_microvm_usb_tcg(void)
|
|||
|
||||
test_acpi_microvm_prepare(&data);
|
||||
data.variant = ".usb";
|
||||
test_acpi_one(" -machine microvm,acpi=on,usb=on,rtc=off",
|
||||
test_acpi_one(" -machine microvm,acpi=on,ioapic2=off,usb=on,rtc=off",
|
||||
&data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
@ -1146,7 +1146,7 @@ static void test_acpi_microvm_rtc_tcg(void)
|
|||
|
||||
test_acpi_microvm_prepare(&data);
|
||||
data.variant = ".rtc";
|
||||
test_acpi_one(" -machine microvm,acpi=on,rtc=on",
|
||||
test_acpi_one(" -machine microvm,acpi=on,ioapic2=off,rtc=on",
|
||||
&data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
@ -1158,7 +1158,7 @@ static void test_acpi_microvm_pcie_tcg(void)
|
|||
test_acpi_microvm_prepare(&data);
|
||||
data.variant = ".pcie";
|
||||
data.tcg_only = true; /* need constant host-phys-bits */
|
||||
test_acpi_one(" -machine microvm,acpi=on,rtc=off,pcie=on",
|
||||
test_acpi_one(" -machine microvm,acpi=on,ioapic2=off,rtc=off,pcie=on",
|
||||
&data);
|
||||
free_test_data(&data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue