Message ID | 58D09F48.9010809@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/target/i386/kvm.c b/target/i386/kvm.c index 55865db..5099290 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -2534,6 +2534,11 @@ static int kvm_put_vcpu_events(X86CPU *cpu, int level) KVM_VCPUEVENT_VALID_NMI_PENDING | KVM_VCPUEVENT_VALID_SIPI_VECTOR; } + if (CPU(cpu)->cpu_index == 1) { + fprintf(stderr, "vcpu 1 sleep!!!!\n"); + sleep(10); + } + return kvm_vcpu_ioctl(CPU(cpu), KVM_SET_VCPU_EVENTS, &events); }