qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [Linaro-acpi] [RFC PATCH 0/7] hw/arm/virt: Dynamic ACPI


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [Linaro-acpi] [RFC PATCH 0/7] hw/arm/virt: Dynamic ACPI v5.1 table generation
Date: Wed, 12 Nov 2014 12:48:27 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0


On 12/11/2014 12:34, Christoffer Dall wrote:
> AFAIU ACPI already has a method for doing this

It's not defined in the spec.  QEMU defines a bunch of registers to do
that, and provides AML that works with those registers.

While these registers can be separated from the ACPI code in QEMU...

> and I speculate that there is some IRQ
> assigned to an ACPI event that causes some AML code to be interpreted by
> your OS.

... QEMU does exactly this, it uses the "general purpose event" (GPE)
mechanism to trigger the parsing of the AML.  When you hot-plug/unplug a
CPU or memory, an SCI (system control interrupt - the ACPI IRQ) is
triggered in the guest and that's not entirely disconnected from ACPI.

Perhaps you could treat it as a shared level-triggered interrupt in DT?
 I don't know.

> Wouldn't it be a matter of QEMU putting the right AML table
> fragments in place to wire this up then?

Yes.

Paolo



reply via email to

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