Re: [PATCH] x86: trim ram need to check if mtrr is there v3

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>
Cc: Andi Kleen <andi@...>, Yinghai Lu <Yinghai.Lu@...>, Jeremy Fitzhardinge <jeremy@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Friday, January 25, 2008 - 11:57 am

Ingo Molnar wrote:

For what it's worth, I have a set of code to do this, written in order 
to canonicalize and modify e820 data structures for memdisk.

The key to it is the observation that the e820-delivered (address, len, 
type) tuples isn't actually the data structure you want -- what you want 
is an ordered list of (address, type) tuples, where type may includes 
undefined (the e820 default type - i.e. unused, available address space).

In addition to the attached code, to do this right, we probably want a 
function to do filtering (only clobber entries of a specfic type, in 
this case type 1) as opposed to blind clobber; with an ordered array 
this is quite trivial.

	-hpa
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
x86.git: mtrr trimming removes all memory under kvm, Jeremy Fitzhardinge, (Thu Jan 24, 9:44 pm)
Re: x86.git: mtrr trimming removes all memory under kvm, H. Peter Anvin, (Thu Jan 24, 9:49 pm)
Re: [PATCH] x86: trim ram need to check if mtrr is there v2, Jeremy Fitzhardinge, (Fri Jan 25, 3:43 am)
Re: [PATCH] x86: trim ram need to check if mtrr is there v3, H. Peter Anvin, (Fri Jan 25, 11:57 am)
Re: [PATCH] x86: trim ram need to check if mtrr is there v3, Jeremy Fitzhardinge, (Fri Jan 25, 2:59 pm)
Re: [PATCH] x86: trim ram need to check if mtrr is there v3, Jeremy Fitzhardinge, (Fri Jan 25, 2:55 pm)
Re: [PATCH] x86: trim ram need to check if mtrr is there v3, Jeremy Fitzhardinge, (Fri Jan 25, 3:04 pm)
Re: [PATCH] x86: trim ram need to check if mtrr is there v3, Jeremy Fitzhardinge, (Fri Jan 25, 3:01 pm)
Re: [PATCH] x86: trim ram need to check if mtrr is there v3, Jeremy Fitzhardinge, (Fri Jan 25, 3:27 pm)
Re: [PATCH] x86: trim ram need to check if mtrr is there v3, Jeremy Fitzhardinge, (Fri Jan 25, 3:39 pm)
Re: [PATCH] x86: trim ram need to check if mtrr is there v2, H. Peter Anvin, (Fri Jan 25, 11:47 am)