aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2010-02-19 13:38:07 -0500
committerAvi Kivity <avi@redhat.com>2010-04-25 05:38:28 -0400
commit48005f64d0ea965d454e38b5181af4aba9bdef5b (patch)
tree15aa4fe79716e3089893c8e9d48d7e0b898d2693 /include
parent03b82a30ea8b26199901b219848d706dbd70c609 (diff)
KVM: x86: Save&restore interrupt shadow mask
The interrupt shadow created by STI or MOV-SS-like operations is part of the VCPU state and must be preserved across migration. Transfer it in the spare padding field of kvm_vcpu_events.interrupt. As a side effect we now have to make vmx_set_interrupt_shadow robust against both shadow types being set. Give MOV SS a higher priority and skip STI in that case to avoid that VMX throws a fault on next entry. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kvm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index 360f85e8c435..48516a2a0b84 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -502,6 +502,7 @@ struct kvm_ioeventfd {
502#define KVM_CAP_HYPERV_SPIN 46 502#define KVM_CAP_HYPERV_SPIN 46
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_X86_ROBUST_SINGLESTEP 51 506#define KVM_CAP_X86_ROBUST_SINGLESTEP 51
506 507
507#ifdef KVM_CAP_IRQ_ROUTING 508#ifdef KVM_CAP_IRQ_ROUTING