[PATCH v2 0/2] spapr: Make the nested code TCG only

Fabiano Rosas posted 2 patches 3 years, 10 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220325221113.255834-1-farosas@linux.ibm.com
Test checkpatch passed
Maintainers: "Cédric Le Goater" <clg@kaod.org>, Daniel Henrique Barboza <danielhb413@gmail.com>, David Gibson <david@gibson.dropbear.id.au>, Greg Kurz <groug@kaod.org>
hw/ppc/spapr_hcall.c | 74 ++++++++++++++++++++++++++------------------
1 file changed, 44 insertions(+), 30 deletions(-)
[PATCH v2 0/2] spapr: Make the nested code TCG only
Posted by Fabiano Rosas 3 years, 10 months ago
The spapr virtual hypervisor implementation of the nested KVM API
depends on the first level guest to be emulated by TCG. So move the
whole code under CONFIG_TCG.

v2:

- Created hypercall_register_nested instead of reusing
  hypercall_register_softmmu;

- Rearranged the ifdef a bit to keep the hypercall_register_*
  functions closer;

- Dropped the more paranoid patch that checked for KVM at every
  call. I couldn't convince myself anymore that it was necessary.

v1:
https://lists.nongnu.org/archive/html/qemu-ppc/2022-03/msg00412.html

Fabiano Rosas (2):
  spapr: Move hypercall_register_softmmu
  spapr: Move nested KVM hypercalls under a TCG only config.

 hw/ppc/spapr_hcall.c | 74 ++++++++++++++++++++++++++------------------
 1 file changed, 44 insertions(+), 30 deletions(-)

-- 
2.35.1
Re: [PATCH v2 0/2] spapr: Make the nested code TCG only
Posted by Daniel Henrique Barboza 3 years, 9 months ago
Queued in gitlab.com/danielhb/qemu/tree/ppc-next. Thanks,


Daniel

On 3/25/22 19:11, Fabiano Rosas wrote:
> The spapr virtual hypervisor implementation of the nested KVM API
> depends on the first level guest to be emulated by TCG. So move the
> whole code under CONFIG_TCG.
> 
> v2:
> 
> - Created hypercall_register_nested instead of reusing
>    hypercall_register_softmmu;
> 
> - Rearranged the ifdef a bit to keep the hypercall_register_*
>    functions closer;
> 
> - Dropped the more paranoid patch that checked for KVM at every
>    call. I couldn't convince myself anymore that it was necessary.
> 
> v1:
> https://lists.nongnu.org/archive/html/qemu-ppc/2022-03/msg00412.html
> 
> Fabiano Rosas (2):
>    spapr: Move hypercall_register_softmmu
>    spapr: Move nested KVM hypercalls under a TCG only config.
> 
>   hw/ppc/spapr_hcall.c | 74 ++++++++++++++++++++++++++------------------
>   1 file changed, 44 insertions(+), 30 deletions(-)
>