aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2010-02-15 04:45:43 -0500
committerAvi Kivity <avi@redhat.com>2010-04-25 05:39:10 -0400
commita1efbe77c1fd7c34a97a76a61520bf23fb3663f6 (patch)
treed2e42935b12867d1b0dcd9c78bb06f76c0c71078 /include/linux/kvm.h
parent48005f64d0ea965d454e38b5181af4aba9bdef5b (diff)
KVM: x86: Add support for saving&restoring debug registers
So far user space was not able to save and restore debug registers for migration or after reset. Plug this hole. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm.h')
-rw-r--r--include/linux/kvm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index 48516a2a0b84..ce2876717a8b 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -503,6 +503,9 @@ struct kvm_ioeventfd {
503#define KVM_CAP_PCI_SEGMENT 47 503#define KVM_CAP_PCI_SEGMENT 47
504#define KVM_CAP_PPC_PAIRED_SINGLES 48 504#define KVM_CAP_PPC_PAIRED_SINGLES 48
505#define KVM_CAP_INTR_SHADOW 49 505#define KVM_CAP_INTR_SHADOW 49
506#ifdef __KVM_HAVE_DEBUGREGS
507#define KVM_CAP_DEBUGREGS 50
508#endif
506#define KVM_CAP_X86_ROBUST_SINGLESTEP 51 509#define KVM_CAP_X86_ROBUST_SINGLESTEP 51
507 510
508#ifdef KVM_CAP_IRQ_ROUTING 511#ifdef KVM_CAP_IRQ_ROUTING
@@ -690,6 +693,9 @@ struct kvm_clock_data {
690/* Available with KVM_CAP_VCPU_EVENTS */ 693/* Available with KVM_CAP_VCPU_EVENTS */
691#define KVM_GET_VCPU_EVENTS _IOR(KVMIO, 0x9f, struct kvm_vcpu_events) 694#define KVM_GET_VCPU_EVENTS _IOR(KVMIO, 0x9f, struct kvm_vcpu_events)
692#define KVM_SET_VCPU_EVENTS _IOW(KVMIO, 0xa0, struct kvm_vcpu_events) 695#define KVM_SET_VCPU_EVENTS _IOW(KVMIO, 0xa0, struct kvm_vcpu_events)
696/* Available with KVM_CAP_DEBUGREGS */
697#define KVM_GET_DEBUGREGS _IOR(KVMIO, 0xa1, struct kvm_debugregs)
698#define KVM_SET_DEBUGREGS _IOW(KVMIO, 0xa2, struct kvm_debugregs)
693 699
694#define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0) 700#define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0)
695 701