KVM: Separate emulation context initialization in a separate function