[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Configuration vs. compat hints [was Re: [Qemu-devel] [PATCHv3 03/13]

From: Dietmar Maurer
Subject: RE: Configuration vs. compat hints [was Re: [Qemu-devel] [PATCHv3 03/13] qemu: add routines to manage PCI capabilities]
Date: Wed, 24 Jun 2009 10:04:02 +0200

Hi all,

On real hardware, I usually do not care about PCI address - instead I
use slot numbers. A standard main board has about 5 pci slots where you
can plug in cards. So if a card is damaged, I usually say something like
'please replace the card in the first slot'.

Can't we simply define a 'slot to pci address' mapping for each
platform? For example, we reserve some pci addresses for standard
hardware like ide and scsi controller, and use the rest for the slot

pci addr 1 -> reserved 
pci addr 2 -> reserved for ide
pci addr 3 -> reserved for scsi
pci addr 4 -> reserved for usb hub

pci addr 8 -> slot 7
pci addr 9 -> slot 6
pci addr 10 -> slot 5
pci addr 11 -> slot 4
pci addr 12 -> slot 3
pci addr 13 -> slot 2
pci addr 14 -> slot 1
pci addr 15 -> slot 0

The management application can then use those slot numbers to place a
device into a specific bus position.

 - net nic,model=e1000,slot=0

Or is that too inflexible?

- Dietmar

reply via email to

[Prev in Thread] Current Thread [Next in Thread]