All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about qemu patch
@ 2026-01-08 11:05 Alano Song
  2026-01-08 12:47 ` Alex Bennée
  0 siblings, 1 reply; 2+ messages in thread
From: Alano Song @ 2026-01-08 11:05 UTC (permalink / raw)
  To: qemu-devel@nongnu.org; +Cc: Jonathan Cameron, peter.maydell@linaro.org

[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]

Hi all,

I am writing to share a patch and ask for some advice.

I noticed there is no DesignWare I2C controller model in QEMU,
so I have attempted to add it:
https://lore.kernel.org/qemu-devel/20260106131253.16192-1-AlanoSong@163.com/

I have a couple of questions regarding the patch:


1) Is it acceptable to submit the I2C controller model by itself,

    without instantiating it on any specific machine board?

    Users who need it could then add it to their own machine models.

    1.1) If it is required to instantiate the new model on a machine board,
        which board would you recommend for this purpose?

        Patch reviewer remained me, that the arm/virt board is a main model used.
        And I don't want make troubles on such important model.

2) Coincidentally, I found that Joel Stanley is doing the same work,HAHA :)
    https://lore.kernel.org/qemu-devel/20260106055658.209029-12-joel@jms.id.au/


    What should I do next, may be we can work together to submit such model ?

Best Regards,
Alano Song.

[-- Attachment #2: Type: text/html, Size: 2240 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question about qemu patch
  2026-01-08 11:05 Question about qemu patch Alano Song
@ 2026-01-08 12:47 ` Alex Bennée
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Bennée @ 2026-01-08 12:47 UTC (permalink / raw)
  To: Alano Song
  Cc: qemu-devel@nongnu.org, Jonathan Cameron, peter.maydell@linaro.org,
	Joel Stanley, Chris Rauer

"Alano Song" <alanosong@163.com> writes:

> Hi all,
>
> I am writing to share a patch and ask for some advice.
>
> I noticed there is no DesignWare I2C controller model in QEMU,
> so I have attempted to add it:
> https://lore.kernel.org/qemu-devel/20260106131253.16192-1-AlanoSong@163.com/
>
> I have a couple of questions regarding the patch:
>
> 1) Is it acceptable to submit the I2C controller model by itself,
>     without instantiating it on any specific machine board?

The problem with this approach is the code can very easily bitrot if it
is not exercised by anything. We also tend to cull code that isn't used
(for example if the old machine model was removed and we didn't notice
at the time it was the only user of a device).

>     Users who need it could then add it to their own machine models.

There is a long term aspiration to support dynamic machine models so
they can be defined with some sort of Domain Specific Language (DSL).
Until we reach that state we can only support devices used by machine
models in the upstream.

>     1.1) If it is required to instantiate the new model on a machine board,
>         which board would you recommend for this purpose?
>
>         Patch reviewer remained me, that the arm/virt board is a main model used.
>         And I don't want make troubles on such important model.

virt is a poor choice for as it is the main platform for virtualisation
so adding extra devices just increases the potential surface area for
security exploits.

Ideally you would find a real machine that uses the IP and model that
board. Looking at Zephyr it doesn't look like there are any existing
QEMU models missing it:

  https://docs.zephyrproject.org/latest/boards/index.html#show-shields=false&compatibles=snps%2Cdesignware-i2c

>
> 2) Coincidentally, I found that Joel Stanley is doing the same work,HAHA :)
>     https://lore.kernel.org/qemu-devel/20260106055658.209029-12-joel@jms.id.au/
>
>     What should I do next, may be we can work together to submit such
>     model ?

I would contact Joel/Chris (cc'd) and collaborate on getting the best of
both patches. It looks like the patch is part of a larger series that
ads a new machine which solves one of the problems.

>
> Best Regards,
> Alano Song.

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-08 12:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-08 11:05 Question about qemu patch Alano Song
2026-01-08 12:47 ` Alex Bennée

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.