Re: [Qemu-devel] [PATCH v2] Add DSDT node for AppleSMC

2013-12-22 Thread Gabriel L. Somlo
On Fri, Dec 20, 2013 at 10:38:30PM +0100, Igor Mammedov wrote: > > +Device (SMC) { > > +Name(_HID, EisaId("APP0001")) > > +/* _STA will be patched to 0x0B if AppleSMC is present */ > > +ACPI_EXTRACT_NAME_WORD_CONST CONCAT_SYM(SMC_PFX, smc_sta) > typically dynamic variabl

Re: [Qemu-devel] [PATCH v2] Add DSDT node for AppleSMC

2013-12-22 Thread Michael S. Tsirkin
On Fri, Dec 20, 2013 at 03:52:24PM -0500, Gabriel L. Somlo wrote: > AppleSMC (-device isa-applesmc) is required to boot OS X guests. > OS X expects a SMC node to be present in the ACPI DSDT. This patch > adds a SMC node to the DSDT, and dynamically patches the return value > of SMC._STA to either 0

Re: [Qemu-devel] [PATCH v2] Add DSDT node for AppleSMC

2013-12-20 Thread Igor Mammedov
On Fri, 20 Dec 2013 15:52:24 -0500 "Gabriel L. Somlo" wrote: > AppleSMC (-device isa-applesmc) is required to boot OS X guests. > OS X expects a SMC node to be present in the ACPI DSDT. This patch > adds a SMC node to the DSDT, and dynamically patches the return value > of SMC._STA to either 0x0B

[Qemu-devel] [PATCH v2] Add DSDT node for AppleSMC

2013-12-20 Thread Gabriel L. Somlo
AppleSMC (-device isa-applesmc) is required to boot OS X guests. OS X expects a SMC node to be present in the ACPI DSDT. This patch adds a SMC node to the DSDT, and dynamically patches the return value of SMC._STA to either 0x0B if the chip is present, or otherwise to 0x00, before booting the guest