diff --git a/hw/hyperv/hyperv.c b/hw/hyperv/hyperv.c index 4d90032785..900ff80213 100644 --- a/hw/hyperv/hyperv.c +++ b/hw/hyperv/hyperv.c @@ -237,9 +237,7 @@ struct HvSintRoute { static CPUState *hyperv_find_vcpu(uint32_t vp_index) { - CPUState *cs = qemu_get_cpu(vp_index); - assert(hyperv_vp_index(cs) == vp_index); - return cs; + return qemu_get_cpu(vp_index); } /*