aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kvm.h')
-rw-r--r--include/linux/kvm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index b694c1d2f918..6ed1a12ed526 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -439,6 +439,7 @@ struct kvm_ioeventfd {
439#ifdef __KVM_HAVE_XEN_HVM 439#ifdef __KVM_HAVE_XEN_HVM
440#define KVM_CAP_XEN_HVM 38 440#define KVM_CAP_XEN_HVM 38
441#endif 441#endif
442#define KVM_CAP_ADJUST_CLOCK 39
442 443
443#ifdef KVM_CAP_IRQ_ROUTING 444#ifdef KVM_CAP_IRQ_ROUTING
444 445
@@ -512,6 +513,12 @@ struct kvm_irqfd {
512 __u8 pad[20]; 513 __u8 pad[20];
513}; 514};
514 515
516struct kvm_clock_data {
517 __u64 clock;
518 __u32 flags;
519 __u32 pad[9];
520};
521
515/* 522/*
516 * ioctls for VM fds 523 * ioctls for VM fds
517 */ 524 */
@@ -562,6 +569,9 @@ struct kvm_irqfd {
562#define KVM_SET_BOOT_CPU_ID _IO(KVMIO, 0x78) 569#define KVM_SET_BOOT_CPU_ID _IO(KVMIO, 0x78)
563#define KVM_IOEVENTFD _IOW(KVMIO, 0x79, struct kvm_ioeventfd) 570#define KVM_IOEVENTFD _IOW(KVMIO, 0x79, struct kvm_ioeventfd)
564#define KVM_XEN_HVM_CONFIG _IOW(KVMIO, 0x7a, struct kvm_xen_hvm_config) 571#define KVM_XEN_HVM_CONFIG _IOW(KVMIO, 0x7a, struct kvm_xen_hvm_config)
572#define KVM_SET_CLOCK _IOW(KVMIO, 0x7b, struct kvm_clock_data)
573#define KVM_GET_CLOCK _IOR(KVMIO, 0x7c, struct kvm_clock_data)
574
565 575
566/* 576/*
567 * ioctls for vcpu fds 577 * ioctls for vcpu fds