Re: [PATCH v6 04/27] x86, boot: Move lldt/ltr out of 64bit code section

2012-12-18 Thread Yinghai Lu
On Sat, Dec 15, 2012 at 9:28 AM, Borislav Petkov wrote: > On Thu, Dec 13, 2012 at 02:01:58PM -0800, Yinghai Lu wrote: >> commit 08da5a2ca >> >> x86_64: Early segment setup for VT >> >> add lldt/ltr to clean more segments. >> >> Those code are put in code64, and it is using gdt that is only >>

Re: [PATCH v6 04/27] x86, boot: Move lldt/ltr out of 64bit code section

2012-12-18 Thread Yinghai Lu
On Sat, Dec 15, 2012 at 9:28 AM, Borislav Petkov b...@alien8.de wrote: On Thu, Dec 13, 2012 at 02:01:58PM -0800, Yinghai Lu wrote: commit 08da5a2ca x86_64: Early segment setup for VT add lldt/ltr to clean more segments. Those code are put in code64, and it is using gdt that is only

Re: [PATCH v6 04/27] x86, boot: Move lldt/ltr out of 64bit code section

2012-12-15 Thread Borislav Petkov
On Thu, Dec 13, 2012 at 02:01:58PM -0800, Yinghai Lu wrote: > commit 08da5a2ca > > x86_64: Early segment setup for VT > > add lldt/ltr to clean more segments. > > Those code are put in code64, and it is using gdt that is only > loaded from code32 path. > > That breaks booting with 64bit

Re: [PATCH v6 04/27] x86, boot: Move lldt/ltr out of 64bit code section

2012-12-15 Thread Borislav Petkov
On Thu, Dec 13, 2012 at 02:01:58PM -0800, Yinghai Lu wrote: commit 08da5a2ca x86_64: Early segment setup for VT add lldt/ltr to clean more segments. Those code are put in code64, and it is using gdt that is only loaded from code32 path. That breaks booting with 64bit bootloader

[PATCH v6 04/27] x86, boot: Move lldt/ltr out of 64bit code section

2012-12-13 Thread Yinghai Lu
commit 08da5a2ca x86_64: Early segment setup for VT add lldt/ltr to clean more segments. Those code are put in code64, and it is using gdt that is only loaded from code32 path. That breaks booting with 64bit bootloader that does not go through code32 path. It get at startup_64 directly,

[PATCH v6 04/27] x86, boot: Move lldt/ltr out of 64bit code section

2012-12-13 Thread Yinghai Lu
commit 08da5a2ca x86_64: Early segment setup for VT add lldt/ltr to clean more segments. Those code are put in code64, and it is using gdt that is only loaded from code32 path. That breaks booting with 64bit bootloader that does not go through code32 path. It get at startup_64 directly,