From: Akihiko Odaki <akihiko.odaki@daynix.com>
To: "Dmitry Osipenko" <dmitry.osipenko@collabora.com>,
"Alex Bennée" <alex.bennee@linaro.org>
Cc: "Huang Rui" <ray.huang@amd.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Michael S . Tsirkin" <mst@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Gert Wollny" <gert.wollny@collabora.com>,
qemu-devel@nongnu.org,
"Gurchetan Singh" <gurchetansingh@chromium.org>,
"Alyssa Ross" <hi@alyssa.is>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"Alex Deucher" <alexander.deucher@amd.com>,
"Stefano Stabellini" <stefano.stabellini@amd.com>,
"Christian König" <christian.koenig@amd.com>,
"Xenia Ragiadakou" <xenia.ragiadakou@amd.com>,
"Pierre-Eric Pelloux-Prayer" <pierre-eric.pelloux-prayer@amd.com>,
"Honglei Huang" <honglei1.huang@amd.com>,
"Julia Zhang" <julia.zhang@amd.com>,
"Chen Jiqian" <Jiqian.Chen@amd.com>,
"Rob Clark" <robdclark@gmail.com>,
"Yiwei Zhang" <zzyiwei@chromium.org>,
"Sergio Lopez Pascual" <slp@redhat.com>
Subject: Re: [PATCH v5 8/8] docs/system: Expand the virtio-gpu documentation
Date: Thu, 27 Feb 2025 15:40:09 +0900 [thread overview]
Message-ID: <c5e4b556-86de-4f25-b5d7-0b6cc751569e@daynix.com> (raw)
In-Reply-To: <6714cca4-7367-4d99-84b6-c83df80140e6@collabora.com>
On 2025/02/18 15:27, Dmitry Osipenko wrote:
> On 2/13/25 07:32, Akihiko Odaki wrote:
>> On 2025/02/10 6:03, Dmitry Osipenko wrote:
>>> On 2/6/25 08:41, Akihiko Odaki wrote:
>>>> On 2025/02/06 2:40, Dmitry Osipenko wrote:
>>>>> On 2/3/25 08:31, Akihiko Odaki wrote:
>>>>> ...
>>>>>>> Requirements don't vary much. For example virglrenderer minigbm
>>>>>>> support
>>>>>>> is mandatory for crosvm, while for QEMU it's not.
>>>>>>
>>>>>> Is that true? It seems that virglrenderer uses builds without minigbm
>>>>>> support to run tests on GitLab CI.
>>>>>
>>>>> CI is running in a headless mode using software renderer. For a
>>>>> full-featured crosvm support running on a baremetal, minigbm should be
>>>>> needed, along with other downstream features.
>>>>
>>>> That makes sense.
>>>>
>>>> Based on your input, for QEMU, I don't think we need a separate
>>>> documentation to describe libvirglrenderer's build flags though crosvm
>>>> should have some documentation saying it requires minigbm.
>>>>
>>>>>
>>>>>> Anyway, if there is any variance in the build procedure, that may
>>>>>> justify having a separate build instruction in QEMU tree to avoid
>>>>>> confusion. Otherwise, it's better to have a documentation shared with
>>>>>> other VMMs.
>>>>>>
>>>>>>>
>>>>>>>> I'm not entirely sure the documentation will stay as is for that
>>>>>>>> long.
>>>>>>>> The requirements of Intel native context refer to merge requests
>>>>>>>> that
>>>>>>>> can be merged sooner or later. Asahi may need more updates if you
>>>>>>>> document it too because its DRM ABI is still unstable.
>>>>>>>
>>>>>>> The unstable parts of course will need to be updated sooner, but the
>>>>>>> stable should be solid for years. I expect that about a year later
>>>>>>> requirements will need to be revisited.
>>>>>>>
>>>>>>
>>>>>> It will be some burden in the future. Now you are adding this
>>>>>> documentation just for QEMU, but crosvm and libkrun may gain similar
>>>>>> documentation. The DRM native context support for Intel and Asahi
>>>>>> is in
>>>>>> development, and I guess nvk will support it someday.
>>>>>>
>>>>>> So, a very rough estimation of future documentation updates will be:
>>>>>> (number of VMMs) * (number of DRM native contexts in development)
>>>>>> = 3 * 3
>>>>>> = 9
>>>>>>
>>>>>> That's manageable but suboptimal.
>>>>>
>>>>> I don't mind deferring the doc addition if that's preferred. Either way
>>>>> is fine with me. Yet it's better to have doc than not.
>>>>
>>>> My suggestion is not to defer the addition, but to add it to Mesa, which
>>>> does not require deferring.
>>>>
>>>>>
>>>>> In my view crosvm and libkrun exist separately from QEMU, they serve a
>>>>> different purpose. Majority of QEMU users likely never heard about
>>>>> those
>>>>> other VMMs. A unified doc won't be a worthwhile effort, IMO.
>>>>>
>>>>
>>>> When evaluating the utility of a unified documentation, Whether the
>>>> majority of Mesa/Virgl users care VMMs other than QEMU matters more. And
>>>> I think it is true; libkrun and crosvm are excellent options for
>>>> graphics-accelerated VMs.
>>>>
>>>> If we have a unified documentation, any VM can point to it for the build
>>>> instruction of Mesa and virglrenderer. Once that's done, QEMU users who
>>>> want graphics acceleration can take the following steps:
>>>> 1. See docs/system/devices/virtio-gpu.rst
>>>> 2. Figure out that they need Mesa and virglrenderer
>>>> 3. Click the link to the unified documentation
>>>> 4. Build Mesa and virglrenderer accordingly
>>>>
>>>> No other VMMs will bother them in this procedure.
>>>
>>> Will see. For the starter, adding example build flags to QEMU doesn't
>>> hurt, it's a very minimal information. Later on, if and when all
>>> relevant Mesa/virglrenderer doc pages will appear, it won't be a problem
>>> replace QEMU flags with the links. Please let's do it step-by-step, one
>>> step at a time :)
>>>
>>
>> To be honest, I'm concerned that you may be using QEMU as a staging tree
>> for Mesa/virglrenderer. Submitting a documentation to QEMU as a
>> preparation to submit one to Mesa is not OK.
>>
>> You shouldn't submit a documentation to QEMU if upstream
>> Mesa developers rejects it because it contains too little information.
>> It may not hurt QEMU, but still lacks a valid reasoning.
>
> Don't understand what you're talking about here. I may remind that this
> is not my QEMU doc patch to begin with, hence it has nothing to do with
> Mesa nor with virglrenderer. Alex wants to help QEMU users by adding
> more QEMU documentation.
I understand Alex and you intend to help QEMU users, but sometimes a
change to help QEMU users is better to be done in the upstream of its
dependency.
For example, when I submitted a patch to suppress a sanitizer warning in
the past, I was asked if it may be better to propose a change of the
sanitizer behavior instead of changing QEMU code. We eventually
concluded we should change our code at that time, but it could have
turned out otherwise. It is no different from the normal review process;
a submitter proposes a solution, a reviewer suggests alternatives, and
both figure out the optimal one in the discussion.
>
> Maybe you're also not very familiar with the Mesa development process.
> This is okay, no problems.
>
>> Mesa should have more people who care virtio-gpu as there are people
>> using other VMMs and perhaps it may be difficult to convince them to add
>> a documentation like this. It is still not a good idea to workaround
>> that by adding one to QEMU. The documentation submitted to QEMU is
>> mostly reviewed only by me, who barely used Venus and DRM native
>> contexts, which is not a good sign. Getting reviewed by more people is
>> one of the advantage of open-source contribution after all so let's keep
>> it.
>>
>> I can help you add a documentation to Mesa by reviewing and supporting
>> one if you want, but I cannot support adding one to QEMU if it's done to
>> avoid a potential challenge to add it to Mesa.
>
> Thanks a lot! More reviewers always good to have, will definitely ping
> you. Right now writing more Mesa documentation isn't a priority, hence
> will take time to get to it.
>
I appreciate your contribution to the documentation too. Once there was
no documentation, but Gurchetan Singh added one along with their
Rutabaga patches. With your change, the documentation will be
comprehensive also for virglrenderer.
Regards,
Akihiko Odaki
next prev parent reply other threads:[~2025-02-27 6:41 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-19 22:00 [PATCH v5 0/8] Support virtio-gpu DRM native context Dmitry Osipenko
2025-01-19 22:00 ` [PATCH v5 1/8] ui/sdl2: Restore original context after new context creation Dmitry Osipenko
2025-01-19 22:00 ` [PATCH v5 2/8] ui/sdl2: Implement dpy dmabuf functions Dmitry Osipenko
2025-01-19 22:00 ` [PATCH v5 3/8] virtio-gpu: Handle virgl fence creation errors Dmitry Osipenko
2025-01-19 22:00 ` [PATCH v5 4/8] virtio-gpu: Support asynchronous fencing Dmitry Osipenko
[not found] ` <87cyghr3l2.fsf@draig.linaro.org>
2025-01-22 12:18 ` Dmitry Osipenko
2025-01-19 22:00 ` [PATCH v5 5/8] virtio-gpu: Support DRM native context Dmitry Osipenko
2025-01-19 22:00 ` [PATCH v5 6/8] ui/sdl2: Don't disable scanout when display is refreshed Dmitry Osipenko
2025-01-19 22:00 ` [PATCH v5 7/8] ui/gtk: " Dmitry Osipenko
2025-01-19 22:00 ` [PATCH v5 8/8] docs/system: Expand the virtio-gpu documentation Dmitry Osipenko
[not found] ` <c2e1c362-5d02-488e-b849-d0b14781a60f@daynix.com>
[not found] ` <87ikq9r7wj.fsf@draig.linaro.org>
2025-01-21 4:26 ` Akihiko Odaki
2025-01-26 18:06 ` Dmitry Osipenko
2025-01-27 4:57 ` Akihiko Odaki
2025-02-02 22:08 ` Dmitry Osipenko
2025-02-03 5:31 ` Akihiko Odaki
2025-02-05 17:40 ` Dmitry Osipenko
2025-02-06 5:41 ` Akihiko Odaki
2025-02-09 21:03 ` Dmitry Osipenko
2025-02-13 4:32 ` Akihiko Odaki
2025-02-18 6:27 ` Dmitry Osipenko
2025-02-18 6:35 ` Dmitry Osipenko
2025-02-27 6:40 ` Akihiko Odaki [this message]
[not found] ` <871pwxqyr3.fsf@draig.linaro.org>
2025-01-22 12:25 ` [PATCH v5 0/8] Support virtio-gpu DRM native context Dmitry Osipenko
2025-01-22 17:00 ` Alex Bennée
2025-01-23 11:23 ` Dmitry Osipenko
2025-01-23 11:58 ` Alex Bennée
2025-01-23 12:37 ` Dmitry Osipenko
2025-01-27 14:50 ` Alex Bennée
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=c5e4b556-86de-4f25-b5d7-0b6cc751569e@daynix.com \
--to=akihiko.odaki@daynix.com \
--cc=Jiqian.Chen@amd.com \
--cc=alex.bennee@linaro.org \
--cc=alexander.deucher@amd.com \
--cc=christian.koenig@amd.com \
--cc=dmitry.osipenko@collabora.com \
--cc=gert.wollny@collabora.com \
--cc=gurchetansingh@chromium.org \
--cc=hi@alyssa.is \
--cc=honglei1.huang@amd.com \
--cc=julia.zhang@amd.com \
--cc=kraxel@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=pierre-eric.pelloux-prayer@amd.com \
--cc=qemu-devel@nongnu.org \
--cc=ray.huang@amd.com \
--cc=robdclark@gmail.com \
--cc=roger.pau@citrix.com \
--cc=slp@redhat.com \
--cc=stefano.stabellini@amd.com \
--cc=xenia.ragiadakou@amd.com \
--cc=zzyiwei@chromium.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).