On 11/11/21 04:28, Xiaoyao Li wrote:
Heh, because kvm_dev_ioctl_create_vm() takes an "unsigned long" for the type and it felt wrong to store it as something else. Storing it as a smaller field shouldbe fine, I highly doubt we'll get to 256 types anytime soon :-)It's the bit position. We can get only 8 types with u8 actually.
Every architecture defines the meaning, and for x86 we can say it's not a bit position.
Paolo