Re: [RFC PATCH 3/3] spapr: implement nested-hv support for the TCG virtual hypervisor

2022-02-14 Thread Nicholas Piggin
Excerpts from Nicholas Piggin's message of February 15, 2022 9:28 am: > Excerpts from Cédric Le Goater's message of February 15, 2022 4:31 am: >> On 2/10/22 07:53, Nicholas Piggin wrote: >>> +void spapr_enter_nested(PowerPCCPU *cpu) >>> +{ >>> +SpaprMachineState *spapr =

Re: [RFC PATCH 3/3] spapr: implement nested-hv support for the TCG virtual hypervisor

2022-02-14 Thread Nicholas Piggin
Excerpts from Cédric Le Goater's message of February 15, 2022 4:31 am: > On 2/10/22 07:53, Nicholas Piggin wrote: >> +void cpu_ppc_hdecr_init (CPUPPCState *env) >> +{ >> +PowerPCCPU *cpu = env_archcpu(env); >> + >> +assert(env->tb_env->hdecr_timer == NULL); >> + >> +

Re: [RFC PATCH 3/3] spapr: implement nested-hv support for the TCG virtual hypervisor

2022-02-14 Thread Nicholas Piggin
Excerpts from Fabiano Rosas's message of February 15, 2022 12:32 am: > Nicholas Piggin writes: > >> This implements the nested-hv hcall API for spapr under TCG. >> It's still a bit rough around the edges, concept seems to work. >> >> Some HV exceptions can be raised now in the TCG spapr machine

Re: [RFC PATCH 3/3] spapr: implement nested-hv support for the TCG virtual hypervisor

2022-02-14 Thread Cédric Le Goater
On 2/10/22 07:53, Nicholas Piggin wrote: This implements the nested-hv hcall API for spapr under TCG. It's still a bit rough around the edges, concept seems to work. Some HV exceptions can be raised now in the TCG spapr machine when running a nested guest. The main ones are the lev==1 syscall,

Re: [RFC PATCH 3/3] spapr: implement nested-hv support for the TCG virtual hypervisor

2022-02-14 Thread Fabiano Rosas
Nicholas Piggin writes: > This implements the nested-hv hcall API for spapr under TCG. > It's still a bit rough around the edges, concept seems to work. > > Some HV exceptions can be raised now in the TCG spapr machine when > running a nested guest. The main ones are the lev==1 syscall, the >

[RFC PATCH 3/3] spapr: implement nested-hv support for the TCG virtual hypervisor

2022-02-09 Thread Nicholas Piggin
This implements the nested-hv hcall API for spapr under TCG. It's still a bit rough around the edges, concept seems to work. Some HV exceptions can be raised now in the TCG spapr machine when running a nested guest. The main ones are the lev==1 syscall, the hdecr, hdsi and hisi, and h_virt