diff options
| author | Sean Christopherson <[email protected]> | 2018-03-05 17:33:27 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2018-03-23 17:26:21 +0000 |
| commit | 9d1887ef3252a45f4e692525d04e23ce8091c17c (patch) | |
| tree | 82d2700fa857f56446dc28d5e9d0746818b25cd6 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | Merge tag 'kvm-ppc-fixes-4.16-3' of git://git.kernel.org/pub/scm/linux/kernel... (diff) | |
| download | kernel-9d1887ef3252a45f4e692525d04e23ce8091c17c.tar.gz kernel-9d1887ef3252a45f4e692525d04e23ce8091c17c.zip | |
KVM: nVMX: sync vmcs02 segment regs prior to vmx_set_cr0
Segment registers must be synchronized prior to any code that may
trigger a call to emulation_required()/guest_state_valid(), e.g.
vmx_set_cr0(). Because preparing vmcs02 writes segmentation fields
directly, i.e. doesn't use vmx_set_segment(), emulation_required
will not be re-evaluated when synchronizing the segment registers,
which can result in L0 incorrectly starting emulation of L2.
Fixes: 8665c3f97320 ("KVM: nVMX: initialize descriptor cache fields in prepare_vmcs02_full")
Signed-off-by: Sean Christopherson <[email protected]>
[Move all of prepare_vmcs02_full earlier, not just segment registers. - Paolo]
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
