* [Qemu-devel] Why *.dsl files exist in qemu project?
@ 2015-05-26 11:06 Zhi Yong Wu
2015-05-26 11:13 ` Paolo Bonzini
0 siblings, 1 reply; 3+ messages in thread
From: Zhi Yong Wu @ 2015-05-26 11:06 UTC (permalink / raw)
To: QEMU Developers, Paolo Bonzini
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
--
Regards,
Zhi Yong Wu
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Why *.dsl files exist in qemu project?
2015-05-26 11:06 [Qemu-devel] Why *.dsl files exist in qemu project? Zhi Yong Wu
@ 2015-05-26 11:13 ` Paolo Bonzini
2015-05-26 11:17 ` Zhi Yong Wu
0 siblings, 1 reply; 3+ messages in thread
From: Paolo Bonzini @ 2015-05-26 11:13 UTC (permalink / raw)
To: Zhi Yong Wu, QEMU Developers
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] Why *.dsl files exist in qemu project?
2015-05-26 11:13 ` Paolo Bonzini
@ 2015-05-26 11:17 ` Zhi Yong Wu
0 siblings, 0 replies; 3+ messages in thread
From: Zhi Yong Wu @ 2015-05-26 11:17 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: QEMU Developers
On Tue, May 26, 2015 at 7:13 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
>
> 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.
Cool, it is also what i thought, the common stuff exist in qemu for
all bios related projects.
Thanks.
>
> Paolo
--
Regards,
Zhi Yong Wu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-26 11:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-26 11:06 [Qemu-devel] Why *.dsl files exist in qemu project? Zhi Yong Wu
2015-05-26 11:13 ` Paolo Bonzini
2015-05-26 11:17 ` Zhi Yong Wu
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.