Re: kvm-59 doesn't work

Anthony Liguori
2008-01-13T20:24:34Z

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?
>>>
>>>