« Previous | Next » 

Revision 4163f1c9

ID4163f1c99f9f4b02f5a55ca30e8d6b737c487719

Added by Dimitris Aragiorgis about 10 years ago

(2.10) Fix conflict between virtio + spice or soundhw

With regard to PCI slot occupied by a KVM instance we have
observed the following:

1) Slot 0 will always be Host bridge.
2) Slot 1 will always be ISA bridge.
3) Slot 2 will always be VGA controller (even with -display none).
4) If soundhw=hda|ac97|es1370 an extra PCI slot is occupied.
This slot MUST be the No. 3.

5) Option '-balloon virtio' gets an extra PCI slot.
Still it can take id, bus, and addr args and be placed anywhere

6) If spice is used instead of vnc we have: * No extra PCI slot gets occupied without vdagent * Otherwise we have the following extra optionsa [1]
a) -device virtio-serial-pci
(this can take id, bus, and addr args too)
b) -device virtserialport,chardev=spicechannel0,...
c) -chardev spicevmc,id=spicechannel0

This patch does the following:

1) Change _DEFAULT_PCI_RESERVATIONS to "1110...."
2) Move soundhw option early in the command line and if hda etc.
reserve slot 3.
3) Add id, bus, and addr in balloon option and reserve next slot.
4) Add id, bus, and addr in -device virtio-serial-pci option and if
passed reserve next slot.

[1] http://www.linux-kvm.org/page/SPICE

Fixes issue 757.

Signed-off-by: Dimitris Aragiorgis <>
Reviewed-by: Jose A. Lopes <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences