From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: kvm-59 doesn't work Date: Sun, 13 Jan 2008 14:24:34 -0600 Message-ID: <478A7382.5040406@codemonkey.ws> References: <20080113162751.GA20663@basil.nowhere.org> <478A3F87.6040509@qumranet.com> <478A47E4.8020109@codemonkey.ws> <478A473E.5090907@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Andi Kleen , Avi Kivity To: Izik Eidus Return-path: In-Reply-To: <478A473E.5090907-atKUWr5tajBWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Izik Eidus wrote: > Anthony Liguori wrote: >> Avi Kivity wrote: >>> Andi Kleen wrote: >>> >>>> When I try my 64bit kernel with -kernel ... on kvm-59 I get before >>>> the kernel outputs anything: >>>> >>>> >>> >>> Yes, I think -kernel is broken. >>> >> >> If you are using a guest with more than 3.75GB or so. The >> load_kernel function uses phys_ram_base + addr and that assumption is >> violated in KVM with guests > ~3.75GB of memory. We either need to >> allocate memory for the hole and never touch it or change load_kernel >> to use cpu_physical_memory_rw. I know we discussed this before but I >> don't remember if we came to a consensus about what the correct fix is? >> > we can do munmap on the pci hole memory area, > btw Anthony virtio will need this too right? Yup. I don't think you want to munmap memory allocated by glibc. I think a better thing to do would be to madvise(MADV_DONTNEED) although I don't think it's strictly needed. If you never touch the memory, then does it really matter? Regards, Anthony Liguori >> Regards, >> >> Anthony Liguori >>> Izik? >>> >>> >> > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace