]> xenbits.xensource.com Git - people/pauldu/linux.git/commitdiff
don't treat lack of vcpu_info as a hard error shared-info8
authorPaul Durrant <pdurrant@amazon.com>
Wed, 15 Nov 2023 16:27:36 +0000 (16:27 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Mon, 20 Nov 2023 18:18:19 +0000 (18:18 +0000)
it can be transient, so just deliver via the shadow

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
arch/x86/kvm/xen.c

index c49441b444772d2e40458616f51a4e3aed4327c1..0997e9d8b1ca9b0c38724bc1142d1b8e3e44132b 100644 (file)
@@ -1739,9 +1739,6 @@ int kvm_xen_set_evtchn_fast(struct kvm_xen_evtchn *xe, struct kvm *kvm)
                WRITE_ONCE(xe->vcpu_idx, vcpu->vcpu_idx);
        }
 
-       if (!vcpu->arch.xen.vcpu_info_cache.active)
-               return -EINVAL;
-
        if (xe->port >= max_evtchn_port(kvm))
                return -EINVAL;