mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
target/ppc/spapr: Enable H_PAGE_INIT in-kernel handling
The H_CALL H_PAGE_INIT can be used to zero or copy a page of guest memory. Enable the in-kernel H_PAGE_INIT handler. The in-kernel handler takes half the time to complete compared to handling the H_CALL in userspace. Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com> Message-Id: <20190306060608.19935-1-sjitindarsingh@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
e075623aa5
commit
68f9f70841
3 changed files with 13 additions and 0 deletions
|
@ -2044,6 +2044,11 @@ void kvmppc_enable_clear_ref_mod_hcalls(void)
|
|||
kvmppc_enable_hcall(kvm_state, H_CLEAR_MOD);
|
||||
}
|
||||
|
||||
void kvmppc_enable_h_page_init(void)
|
||||
{
|
||||
kvmppc_enable_hcall(kvm_state, H_PAGE_INIT);
|
||||
}
|
||||
|
||||
void kvmppc_set_papr(PowerPCCPU *cpu)
|
||||
{
|
||||
CPUState *cs = CPU(cpu);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue