From: Markus Armbruster <armbru@redhat.com>
To: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: qemu-devel <qemu-devel@nongnu.org>, Marcel Apfelbaum <marcel@redhat.com>
Subject: Re: [Qemu-devel] Managing architectural restrictions with -device and libvirt
Date: Wed, 05 Jul 2017 07:38:26 +0200 [thread overview]
Message-ID: <8760f7fnot.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <74424b67-f20b-27c1-6c96-e2ee54bf5bd6@ilande.co.uk> (Mark Cave-Ayland's message of "Tue, 4 Jul 2017 19:25:41 +0100")
Copying Marcel for PCI expertise.
Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> 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 restrict how devices
> are added to the machine with -device.
>
> On a real Ultra 5, the root PCI bus (sabre) has 2 PCI bridges (simba A
> and simba B) with the onboard devices attached to simba A with 2 free
> slots, and an initially empty simba B.
>
> Firstly, is it possible to restrict the machine so that devices cannot
> be directly plugged into the root PCI bus, but only behind one of the
> PCI bridges? There is also an additional restriction in that slot 0
> behind simba A must be left empty to ensure that the ebus (containing
> the onboard devices) is the first device allocated.
I figure sabre, simba A, simba B and the onboard devices attached to
simba A are all created by MachineClass init().
What device provides "the ebus", and how is it created?
Can you provide a list of all onboard PCI devices and how they are
connected? Diagram would be best.
The real sabre has two slots, and doesn't support hot (un)plug. Can we
simply model that? If yes, the root PCI bus is full after init(), and
remains full. Takes care of "cannot directly plugged into the root PCI
bus".
> Secondly, how does libvirt handle these type of restrictions? Is it able
> to get the information from QEMU or is there some kind of libvirt
> profile that needs to be updated? And do newer versions of libvirt have
> the ability to attach devices behind PCI bridges using a GUI such as
> virt-manager, or is that only something that can only be done by
> directly editing the domain XML?
Got nothing to add to Dan's reply.
next prev parent reply other threads:[~2017-07-05 5:38 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-04 18:25 [Qemu-devel] Managing architectural restrictions with -device and libvirt Mark Cave-Ayland
2017-07-04 20:44 ` Daniel P. Berrange
2017-07-05 12:39 ` Mark Cave-Ayland
2017-07-05 5:38 ` Markus Armbruster [this message]
2017-07-05 12:58 ` Mark Cave-Ayland
2017-07-05 15:46 ` Markus Armbruster
2017-07-05 16:33 ` Mark Cave-Ayland
2017-07-05 18:05 ` Markus Armbruster
2017-07-06 6:52 ` Mark Cave-Ayland
2017-07-06 8:57 ` Marcel Apfelbaum
2017-07-06 11:25 ` Markus Armbruster
2017-07-06 12:28 ` Marcel Apfelbaum
2017-07-06 14:36 ` Markus Armbruster
2017-07-07 7:31 ` Mark Cave-Ayland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8760f7fnot.fsf@dusky.pond.sub.org \
--to=armbru@redhat.com \
--cc=marcel@redhat.com \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.