History

KVM: s390: mark irq_state.flags as non-usable

Old kernels did not check for zero in the irq_state.flags field and old QEMUs did not zero the flag/reserved fields when calling KVM_S390_*_IRQ_STATE. Let's add comments to prevent future uses of these fields.

Christian Borntraeger committed 8 years ago

Commit bb64da91 parent 940f89a3 files · +18 −7Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/kvm.h+2−2
@@ -630,9 +630,9 @@ struct kvm_s390_irq { · 629 unmodified lines
630630
631631 struct kvm_s390_irq_state {
632632 __u64 buf;
633− __u32 flags;
633+ __u32 flags; /* will stay unused for compatibility reasons */
634634 __u32 len;
635− __u32 reserved[4];
635+ __u32 reserved[4]; /* will stay unused for compatibility reasons */
636636 };
637637
638638 /* for KVM_SET_GUEST_DEBUG */