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

2013-12-25 Thread Michael S. Tsirkin
On Wed, Dec 25, 2013 at 10:33:16PM +0100, Alexander Graf wrote: > > On 25.12.2013, at 20:20, Michael S. Tsirkin wrote: > > > On Wed, Dec 25, 2013 at 08:11:56PM +0100, Alexander Graf wrote: > >> > >> > >>> Am 23.12.2013 um 04:19 schrieb "Gabriel L. Somlo" : > >>> > >>> On Sun, Dec 22, 2013 at

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

2013-12-25 Thread Alexander Graf
On 25.12.2013, at 20:20, Michael S. Tsirkin wrote: > On Wed, Dec 25, 2013 at 08:11:56PM +0100, Alexander Graf wrote: >> >> >>> Am 23.12.2013 um 04:19 schrieb "Gabriel L. Somlo" : >>> >>> On Sun, Dec 22, 2013 at 11:21:00PM +0100, Laszlo Ersek wrote: > 2. Use "IRQNoFlags() { 5 }" with the

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

2013-12-25 Thread Michael S. Tsirkin
On Wed, Dec 25, 2013 at 08:11:56PM +0100, Alexander Graf wrote: > > > > Am 23.12.2013 um 04:19 schrieb "Gabriel L. Somlo" : > > > > On Sun, Dec 22, 2013 at 11:21:00PM +0100, Laszlo Ersek wrote: > >>>2. Use "IRQNoFlags() { 5 }" with the SMC (or any other > >>> number that isn't already

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

2013-12-25 Thread Alexander Graf
> Am 23.12.2013 um 04:19 schrieb "Gabriel L. Somlo" : > > On Sun, Dec 22, 2013 at 11:21:00PM +0100, Laszlo Ersek wrote: >>>2. Use "IRQNoFlags() { 5 }" with the SMC (or any other >>> number that isn't already allocated. >> >> I don't think there's anything left free: >> ... >> >> I gu

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

2013-12-25 Thread Michael S. Tsirkin
On Sun, Dec 22, 2013 at 10:34:56AM -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 v3] Add DSDT node for AppleSMC

2013-12-22 Thread Gabriel L. Somlo
On Sun, Dec 22, 2013 at 11:21:00PM +0100, Laszlo Ersek wrote: > > 2. Use "IRQNoFlags() { 5 }" with the SMC (or any other > >number that isn't already allocated. > > I don't think there's anything left free: >... > > I guess the "by the book" solution would be to really stop the FDC fr

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

2013-12-22 Thread Laszlo Ersek
On 12/22/13 18:14, Gabriel L. Somlo wrote: > On Sun, Dec 22, 2013 at 04:58:58PM +0100, Laszlo Ersek wrote: >> After this patch, ISA interrupt 6 is used by both "SMC" and "FDC0". The >> latter depends on the FDEN object, but FDEN is currently constant 1. >> >> Probably not a problem in practice (ie.

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

2013-12-22 Thread Gabriel L. Somlo
On Sun, Dec 22, 2013 at 04:58:58PM +0100, Laszlo Ersek wrote: > After this patch, ISA interrupt 6 is used by both "SMC" and "FDC0". The > latter depends on the FDEN object, but FDEN is currently constant 1. > > Probably not a problem in practice (ie. most users won't try to specify > both a floppy

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

2013-12-22 Thread Laszlo Ersek
On 12/22/13 16:34, 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 if the chip is pres

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

2013-12-22 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