qemu-e2k/hw
aliguori 99b3718ee1 Use the default subsystem vendor ID for virtio devices (Mark McLoughlin)
A subsystem vendor ID of zero isn't allowed, so we use our
default ID.

Gerd points out that although the PCI subsystem vendor ID is
treated by the guest as the virtio vendor ID:

   /* we use the subsystem vendor/device id as the virtio vendor/device
    * id.  this allows us to use the same PCI vendor/device id for all
    * virtio devices and to identify the particular virtio driver by
    * the subsytem ids */
    vp_dev->vdev.id.vendor = pci_dev->subsystem_vendor;
    vp_dev->vdev.id.device = pci_dev->subsystem_device;

it looks like only the device ID is used right now:

   # grep virtio modules.alias
   alias virtio:d00000001v* virtio_net
   alias virtio:d00000002v* virtio_blk
   alias virtio:d00000003v* virtio_console
   alias virtio:d00000004v* virtio-rng
   alias virtio:d00000005v* virtio_balloon
   alias pci:v00001AF4d*sv*sd*bc*sc*i* virtio_pci
   alias virtio:d00000009v* 9pnet_virtio

so setting the subsystem vendor id to something != zero shouldn't cause
trouble.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6440 c046a42c-6fe2-441c-8c8c-71466251a162
2009-01-26 15:22:57 +00:00
..
ac97.c
acpi.c
adb.c
adlib.c
ads7846.c
alpha_palcode.c
an5206.c
apb_pci.c
apic.c
arm_boot.c
arm_gic.c
arm_pic.c
arm_sysctl.c
arm_timer.c
arm-misc.h
armv7m_nvic.c
armv7m.c
audiodev.h
axis_dev88.c
baum.c
baum.h
blizzard_template.h
blizzard.c
boards.h
bt-hci-csr.c
bt-hci.c
bt-hid.c
bt-l2cap.c
bt-sdp.c
bt.c
bt.h
cbus.c
cdrom.c
cirrus_vga_rop2.h
cirrus_vga_rop.h
cirrus_vga.c
cs4231.c
cs4231a.c
cuda.c
devices.h
dma.c
ds1225y.c
dummy_m68k.c
e1000_hw.h
e1000.c
ecc.c
eccmemctl.c
eepro100.c
eeprom93xx.c
eeprom93xx.h
es1370.c
escc.c
escc.h
esp.c
etraxfs_dma.c
etraxfs_dma.h
etraxfs_eth.c
etraxfs_pic.c
etraxfs_ser.c
etraxfs_timer.c
etraxfs.c
etraxfs.h
fdc.c
fdc.h
firmware_abi.h
flash.h
fmopl.c
fmopl.h
fw_cfg.c
fw_cfg.h
g364fb.c
grackle_pci.c
gt64xxx.c
gumstix.c
gus.c
gusemu_hal.c
gusemu_mixer.c
gusemu.h
gustate.h
heathrow_pic.c
hpet_emul.h
hpet.c
hw.h
i2c.c
i2c.h
i8254.c
i8259.c
ide.c
integratorcp.c
iommu.c
irq.c
irq.h
isa_mmio.c
isa.h
jazz_led.c
lm832x.c
lsi53c895a.c
m48t59.c
mac_dbdma.c
mac_nvram.c
macio.c
mainstone.c
mainstone.h
max111x.c
max7310.c
mc146818rtc.c
mcf5206.c
mcf5208.c
mcf_fec.c
mcf_intc.c
mcf_uart.c
mcf.h
mips_int.c
mips_jazz.c
mips_malta.c
mips_mipssim.c
mips_r4k.c
mips_timer.c
mips.h
mipsnet.c
mpcore.c
mst_fpga.c
musicpal.c
nand.c
ne2000.c
nseries.c
nvram.h
omap1.c
omap2.c
omap_clk.c
omap_dma.c
omap_dss.c
omap_i2c.c
omap_lcd_template.h
omap_lcdc.c
omap_mmc.c
omap_sx1.c
omap.h
onenand.c
openpic.c
palm.c
parallel.c
pc.c
pc.h
pci_host.h
pci.c
pci.h
pckbd.c
pcmcia.h
pcnet.c
pcspk.c
pflash_cfi01.c
pflash_cfi02.c
piix_pci.c
pixel_ops.h
pl011.c
pl022.c
pl031.c
pl050.c
pl061.c
pl080.c
pl110_template.h
pl110.c
pl181.c
pl190.c
ppc4xx_devs.c
ppc4xx_pci.c
ppc4xx.h
ppc405_boards.c
ppc405_uc.c
ppc405.h
ppc440_bamboo.c
ppc440.c
ppc440.h
ppc_chrp.c
ppc_mac.h
ppc_oldworld.c
ppc_prep.c
ppc.c
ppc.h
prep_pci.c
primecell.h
ps2.c
ps2.h
ptimer.c
pxa2xx_dma.c
pxa2xx_gpio.c
pxa2xx_keypad.c
pxa2xx_lcd.c
pxa2xx_mmci.c
pxa2xx_pcmcia.c
pxa2xx_pic.c
pxa2xx_template.h
pxa2xx_timer.c
pxa2xx.c
pxa.h
r2d.c
rc4030.c
realview_gic.c
realview.c
rtl8139.c
sb16.c
sbi.c
scsi-disk.c
scsi-disk.h
scsi-generic.c
scsi.h
sd.c
sd.h
serial.c
sh7750_regnames.c
sh7750_regnames.h
sh7750_regs.h
sh7750.c
sh_intc.c
sh_intc.h
sh_pci.c
sh_serial.c
sh_timer.c
sh.h
sharpsl.h
shix.c
slavio_intctl.c
slavio_misc.c
slavio_timer.c
sm501_template.h
sm501.c
smbus_eeprom.c
smbus.c
smbus.h
smc91c111.c
soc_dma.c
soc_dma.h
sparc32_dma.c
sparc32_dma.h
spitz.c
ssd0303.c
ssd0323.c
ssi-sd.c
stellaris_enet.c
stellaris_input.c
stellaris.c
sun4c_intctl.c
sun4m.c
sun4m.h
sun4u.c
tc6393xb_template.h
tc6393xb.c
tc58128.c
tcx.c
tmp105.c
tosa.c
tsc210x.c
tsc2005.c
tusb6010.c
twl92230.c
unin_pci.c
usb-bt.c Update FSF address in GPL/LGPL boilerplate 2009-01-04 22:05:52 +00:00
usb-hid.c
usb-hub.c
usb-msd.c
usb-musb.c
usb-net.c
usb-ohci.c
usb-serial.c
usb-uhci.c
usb-wacom.c
usb.c
usb.h
versatile_pci.c
versatilepb.c
vga_int.h
vga_template.h
vga.c
virtio-balloon.c Use the default subsystem vendor ID for virtio devices (Mark McLoughlin) 2009-01-26 15:22:57 +00:00
virtio-balloon.h
virtio-blk.c Use the default subsystem vendor ID for virtio devices (Mark McLoughlin) 2009-01-26 15:22:57 +00:00
virtio-blk.h
virtio-console.c Use the default subsystem vendor ID for virtio devices (Mark McLoughlin) 2009-01-26 15:22:57 +00:00
virtio-console.h
virtio-net.c Use the default subsystem vendor ID for virtio devices (Mark McLoughlin) 2009-01-26 15:22:57 +00:00
virtio-net.h
virtio.c Rename fls to qemu_fls 2008-12-11 19:37:54 +00:00
virtio.h
vmmouse.c
vmport.c
vmware_vga.c
wm8750.c
zaurus.c