Re: [PATCH 06/10] KVM: x86: do not load vmcs12 pages while still in SMM

2018-07-31 Thread Paolo Bonzini
On 30/07/2018 21:27, Jim Mattson wrote: > On Sat, Jul 28, 2018 at 4:10 PM, Paolo Bonzini wrote: >> If the vCPU enters system management mode while running a nested guest, >> RSM starts processing the vmentry while still in SMM. In that case, >> however, the pages pointed to by the vmcs12 might be

Re: [PATCH 06/10] KVM: x86: do not load vmcs12 pages while still in SMM

2018-07-30 Thread Jim Mattson
On Sat, Jul 28, 2018 at 4:10 PM, Paolo Bonzini wrote: > If the vCPU enters system management mode while running a nested guest, > RSM starts processing the vmentry while still in SMM. In that case, > however, the pages pointed to by the vmcs12 might be incorrectly > loaded from SMRAM. To avoid t

[PATCH 06/10] KVM: x86: do not load vmcs12 pages while still in SMM

2018-07-28 Thread Paolo Bonzini
If the vCPU enters system management mode while running a nested guest, RSM starts processing the vmentry while still in SMM. In that case, however, the pages pointed to by the vmcs12 might be incorrectly loaded from SMRAM. To avoid this, delay the handling of the pages until just before the next