Skip to contentSkip to conversation

ioctl number overlap?

DISCUSSION Beth Kon 2 participants 2 messages Jun 15, 2009 KVM

lore
Share & tools
lore

Beth Kon

author
#0 lore raw

kvm.h has

#define KVM_SET_GUEST_DEBUG _IOW(KVMIO, 0x9b, struct kvm_guest_debug)

and

#define KVM_IA64_VCPU_SET_STACK _IOW(KVMIO, 0x9b, void *)

Seems that these could conflict?

#1 lore raw
Quoted 10 lines · Beth Kon

kvm.h has

#define KVM_SET_GUEST_DEBUG _IOW(KVMIO, 0x9b, struct
kvm_guest_debug)

and

#define KVM_IA64_VCPU_SET_STACK _IOW(KVMIO, 0x9b, void *)

Seems that these could conflict?

Argh...

The IA64 world also collides with KVM_NMI - though I have no clue if NMIs are known to that arch.

The good news is that different structure sizes (and different flags for 0x9a) should resolve the conflict numerically. Still messy, though.

Jan