From: Paolo Bonzini <pbonzini@redhat.com>
To: Zhi Yong Wu <zwu.kernel@gmail.com>,
QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Why *.dsl files exist in qemu project?
Date: Tue, 26 May 2015 13:13:09 +0200 [thread overview]
Message-ID: <55645545.7080101@redhat.com> (raw)
In-Reply-To: <CAEH94Li00UYx28A_EZKeixXtrpsYBCeAFnQ-vjz3F_GVf7A+bg@mail.gmail.com>
On 26/05/2015 13:06, Zhi Yong Wu wrote:
> HI,
>
> Does anyone know why these *.dsl files exist in qemu project? Since
> these files are used to define some hardware resource and operation
> methods tables, i thought that they should be in the bios related
> project, right?
>
> $ls -l hw/i386/*.dsl
> -rw-rw-r-- 1 admin admin 3872 May 26 10:43 hw/i386/acpi-dsdt-cpu-hotplug.dsl
> -rw-rw-r-- 1 admin admin 1470 May 26 10:43 hw/i386/acpi-dsdt-dbug.dsl
> -rw-rw-r-- 1 admin admin 11284 May 26 10:43 hw/i386/acpi-dsdt.dsl
> -rw-rw-r-- 1 admin admin 1673 May 26 10:43 hw/i386/acpi-dsdt-hpet.dsl
> -rw-rw-r-- 1 admin admin 3682 May 26 10:43 hw/i386/acpi-dsdt-isa.dsl
> -rw-rw-r-- 1 admin admin 3826 May 26 10:43 hw/i386/acpi-dsdt-pci-crs.dsl
> -rw-rw-r-- 1 admin admin 16347 May 26 10:43 hw/i386/q35-acpi-dsdt.dsl
> -rw-rw-r-- 1 admin admin 2948 May 26 10:43 hw/i386/ssdt-mem.dsl
> -rw-rw-r-- 1 admin admin 10677 May 26 10:43 hw/i386/ssdt-misc.dsl
> -rw-rw-r-- 1 admin admin 3490 May 26 10:43 hw/i386/ssdt-pcihp.dsl
> -rw-rw-r-- 1 admin admin 2351 May 26 10:43 hw/i386/ssdt-proc.dsl
These describe the hardware, which changes as QEMU gets new abilities.
So QEMU is exporting the ACPI tables to the firmware. The firmware
reads them.
This eliminates code duplication: for example OVMF, SeaBIOS, CoreBoot
and now qboot all can use the same ACPI tables and only implement a very
small loader (~100 lines of code) based on fw_cfg.
Paolo
next prev parent reply other threads:[~2015-05-26 11:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-26 11:06 [Qemu-devel] Why *.dsl files exist in qemu project? Zhi Yong Wu
2015-05-26 11:13 ` Paolo Bonzini [this message]
2015-05-26 11:17 ` Zhi Yong Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55645545.7080101@redhat.com \
--to=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=zwu.kernel@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.