]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit222cf4274be96ff38bc9deaaa78fe2c324325ed6
treebe53102bf5e3eed3c5ee2056a3932ffbffbbc1ae
parent3cad55156289d904d90647ad198e8deffe314535
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