Re: [Qemu-devel] Managing architectural restrictions with -device and libvirt

2017-07-07 Thread Mark Cave-Ayland
On 06/07/17 15:36, Markus Armbruster wrote: I see two ways to continue: 1. A new kind of pci-bridge should be created with a "special" secondary bus that has less slots. (harder to implement) 2. Add the limitation of the number of slots to the PCIBus class,

Re: [Qemu-devel] Managing architectural restrictions with -device and libvirt

2017-07-06 Thread Markus Armbruster
Marcel Apfelbaum writes: > On 06/07/2017 14:25, Markus Armbruster wrote: >> Marcel Apfelbaum writes: >> >>> On 05/07/2017 21:05, Markus Armbruster wrote: Mark Cave-Ayland writes: >> [...] > It seems like limiting the

Re: [Qemu-devel] Managing architectural restrictions with -device and libvirt

2017-07-06 Thread Marcel Apfelbaum
On 06/07/2017 14:25, Markus Armbruster wrote: Marcel Apfelbaum writes: On 05/07/2017 21:05, Markus Armbruster wrote: Mark Cave-Ayland writes: [...] It seems like limiting the size of the bus would solve the majority of the problem. I've

Re: [Qemu-devel] Managing architectural restrictions with -device and libvirt

2017-07-06 Thread Markus Armbruster
Marcel Apfelbaum writes: > On 05/07/2017 21:05, Markus Armbruster wrote: >> Mark Cave-Ayland writes: [...] >>> It seems like limiting the size of the bus would solve the majority of >>> the problem. I've had a quick look around pci.c and while I

Re: [Qemu-devel] Managing architectural restrictions with -device and libvirt

2017-07-06 Thread Marcel Apfelbaum
On 05/07/2017 21:05, Markus Armbruster wrote: Mark Cave-Ayland writes: On 05/07/17 16:46, Markus Armbruster wrote: I've been working on a patchset that brings the sun4u machine on qemu-system-sparc64 much closer to a real Ultra 5, however due to various design

Re: [Qemu-devel] Managing architectural restrictions with -device and libvirt

2017-07-06 Thread Mark Cave-Ayland
On 05/07/17 19:05, Markus Armbruster wrote: >> It seems like limiting the size of the bus would solve the majority of >> the problem. I've had a quick look around pci.c and while I can see that >> the PCIBus creation functions take a devfn_min parameter, I can't see >> anything that limits the

Re: [Qemu-devel] Managing architectural restrictions with -device and libvirt

2017-07-05 Thread Markus Armbruster
Mark Cave-Ayland writes: > On 05/07/17 16:46, Markus Armbruster wrote: > > I've been working on a patchset that brings the sun4u machine on > qemu-system-sparc64 much closer to a real Ultra 5, however due to > various design restrictions I need to be

Re: [Qemu-devel] Managing architectural restrictions with -device and libvirt

2017-07-05 Thread Mark Cave-Ayland
On 05/07/17 16:46, Markus Armbruster wrote: I've been working on a patchset that brings the sun4u machine on qemu-system-sparc64 much closer to a real Ultra 5, however due to various design restrictions I need to be able to restrict how devices are added to the machine with

Re: [Qemu-devel] Managing architectural restrictions with -device and libvirt

2017-07-05 Thread Markus Armbruster
Mark Cave-Ayland writes: > On 05/07/17 06:38, Markus Armbruster wrote: > >> Copying Marcel for PCI expertise. >> >> Mark Cave-Ayland writes: >> >>> Hi all, >>> >>> I've been working on a patchset that brings the sun4u machine on

Re: [Qemu-devel] Managing architectural restrictions with -device and libvirt

2017-07-05 Thread Mark Cave-Ayland
On 05/07/17 06:38, Markus Armbruster wrote: > Copying Marcel for PCI expertise. > > Mark Cave-Ayland writes: > >> Hi all, >> >> I've been working on a patchset that brings the sun4u machine on >> qemu-system-sparc64 much closer to a real Ultra 5, however due to

Re: [Qemu-devel] Managing architectural restrictions with -device and libvirt

2017-07-05 Thread Mark Cave-Ayland
On 04/07/17 21:44, Daniel P. Berrange wrote: > On Tue, Jul 04, 2017 at 07:25:41PM +0100, Mark Cave-Ayland wrote: >> Hi all, >> >> I've been working on a patchset that brings the sun4u machine on >> qemu-system-sparc64 much closer to a real Ultra 5, however due to >> various design restrictions I

Re: [Qemu-devel] Managing architectural restrictions with -device and libvirt

2017-07-04 Thread Markus Armbruster
Copying Marcel for PCI expertise. Mark Cave-Ayland writes: > Hi all, > > I've been working on a patchset that brings the sun4u machine on > qemu-system-sparc64 much closer to a real Ultra 5, however due to > various design restrictions I need to be able to

Re: [Qemu-devel] Managing architectural restrictions with -device and libvirt

2017-07-04 Thread Daniel P. Berrange
On Tue, Jul 04, 2017 at 07:25:41PM +0100, Mark Cave-Ayland wrote: > Hi all, > > I've been working on a patchset that brings the sun4u machine on > qemu-system-sparc64 much closer to a real Ultra 5, however due to > various design restrictions I need to be able to restrict how devices > are added

[Qemu-devel] Managing architectural restrictions with -device and libvirt

2017-07-04 Thread Mark Cave-Ayland
Hi all, I've been working on a patchset that brings the sun4u machine on qemu-system-sparc64 much closer to a real Ultra 5, however due to various design restrictions I need to be able to restrict how devices are added to the machine with -device. On a real Ultra 5, the root PCI bus (sabre) has