KVM: X86: eliminate obsolete KVM_GET_CPUID2 ioctl
Quoted 5 lines · Vitaly Kuznetsov
Quoted 1 line · linmiaohe
KVM_GET_CPUID2ioctl is straight up brokenIt may make sense to add the gory details from your previous patch where you were trying to fix it.
Will do.
Quoted 9 lines
Quoted 8 lines
and not used anywhere. Remove it directly.
Suggested-by Paolo Bonzini <[email protected]>Signed-off-by Miaohe Lin <[email protected]>#define KVM_GET_LAPIC _IOR(KVMIO, 0x8e, struct kvm_lapic_state) #define KVM_SET_LAPIC _IOW(KVMIO, 0x8f, struct kvm_lapic_state) #define KVM_SET_CPUID2 _IOW(KVMIO, 0x90, struct kvm_cpuid2) -#define KVM_GET_CPUID2 _IOWR(KVMIO, 0x91, struct kvm_cpuid2)
Quoted 3 lines
Even if we decide to be strong and remove
KVM_GET_CPUID2completely, I'd suggest we leave a comment here saying that it was deprecated. Leaving the branch in case (returning the same-EINVALas passing an unsupported IOCTL) may also make sense (with a 'deprecated' comment of course).
Sounds reasonable. Will try. Many thanks!