summaryrefslogtreecommitdiff
path: root/include/linux/kvm_para.h
diff options
context:
space:
mode:
authorKen Hofsass <hofsass@google.com>2018-02-01 03:03:36 +0300
committerRadim Krčmář <rkrcmar@redhat.com>2018-03-06 20:40:43 +0300
commit01643c51bfcf2460b530854046f62ce1b29713ab (patch)
treee7cb32f011945beac52d9bb3c373b57c41a52b6f /include/linux/kvm_para.h
parent7b7e39522a61f402d41dd9a67f3fa2133ef9d4e8 (diff)
downloadlinux-01643c51bfcf2460b530854046f62ce1b29713ab.tar.xz
KVM: x86: KVM_CAP_SYNC_REGS
This commit implements an enhanced x86 version of S390 KVM_CAP_SYNC_REGS functionality. KVM_CAP_SYNC_REGS "allow[s] userspace to access certain guest registers without having to call SET/GET_*REGS”. This reduces ioctl overhead which is particularly important when userspace is making synchronous guest state modifications (e.g. when emulating and/or intercepting instructions). Originally implemented upstream for the S390, the x86 differences follow: - userspace can select the register sets to be synchronized with kvm_run using bit-flags in the kvm_valid_registers and kvm_dirty_registers fields. - vcpu_events is available in addition to the regs and sregs register sets. Signed-off-by: Ken Hofsass <hofsass@google.com> Reviewed-by: David Hildenbrand <david@redhat.com> [Removed wrapper around check for reserved kvm_valid_regs. - Radim] Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'include/linux/kvm_para.h')
0 files changed, 0 insertions, 0 deletions