[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 15/26] Virtual hash page table handling on pSeri
From: |
Alexander Graf |
Subject: |
[Qemu-devel] Re: [PATCH 15/26] Virtual hash page table handling on pSeries machine' |
Date: |
Thu, 17 Mar 2011 08:35:24 +0100 |
On 17.03.2011, at 02:03, David Gibson <address@hidden> wrote:
> On Wed, Mar 16, 2011 at 04:03:47PM +0100, Alexander Graf wrote:
>> On 03/16/2011 05:56 AM, David Gibson wrote:
> [snip]
>>> @@ -248,6 +261,16 @@ static void ppc_spapr_init(ram_addr_t ram_size,
>>> ram_offset = qemu_ram_alloc(NULL, "ppc_spapr.ram", ram_size);
>>> cpu_register_physical_memory(0, ram_size, ram_offset);
>>>
>>> + /* allocate hash page table */
>>> + htab_size = 1ULL<< (pteg_shift + 7);
>>
>> Linux makes the htab size depend on the provided amount of ram.
>> Shouldn't we do the same?
>
> Well... maybe. In fact the guidelines for hash allocation tend to be
> rather larger than really necessary for a Linux guest, so generally
> 16mb for the hash will be fine. This does also correspond to the
> allocation for the guest hash we use in our experimental kvm code
> (making the hash exactly one hugepage makes the necessary contiguous
> allocation easier).
Hrm - ok :).
Alex
- [Qemu-devel] [PATCH 07/26] Clean up slb_lookup() function, (continued)
- [Qemu-devel] [PATCH 07/26] Clean up slb_lookup() function, David Gibson, 2011/03/16
- [Qemu-devel] [PATCH 08/26] Parse SDR1 on mtspr instead of at translate time, David Gibson, 2011/03/16
- [Qemu-devel] [PATCH 09/26] Use "hash" more consistently in ppc mmu code, David Gibson, 2011/03/16
- [Qemu-devel] [PATCH 10/26] Better factor the ppc hash translation path, David Gibson, 2011/03/16
- [Qemu-devel] [PATCH 06/26] Correct ppc popcntb logic, implement popcntw and popcntd, David Gibson, 2011/03/16
- [Qemu-devel] [PATCH 11/26] Support 1T segments on ppc, David Gibson, 2011/03/16
- [Qemu-devel] [PATCH 12/26] Add POWER7 support for ppc, David Gibson, 2011/03/16
- [Qemu-devel] [PATCH 15/26] Virtual hash page table handling on pSeries machine, David Gibson, 2011/03/16
- [Qemu-devel] [PATCH 14/26] Implement the bus structure for PAPR virtual IO, David Gibson, 2011/03/16
- [Qemu-devel] [PATCH 13/26] Start implementing pSeries logical partition machine, David Gibson, 2011/03/16
- [Qemu-devel] [PATCH 16/26] Implement hcall based RTAS for pSeries machines, David Gibson, 2011/03/16