KVM: x86: Introduce KVM_GET_SREGS2 / KVM_SET_SREGS2
authorMaxim Levitsky <mlevitsk@redhat.com>
Mon, 7 Jun 2021 09:02:02 +0000 (12:02 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:47 +0000 (13:09 -0400)
commit6dba940352038b56db9b591b172fb2ec76a5fd5e
treebe53102bf5e3eed3c5ee2056a3932ffbffbbc1ae
parent329675dde93c6f30009dc413197bdf2b971f1e5e
KVM: x86: Introduce KVM_GET_SREGS2 / KVM_SET_SREGS2

This is a new version of KVM_GET_SREGS / KVM_SET_SREGS.

It has the following changes:
   * Has flags for future extensions
   * Has vcpu's PDPTRs, allowing to save/restore them on migration.
   * Lacks obsolete interrupt bitmap (done now via KVM_SET_VCPU_EVENTS)

New capability, KVM_CAP_SREGS2 is added to signal
the userspace of this ioctl.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20210607090203.133058-8-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virt/kvm/api.rst
arch/x86/include/uapi/asm/kvm.h
arch/x86/kvm/kvm_cache_regs.h
arch/x86/kvm/x86.c
include/uapi/linux/kvm.h