• L
    qemu: add ability to set PCI device "rombar" on or off · dc79852a
    Laine Stump 提交于
    This patch was made in response to:
    
      https://bugzilla.redhat.com/show_bug.cgi?id=738095
    
    In short, qemu's default for the rombar setting (which makes the
    firmware ROM of a PCI device visible/not on the guest) was previously
    0 (not visible), but they recently changed the default to 1
    (visible). Unfortunately, there are some PCI devices that fail in the
    guest when rombar is 1, so the setting must be exposed in libvirt to
    prevent a regression in behavior (it will still require explicitly
    setting <rom bar='off'/> in the guest XML).
    
    rombar is forced on/off by adding:
    
      <rom bar='on|off'/>
    
    inside a <hostdev> element that defines a PCI device. It is currently
    ignored for all other types of devices.
    
    At the moment there is no clean method to determine whether or not the
    rombar option is supported by QEMU - this patch uses the advice of a
    QEMU developer to assume support for qemu-0.12+. There is currently a
    patch in the works to put this information in the output of "qemu-kvm
    -device pci-assign,?", but of course if we switch to keying off that,
    we would lose support for setting rombar on all the versions of qemu
    between 0.12 and whatever version gets that patch.
    dc79852a
libvirt_private.syms 26.2 KB