Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 688428 - qemu-kvm -no-kvm segfaults on pci_add
qemu-kvm -no-kvm segfaults on pci_add
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm (Show other bugs)
6.1
All Linux
low Severity medium
: rc
: ---
Assigned To: Alex Williamson
Virtualization Bugs
: Triaged
Depends On:
Blocks: 580953
  Show dependency treegraph
 
Reported: 2011-03-16 21:09 EDT by juzhang
Modified: 2013-01-09 18:39 EST (History)
9 users (show)

See Also:
Fixed In Version: qemu-kvm-0.12.1.2-2.151.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 644793
Environment:
Last Closed: 2011-05-19 07:31:01 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:0534 normal SHIPPED_LIVE Important: qemu-kvm security, bug fix, and enhancement update 2011-05-19 07:20:36 EDT

  None (edit)
Comment 2 Alex Williamson 2011-03-16 21:16:18 EDT
Needs trivial backport of 420fe74769cc67baec6f3d962dc054e2972ca3ae
Comment 7 Chao Yang 2011-03-28 00:11:47 EDT
Reproduced on qemu-kvm-0.12.1.2-2.150.el6.x86_64 when trying to assign a MSI capability nic card to guest with -no-kvm option.
(gdb) bt
#0  kvm_ioctl (s=0x0, type=44547) at /usr/src/debug/qemu-kvm-0.12.1.2/kvm-all.c:871
#1  0x000000000042cea2 in kvm_check_extension (s=<value optimized out>, extension=<value optimized out>)
    at /usr/src/debug/qemu-kvm-0.12.1.2/kvm-all.c:396
#2  0x0000000000473fbf in assign_device (pci_dev=0x2827a90) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/device-assignment.c:902
#3  assigned_initfn (pci_dev=0x2827a90) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/device-assignment.c:1703
#4  0x000000000041b876 in pci_qdev_init (qdev=0x2827a90, base=0x8d5b00) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/pci.c:1472
#5  0x00000000004c44f8 in qdev_init (dev=0x2827a90) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/qdev.c:286
#6  0x00000000004c4939 in qdev_device_add (opts=0x1228f90) at /usr/src/debug/qemu-kvm-0.12.1.2/hw/qdev.c:261
#7  0x0000000000409329 in device_init_func (opts=<value optimized out>, opaque=<value optimized out>)
    at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:5158
#8  0x000000000047a4ba in qemu_opts_foreach (list=<value optimized out>, func=0x409320 <device_init_func>, opaque=0x0, 
    abort_on_failure=<value optimized out>) at qemu-option.c:943
#9  0x000000000040e658 in main (argc=<value optimized out>, argv=<value optimized out>, envp=<value optimized out>)
    at /usr/src/debug/qemu-kvm-0.12.1.2/vl.c:6675

-----------------------------------------------------------------
Verified with qemu-kvm-0.12.1.2-2.152.el6.x86_64
# /usr/libexec/qemu-kvm -M rhel6.1.0 -no-kvm ... pci-assign,host=01:00.1,id=pf
Using CPU model "cpu64-rhel6"
Using CPU model "cpu64-rhel6"
Using CPU model "cpu64-rhel6"
Using CPU model "cpu64-rhel6"
qemu-kvm: -device pci-assign,host=01:00.1,id=pf: pci-assign: error: requires KVM support
qemu-kvm: -device pci-assign,host=01:00.1,id=pf: Device 'pci-assign' could not be initialized

So, this issue got fixed.
Comment 9 errata-xmlrpc 2011-05-19 07:31:01 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0534.html
Comment 10 errata-xmlrpc 2011-05-19 09:02:24 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0534.html

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