From: Alexander Graf <agraf@suse.de>
To: Eric Auger <eric.auger@linaro.org>,
Markus Armbruster <armbru@redhat.com>
Cc: quintela@redhat.com, qemu list <qemu-devel@nongnu.org>,
KVM devel mailing list <kvm@vger.kernel.org>
Subject: Re: [Qemu-devel] KVM call agenda for 2014-04-15
Date: Wed, 16 Apr 2014 12:48:58 +0200 [thread overview]
Message-ID: <534E601A.7000601@suse.de> (raw)
In-Reply-To: <534D5100.2050808@linaro.org>
On 15.04.14 17:32, Eric Auger wrote:
> On 04/15/2014 04:55 PM, Alexander Graf wrote:
>> On 04/15/2014 04:00 PM, Markus Armbruster wrote:
>>> Juan Quintela <quintela@redhat.com> writes:
>>>
>>>> Juan Quintela <quintela@redhat.com> wrote:
>>>>> Hi
>>>>>
>>>>> Please, send any topic that you are interested in covering.
>>>>>
>>>>> Thanks, Juan.
>>>> As there are no topics, no call.
>>> Did we have a call anyway? IRC log looks like we did...
>> Yes, we did. Whoever attended, please reply with things I mixed up or
>> forgot.
>>
>> Two topics:
>>
>> 1) pSeries IOMMU bus
>>
>> Live migration registers the name for a migration blob in
>> register_savevm_live() through qdev bus enumeration. The IOMMUs in our
>> pSeries machine don't live on any bus, so they all get the same name.
>> That leads to problems when we change the order of -device arguments on
>> the command line.
>>
>> One proposed solution to this is to create a bus for IOMMUs which allows
>> us to give each IOMMU a unique name; patch is on the list.
>>
>> Another proposed solution is to give devices the chance to override
>> their name themselves. IOMMUs do know their system wide unique ID and
>> can easily generate a unique device name for themselves. If we keep
>> names the way they were without this callback, we can stay backwards
>> compatible for x86 and have our IOMMUs return unique names.
>>
>>
>> 2) -device for non-PCI devices
>>
>> There are 2 reasons we want to create "platform" devices using -device
>> on the command line. One is that Xilinx is trying to create a full
>> machine from the command line. The other one is that we want VFIO for
>> platform devices.
>>
>> a) IRQs
>>
>> The "Anthony" way of doing IRQ links between random devices is his
>> stateful Pin object approach. Since Anthony is gone and it'd be a lot of
>> refactoring, we don't deem this approach realistic.
>>
>> Andreas suggested that we could make every qemu_irq a QOM object that
>> then gets a global name in the QOM hierarchy and can be addressed as
>> connector for IRQ output lines of devices in the -device command line
>> syntax.
>>
>> b) Memory Regions
>>
>> The "Anthony" approach was to turn memory regions into QOM objects. That
>> allows to expose memory region links as QOM links.
>>
>> The currently proposed approach is to add a -sysbusdev (or -device)
>> command line option that hard codedly puts memory region n of device x
>> into address a of the physical address space.
>>
>> c) Device Granularity
>>
>> We talked about the granularity of VFIO platform devices per -device
>> option. I was advocating that we should have a -device granularity that
>> "makes sense" for the user, rather than individual separate components.
>> The main reason for that is that we lose information about links of
>> different components of a device when we make it separate devices.
> Hi Alex, all
>
> in last week [RFC v2 5/6] virt: Assign a VFIO platform device to a virt
> VM in QEMU command line,
>
> available in
> https://lists.gnu.org/archive/html/qemu-devel/2014-04/msg01419.html
>
> I proposed an implementation using this kind of option line
>
> -device vfio-platform,vfio_device="fff51000.ethernet",\
> compat="calxeda/hb-xgmac",mmap-timeout-ms=1000
>
> where the machine file, ie. virt.c does the bulk of the work to simplify
> the work for the end-user. For devices that are more complex than the
> Midway xgmac we could imagine to have some device specific code in
> virt.c.
>
> I am not satified with the implementation which calls the realize
> function twice. However on the principle, do you think this could make
> sense?
That's one of the unsolved questions that we have outstanding. For the
mapping I see 3 possible solutions:
1) Create a special "platform" bus that allows for dynamic memory
region and irq placement according to children's properties
2) Loop through the QOM tree and search for unassigned devices, map
them in the machine file
3) Detangle everything and do explicit links between 2 globally
accessible objects somehow (-sysbusdev)
The device tree generation should always happen by walking the QOM tree.
Alex
next prev parent reply other threads:[~2014-04-16 10:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-14 17:37 KVM call agenda for 2014-04-15 Juan Quintela
2014-04-15 13:09 ` [Qemu-devel] " Alexander Graf
2014-04-15 13:26 ` Juan Quintela
2014-04-15 14:00 ` [Qemu-devel] " Markus Armbruster
2014-04-15 14:55 ` Alexander Graf
2014-04-15 15:32 ` [Qemu-devel] " Eric Auger
2014-04-16 10:48 ` Alexander Graf [this message]
2014-04-15 16:18 ` Peter Maydell
2014-04-15 16:56 ` Markus Armbruster
2014-04-15 21:34 ` Alexander Graf
2014-04-16 6:26 ` Markus Armbruster
2014-04-16 7:25 ` Alexander Graf
2014-04-15 16:09 ` 陈梁
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=534E601A.7000601@suse.de \
--to=agraf@suse.de \
--cc=armbru@redhat.com \
--cc=eric.auger@linaro.org \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox