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 1090861 - Fail to boot up a guest with some vcpu configuration
Summary: Fail to boot up a guest with some vcpu configuration
Keywords:
Status: CLOSED DUPLICATE of bug 1010882
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Andrew Jones
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-24 10:20 UTC by Qunfang Zhang
Modified: 2014-04-29 14:52 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-29 14:52:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Qunfang Zhang 2014-04-24 10:20:28 UTC
Description of problem:
Boot up a guest with 160 vcpu on a host with 160 p-cpu, failed to boot up when specify the guest cpu cores/threads values with >1 values.

Version-Release number of selected component (if applicable):
kernel-2.6.32-460.el6.x86_64
qemu-kvm-0.12.1.2-2.424.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Boot up a guest with "-smp 160,sockets=2,cores=40,threads=2" or "-smp 160,sockets=4,cores=20,threads=2" on a host with 160 cpu.

2. Failed to boot up guest, it prompts:

kvm_create_vcpu: Invalid argument
Failed to create vCPU. Check the -smp parameter.

3. If I boot with "-smp 160,sockets=160,cores=1,threads=1", can not reproduce. 

Actual results:
Guest failed to boot up.

Expected results:
Guest should boot up. 

Additional info:
(1) qemu-kvm-424 + kernel-431:  NOT reproduce  
(2) qemu-kvm-424 + kernel-460:  reproduce.

But Andrew said this is unlikely a kernel issue, mostly qemu does some funny things. So does not add "regression" keyword and file to qemu-kvm component first.

Comment 2 Qunfang Zhang 2014-04-24 10:23:42 UTC
/usr/libexec/qemu-kvm \
  -M rhel6.5.0 \
  -cpu Nehalem \
  -m 4G \
  -smp 160,sockets=2,cores=40,threads=2 \
  -enable-kvm \
  -name RHEL-Server-6.6-64 \
  -uuid cca1433d-5bac-490f-a097-c5c80c1a083f \
  -nodefconfig \
  -nodefaults \
  -k en-us \
  -qmp tcp:0:5000,server,nowait \
  -boot order=c,menu=off \
  -vga qxl \
  -global qxl-vga.vram_size=67108864 \
  -spice port=6000,disable-ticketing \
  -drive file=/home/rhel6.6-64-virtio.qcow2,if=none,id=drive-virtio-disk0,cache=none,aio=native,rerror=stop,werror=stop \
  -device virtio-blk-pci,scsi=off,drive=drive-virtio-disk0,id=os-disk,bootindex=1 \
  -chardev socket,id=log,path=/tmp/seabios,server,nowait \
  -device isa-debugcon,iobase=0x402,chardev=log \
  -device virtio-serial-pci,id=virtio-serial0,max_ports=16 \
  -chardev socket,id=qemu-ga0,path=/tmp/qemu-ga,server,nowait \
  -device virtserialport,chardev=qemu-ga0,name=org.qemu.guest_agent.0,bus=virtio-serial0.0,id=port2 &

Comment 3 Andrew Jones 2014-04-29 14:49:21 UTC
It looks like I messed up with bug 1010882. KVM_CREATE_VCPU needs to support vcpu_ids up to 255, even if we only support up to 160 vcpus, because the vcpu_id should match the apic_id, and topologies with greater than one socket can have gaps in the apic_id space.

Moving back to kernel to post the oneliner fix.

Comment 4 Andrew Jones 2014-04-29 14:51:30 UTC
Ah, bug 1010882, is still ON_QA, so I'll just FailQA it, and then post a fix under the original BZ.

Comment 5 Andrew Jones 2014-04-29 14:52:20 UTC

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


Note You need to log in before you can comment on or make changes to this bug.