KVM: use KVM_{GET|SET}_SREGS2 when supported.
authorMaxim Levitsky <mlevitsk@redhat.com>
Mon, 1 Nov 2021 13:22:58 +0000 (15:22 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 12 Jan 2022 13:09:06 +0000 (14:09 +0100)
commit8f515d386971c242be9aee0da4c21661e12fa30a
tree65e54232a499e93a06c3f6e0fbc91a46492cf69e
parentb7a75c8c4275a4dec2d034a225f6446ca441e6d5
KVM: use KVM_{GET|SET}_SREGS2 when supported.

This allows to make PDPTRs part of the migration
stream and thus not reload them after migration which
is against X86 spec.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20211101132300.192584-2-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.h
target/i386/kvm/kvm.c
target/i386/machine.c