virtio: move allocation before initialization