Re: x86.git: mtrr trimming removes all memory under kvm

2008-01-25 Thread Andi Kleen
Yinghai Lu <[EMAIL PROTECTED]> writes: > > + /* Doesn't apply to memory < 4GB */ > + if (end_pfn <= (0xUL >> PAGE_SHIFT)) > + return 0; I don't think this makes sense to move outside the AMD workaround because the normal MTRRs don't have an implicit hidden 4GB semanti

Re: x86.git: mtrr trimming removes all memory under kvm

2008-01-24 Thread Yinghai Lu
On Thursday 24 January 2008 05:49:00 pm H. Peter Anvin wrote: > Jeremy Fitzhardinge wrote: > > When booting a current x86.git kernel under kvm, I get this: > > > > (qemu) Linux version 2.6.24-rc8 ([EMAIL PROTECTED]) (gcc version 4.1.2 > > 20070925 > > (Red Hat 4.1.2-33)) #1928 SMP PREEMPT Thu Ja

Re: x86.git: mtrr trimming removes all memory under kvm

2008-01-24 Thread Yinghai Lu
On Thursday 24 January 2008 05:49:00 pm H. Peter Anvin wrote: > Jeremy Fitzhardinge wrote: > > When booting a current x86.git kernel under kvm, I get this: > > > > (qemu) Linux version 2.6.24-rc8 ([EMAIL PROTECTED]) (gcc version 4.1.2 > > 20070925 > > (Red Hat 4.1.2-33)) #1928 SMP PREEMPT Thu Ja

Re: x86.git: mtrr trimming removes all memory under kvm

2008-01-24 Thread H. Peter Anvin
Jeremy Fitzhardinge wrote: When booting a current x86.git kernel under kvm, I get this: (qemu) Linux version 2.6.24-rc8 ([EMAIL PROTECTED]) (gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)) #1928 SMP PREEMPT Thu Jan 24 17:09:04 PST 2008 early_ioremap_init() BIOS-provided physical RAM map: BIOS-e

x86.git: mtrr trimming removes all memory under kvm

2008-01-24 Thread Jeremy Fitzhardinge
When booting a current x86.git kernel under kvm, I get this: (qemu) Linux version 2.6.24-rc8 ([EMAIL PROTECTED]) (gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)) #1928 SMP PREEMPT Thu Jan 24 17:09:04 PST 2008 early_ioremap_init() BIOS-provided physical RAM map: BIOS-e820: - 0