diff options
author | 2018-03-05 09:33:27 -0800 | |
---|---|---|
committer | 2018-03-23 18:26:21 +0100 | |
commit | 9d1887ef3252a45f4e692525d04e23ce8091c17c (patch) | |
tree | 82d2700fa857f56446dc28d5e9d0746818b25cd6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'kvm-ppc-fixes-4.16-3' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc into kvm-master (diff) | |
download | linux-dev-9d1887ef3252a45f4e692525d04e23ce8091c17c.tar.xz linux-dev-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 <sean.j.christopherson@intel.com>
[Move all of prepare_vmcs02_full earlier, not just segment registers. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions