Re: [PATCH] spapr: Handle HPT allocation failure in nested guest

2020-09-14 Thread David Gibson
On Fri, Sep 11, 2020 at 01:31:23AM -0300, Fabiano Rosas wrote: > The nested KVM code does not yet support HPT guests. Calling the > KVM_CAP_PPC_ALLOC_HTAB ioctl currently leads to KVM setting the guest > as HPT and erroneously executing code in L1 that should only run in > hypervisor mode, leading

Re: [PATCH] spapr: Handle HPT allocation failure in nested guest

2020-09-11 Thread Fabiano Rosas
Fabiano Rosas writes: > The nested KVM code does not yet support HPT guests. Calling the > KVM_CAP_PPC_ALLOC_HTAB ioctl currently leads to KVM setting the guest > as HPT and erroneously executing code in L1 that should only run in > hypervisor mode, leading to an exception in the L1 vcpu thread

Re: [PATCH] spapr: Handle HPT allocation failure in nested guest

2020-09-11 Thread Greg Kurz
On Fri, 11 Sep 2020 01:31:23 -0300 Fabiano Rosas wrote: > The nested KVM code does not yet support HPT guests. Calling the > KVM_CAP_PPC_ALLOC_HTAB ioctl currently leads to KVM setting the guest > as HPT and erroneously executing code in L1 that should only run in > hypervisor mode, leading to

[PATCH] spapr: Handle HPT allocation failure in nested guest

2020-09-10 Thread Fabiano Rosas
The nested KVM code does not yet support HPT guests. Calling the KVM_CAP_PPC_ALLOC_HTAB ioctl currently leads to KVM setting the guest as HPT and erroneously executing code in L1 that should only run in hypervisor mode, leading to an exception in the L1 vcpu thread when it enters the nested guest.