KVM: Refactor hypercall infrastructure (v3)