Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1130360

Summary: Launch a KVM with 232 virtio disks(multifunction=on) caused QEMU error(unable to map ioeventfd: -28)
Product: Red Hat Enterprise Linux 6 Reporter: Sibiao Luo <sluo>
Component: qemu-kvmAssignee: Amos Kong <akong>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.5CC: acathrow, ailan, bsarathy, chayang, juzhang, michen, mkenneth, qzhang, sluo, virt-maint, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-15 12:39:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
232-virtio-disks-multifunction=on.sh none

Description Sibiao Luo 2014-08-15 03:06:23 UTC
Description of problem:
This issue was fixed by akong in bug 753692 but still hit it with "unable to map ioeventfd: -28" error in rhel6.6 with the same testing.

Version-Release number of selected component (if applicable):
host info:
# uname -r && rpm -q qemu-kvm-rhev
2.6.32-496.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.437.el6.x86_64
guest info:
en_windows_server_2012_r2_x64.qcow2
virtio-win-prewhql-0.1-89

How reproducible:
100%

Steps to Reproduce:
1.Launch a KVM with 232 virtio disks(multifunction=on).
2.
3.

Actual results:
after step 1, guest boot up correctly, but qemu monitor output error message:
(qemu) qemu-kvm: virtio_pci_set_host_notifier_internal: unable to map ioeventfd: -28
qemu-kvm: virtio_pci_start_ioeventfd: failed. Fallback to a userspace (slower).
qemu-kvm: virtio_pci_set_host_notifier_internal: unable to map ioeventfd: -28
qemu-kvm: virtio_pci_start_ioeventfd: failed. Fallback to a userspace (slower).
qemu-kvm: virtio_pci_set_host_notifier_internal: unable to map ioeventfd: -28
qemu-kvm: virtio_pci_start_ioeventfd: failed. Fallback to a userspace (slower).
qemu-kvm: virtio_pci_set_host_notifier_internal: unable to map ioeventfd: -28
qemu-kvm: virtio_pci_start_ioeventfd: failed. Fallback to a userspace (slower).
qemu-kvm: virtio_pci_set_host_notifier_internal: unable to map ioeventfd: -28
qemu-kvm: virtio_pci_start_ioeventfd: failed. Fallback to a userspace (slower).
......

Expected results:
According to bug 753692#c15.
> Current error message:
qemu-kvm: virtio_pci_set_host_notifier_internal: unable to map ioeventfd: -28
qemu-kvm: virtio_pci_start_ioeventfd: failed. Fallback to a userspace (slower).

> Fixed error message:
qemu-kvm: virtio_pci_set_host_notifier_internal: unable to map ioeventfd: No space left on device
qemu-kvm: virtio_pci_start_ioeventfd: failed. Fallback to a userspace (slower).

Additional info:

Comment 1 Sibiao Luo 2014-08-15 03:08:30 UTC
Created attachment 926963 [details]
232-virtio-disks-multifunction=on.sh

Comment 2 Sibiao Luo 2014-08-15 03:09:00 UTC
# lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                16
On-line CPU(s) list:   0-15
Thread(s) per core:    2
Core(s) per socket:    4
Socket(s):             2
NUMA node(s):          2
Vendor ID:             AuthenticAMD
CPU family:            21
Model:                 1
Stepping:              2
CPU MHz:               2999.950
BogoMIPS:              5999.11
Virtualization:        AMD-V
L1d cache:             16K
L1i cache:             64K
L2 cache:              2048K
L3 cache:              6144K
NUMA node0 CPU(s):     0-7
NUMA node1 CPU(s):     8-15

Comment 3 Amos Kong 2014-08-15 03:41:00 UTC
Hi Sibiao,

I only fixed bug 753692 in Upstream by changing the error message.
And we didn't backport the trivial patch to qemu-kvm-rhel6.

Do you think it's really necessary?

If not, please duplicate this bug with 753692.

Comment 4 Sibiao Luo 2014-08-15 03:54:57 UTC
(In reply to Amos Kong from comment #3)
> Hi Sibiao,
> 
> I only fixed bug 753692 in Upstream by changing the error message.
> And we didn't backport the trivial patch to qemu-kvm-rhel6.
> 
> Do you think it's really necessary?
> 
> If not, please duplicate this bug with 753692.

I think you could help backport it as we have such test plan/case for scalability feature.

Best Regards,
sluo

Comment 5 Amos Kong 2014-08-15 12:39:37 UTC
(In reply to Sibiao Luo from comment #4)
> (In reply to Amos Kong from comment #3)
> > Hi Sibiao,
> > 
> > I only fixed bug 753692 in Upstream by changing the error message.
> > And we didn't backport the trivial patch to qemu-kvm-rhel6.
> > 
> > Do you think it's really necessary?
> > 
> > If not, please duplicate this bug with 753692.
> 
> I think you could help backport it as we have such test plan/case for
> scalability feature.

It's not a good reason, please update the testplan.

> Best Regards,
> sluo

*** This bug has been marked as a duplicate of bug 753692 ***