Re: [Qemu-devel] [PATCH] qemu: x86: report lapic version as 0x14 instead of 0x11

2014-03-05 Thread Michael S. Tsirkin
On Sat, Mar 01, 2014 at 07:17:07PM -0500, Gabriel L. Somlo wrote: > On Sat, Mar 01, 2014 at 03:46:22PM +0100, Paolo Bonzini wrote: > > Il 28/02/2014 20:14, Gabriel L. Somlo ha scritto: > > >Some guests (e.g. 0S X) insist on a minimum lapic version of 0x14. > > >This patch bumps the emulated lapic v

Re: [Qemu-devel] [PATCH] qemu: x86: report lapic version as 0x14 instead of 0x11

2014-03-02 Thread Michael S. Tsirkin
On Sun, Mar 02, 2014 at 04:31:12PM +0200, Michael S. Tsirkin wrote: > On Sun, Mar 02, 2014 at 09:56:50AM +0100, Paolo Bonzini wrote: > > Il 02/03/2014 01:17, Gabriel L. Somlo ha scritto: > > >Although, on KVM, it's simply hardcoded to 0x14 rather than exposing to > > >the guest whatever the host CP

Re: [Qemu-devel] [PATCH] qemu: x86: report lapic version as 0x14 instead of 0x11

2014-03-02 Thread Michael S. Tsirkin
On Sun, Mar 02, 2014 at 09:56:50AM +0100, Paolo Bonzini wrote: > Il 02/03/2014 01:17, Gabriel L. Somlo ha scritto: > >Although, on KVM, it's simply hardcoded to 0x14 rather than exposing to > >the guest whatever the host CPU's apic version happens to be, or > >trying to match it to the CPU model: >

Re: [Qemu-devel] [PATCH] qemu: x86: report lapic version as 0x14 instead of 0x11

2014-03-02 Thread Paolo Bonzini
Il 02/03/2014 01:17, Gabriel L. Somlo ha scritto: Although, on KVM, it's simply hardcoded to 0x14 rather than exposing to the guest whatever the host CPU's apic version happens to be, or trying to match it to the CPU model: [somlo@foober kvm]$ grep -i version arch/x86/kvm/lapic.c ... /* 14 is t

Re: [Qemu-devel] [PATCH] qemu: x86: report lapic version as 0x14 instead of 0x11

2014-03-01 Thread Gabriel L. Somlo
On Sat, Mar 01, 2014 at 03:46:22PM +0100, Paolo Bonzini wrote: > Il 28/02/2014 20:14, Gabriel L. Somlo ha scritto: > >Some guests (e.g. 0S X) insist on a minimum lapic version of 0x14. > >This patch bumps the emulated lapic version to 0x14 to accomodate that. > > > >Signed-off-by: Gabriel L. Somlo

Re: [Qemu-devel] [PATCH] qemu: x86: report lapic version as 0x14 instead of 0x11

2014-03-01 Thread Paolo Bonzini
Il 28/02/2014 20:14, Gabriel L. Somlo ha scritto: Some guests (e.g. 0S X) insist on a minimum lapic version of 0x14. This patch bumps the emulated lapic version to 0x14 to accomodate that. Signed-off-by: Gabriel L. Somlo --- Along with the TCG ioapic polarity fix, this allows me to boot OS X w

Re: [Qemu-devel] [PATCH] qemu: x86: report lapic version as 0x14 instead of 0x11

2014-02-28 Thread Alexander Graf
Gabriel L. Somlo wrote: > On Sat, Mar 01, 2014 at 11:44:33AM +0800, Alexander Graf wrote: > >> Deja vu :). Should we really set this to thd least compatible version or >> rather to a current one that resembles roughly what we support? Otherwise >> patches like this will come up for every new o

Re: [Qemu-devel] [PATCH] qemu: x86: report lapic version as 0x14 instead of 0x11

2014-02-28 Thread Gabriel L. Somlo
On Sat, Mar 01, 2014 at 11:44:33AM +0800, Alexander Graf wrote: > Deja vu :). Should we really set this to thd least compatible version or > rather to a current one that resembles roughly what we support? Otherwise > patches like this will come up for every new osx release. > > What is the versi

Re: [Qemu-devel] [PATCH] qemu: x86: report lapic version as 0x14 instead of 0x11

2014-02-28 Thread Alexander Graf
> Am 01.03.2014 um 03:14 schrieb "Gabriel L. Somlo" : > > Some guests (e.g. 0S X) insist on a minimum lapic version of 0x14. > This patch bumps the emulated lapic version to 0x14 to accomodate that. > > Signed-off-by: Gabriel L. Somlo > --- > > Along with the TCG ioapic polarity fix, this all

[Qemu-devel] [PATCH] qemu: x86: report lapic version as 0x14 instead of 0x11

2014-02-28 Thread Gabriel L. Somlo
Some guests (e.g. 0S X) insist on a minimum lapic version of 0x14. This patch bumps the emulated lapic version to 0x14 to accomodate that. Signed-off-by: Gabriel L. Somlo --- Along with the TCG ioapic polarity fix, this allows me to boot OS X without KVM acceleration. I dug around the Intel doc