All of lore.kernel.org
 help / color / mirror / Atom feed
* qemu-system-aarch64: Failed to retrieve host CPU features
@ 2022-08-12  2:14 Vitaly Chikunov
  2022-08-12  8:45 ` Vitaly Chikunov
  0 siblings, 1 reply; 14+ messages in thread
From: Vitaly Chikunov @ 2022-08-12  2:14 UTC (permalink / raw)
  To: qemu-arm, Peter Maydell; +Cc: Dmitry V. Levin

Hi,

I noticed that we starting to get many errors like this:

  qemu-system-aarch64: Failed to retrieve host CPU features
 
Where many is 1-2% per run, depends on host, host is Kunpeng-920, and
Linux kernel is v5.15.59, but it started to appear months before that.

strace shows in erroneous case:

  1152244 ioctl(9, KVM_CREATE_VM, 0x30)   = -1 EINTR (Interrupted system call)

And I see in target/arm/kvm.c:kvm_arm_create_scratch_host_vcpu:

    vmfd = ioctl(kvmfd, KVM_CREATE_VM, max_vm_pa_size);
    if (vmfd < 0) {
        goto err;
    }

Maybe it should restart ioctl on EINTR?

I don't see EINTR documented in ioctl(2) nor in Linux'
Documentation/virt/kvm/api.rst for KVM_CREATE_VM, but for KVM_RUN it
says "an unmasked signal is pending".

Thanks,


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-08-16 12:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-12  2:14 qemu-system-aarch64: Failed to retrieve host CPU features Vitaly Chikunov
2022-08-12  8:45 ` Vitaly Chikunov
2022-08-12  9:25   ` Peter Maydell
2022-08-12  9:25     ` Peter Maydell
2022-08-12 15:02     ` Marc Zyngier
2022-08-12 15:02       ` Marc Zyngier
2022-08-13 11:11       ` Vitaly Chikunov
2022-08-13 11:11         ` Vitaly Chikunov
2022-08-13 13:32         ` Marc Zyngier
2022-08-13 13:32           ` Marc Zyngier
2022-08-16 12:31           ` Peter Maydell
2022-08-16 12:31             ` Peter Maydell
2022-08-12 15:10     ` Marc Zyngier
2022-08-12 15:10       ` Marc Zyngier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.