qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCHv2 5/7] pseries: Move hash page table allocation


From: Alexey Kardashevskiy
Subject: Re: [Qemu-devel] [PATCHv2 5/7] pseries: Move hash page table allocation to reset time
Date: Tue, 9 Feb 2016 13:59:06 +1100
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

On 02/09/2016 01:12 PM, David Gibson wrote:
At the moment the size of the hash page table (HPT) is fixed based on the
maximum memory allowed to the guest.  As such, we allocate the table during
machine construction, and just clear it at reset.

However, we're planning to implement a PAPR extension allowing the hash
page table to be resized at runtime.  This will mean that on reset we want
to revert it to the default size.  It also means that when migrating, we
need to make sure the destination allocates an HPT of size matching the
host, since the guest could have changed it before the migration.

This patch replaces the spapr_alloc_htab() and spapr_reset_htab() functions
with a new spapr_reallocate_hpt() function.  This is called at reset and
inbound migration only, not during machine init any more.

Signed-off-by: David Gibson <address@hidden>

Patch reordering did not help much but "git difftool HEAD^^^ HEAD^^ -- hw/ppc/spapr.c" did :)


Reviewed-by: Alexey Kardashevskiy <address@hidden>





--
Alexey



reply via email to

[Prev in Thread] Current Thread [Next in Thread]