diff options
author | Eric B Munson <emunson@mgebm.net> | 2012-03-10 14:37:27 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-04-08 05:49:01 -0400 |
commit | 1c0b28c2a46d98cd258d96b8c222144b22876c46 (patch) | |
tree | 68c5b4f6a74e3b245dd994752fdc9005075b485c /include/linux/kvm.h | |
parent | 3b5d56b9317fa7b5407dff1aa7b115bf6cdbd494 (diff) |
KVM: x86: Add ioctl for KVM_KVMCLOCK_CTRL
Now that we have a flag that will tell the guest it was suspended, create an
interface for that communication using a KVM ioctl.
Signed-off-by: Eric B Munson <emunson@mgebm.net>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm.h')
-rw-r--r-- | include/linux/kvm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 6c322a90b92f..7a9dd4b3dede 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -589,6 +589,7 @@ struct kvm_ppc_pvinfo { | |||
589 | #define KVM_CAP_S390_UCONTROL 73 | 589 | #define KVM_CAP_S390_UCONTROL 73 |
590 | #define KVM_CAP_SYNC_REGS 74 | 590 | #define KVM_CAP_SYNC_REGS 74 |
591 | #define KVM_CAP_PCI_2_3 75 | 591 | #define KVM_CAP_PCI_2_3 75 |
592 | #define KVM_CAP_KVMCLOCK_CTRL 76 | ||
592 | 593 | ||
593 | #ifdef KVM_CAP_IRQ_ROUTING | 594 | #ifdef KVM_CAP_IRQ_ROUTING |
594 | 595 | ||
@@ -859,6 +860,8 @@ struct kvm_s390_ucas_mapping { | |||
859 | /* Available with KVM_CAP_ONE_REG */ | 860 | /* Available with KVM_CAP_ONE_REG */ |
860 | #define KVM_GET_ONE_REG _IOW(KVMIO, 0xab, struct kvm_one_reg) | 861 | #define KVM_GET_ONE_REG _IOW(KVMIO, 0xab, struct kvm_one_reg) |
861 | #define KVM_SET_ONE_REG _IOW(KVMIO, 0xac, struct kvm_one_reg) | 862 | #define KVM_SET_ONE_REG _IOW(KVMIO, 0xac, struct kvm_one_reg) |
863 | /* VM is being stopped by host */ | ||
864 | #define KVM_KVMCLOCK_CTRL _IO(KVMIO, 0xad) | ||
862 | 865 | ||
863 | #define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0) | 866 | #define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0) |
864 | #define KVM_DEV_ASSIGN_PCI_2_3 (1 << 1) | 867 | #define KVM_DEV_ASSIGN_PCI_2_3 (1 << 1) |