Skip to content
  • Anthony Liguori's avatar
    pci: add default pci subsystem id for all devices (Gerd Hoffman) · d350d97d
    Anthony Liguori authored
    
    
    This sets a default PCI subsystem ID for all emulated PCI devices.  PCI
    specs require this, so do it.
    
    In many cases it is enougth to know the PCI ID to handle a device
    correctly.  Sometimes a device driver must identify the exact piece of
    hardware (via PCI Subsystem ID) though.
    
    What does this patch to qemu devices:
    
    Right now the emulated PCI devices have no PCI subsystem ID, only the
    PCI ID.  The discussed patch sets a default PCI subsystem ID for all
    emulated devices.  Which will make the qemu devices look pretty much
    like in the laptop case: all PCI subsystem IDs will point to qemu by
    default.
    
    If a driver emulates a very specific piece of hardware where it has to
    emulate more than just the PCI chip, it can overwrite the PCI subsystem
    ID without problems.  The es1370 driver does that for example.
    
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5986 c046a42c-6fe2-441c-8c8c-71466251a162
    d350d97d