qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 13/13] microvm/acpi: use GSI 16-23 for virtio


From: Konrad Rzeszutek Wilk
Subject: Re: [PATCH 13/13] microvm/acpi: use GSI 16-23 for virtio
Date: Fri, 20 Mar 2020 11:30:16 -0400
User-agent: Mutt/1.9.1 (2017-09-22)

On Thu, Mar 19, 2020 at 09:01:17AM +0100, Gerd Hoffmann wrote:
> With ACPI enabled and IO-APIC being properly declared in the ACPI tables
> we can use interrupt lines 16-23 for virtio and avoid shared interrupts.

7 interrupt lines? Is there a specific requirements of which
ones should be assigned to what device?

Or perhaps - could you include /proc/interrupts in the commit if that is OK?

> 
> With acpi disabled we continue to use lines 8-15.
> 
> Signed-off-by: Gerd Hoffmann <address@hidden>
> ---
>  hw/i386/microvm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/i386/microvm.c b/hw/i386/microvm.c
> index 834b10aee0a2..139181daed06 100644
> --- a/hw/i386/microvm.c
> +++ b/hw/i386/microvm.c
> @@ -122,7 +122,7 @@ static void microvm_devices_init(MicrovmMachineState *mms)
>  
>      kvmclock_create();
>  
> -    mms->virtio_irq_base = 8;
> +    mms->virtio_irq_base = acpi_enabled ? 16 : 8;
>      for (i = 0; i < VIRTIO_NUM_TRANSPORTS; i++) {
>          sysbus_create_simple("virtio-mmio",
>                               VIRTIO_MMIO_BASE + i * 512,
> -- 
> 2.18.2
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]