From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: "Kamil Szczęk" <kamil@szczek.dev>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: "qemu-trivial@nongnu.org" <qemu-trivial@nongnu.org>,
Joelle van Dyne <j@getutm.app>,
Bernhard Beschow <shentey@gmail.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH-for-9.1] hw/i386/pc: Warn about unsatisfied vmport deps
Date: Fri, 16 Aug 2024 08:07:17 +0200 [thread overview]
Message-ID: <db09223b-fba4-485e-953c-73f050273c5b@linaro.org> (raw)
In-Reply-To: <ghPjnPAU8FvuVvcKbO9wNpQPgm4ZwkjL1j5Vh-voSnVI8EE4tCUKDqmBj7LGXv2cc7Yt7IWlMvnbvA-I6QxR7iS6xDyfIwvpuKtEMVbxHIo=@szczek.dev>
On 15/8/24 20:22, Kamil Szczęk wrote:
> Hi Philippe and sorry for the delay!
>
> On Wednesday, August 14th, 2024 at 16:02, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>
>>
>>
>> Hi Kamil,
>>
>> On 14/8/24 13:10, Kamil Szczęk wrote:
>>
>>> Since commit 4ccd5fe22feb95137d325f422016a6473541fe9f ('pc: add option
>>> to disable PS/2 mouse/keyboard'), the vmport will not be created unless
>>> the i8042 PS/2 controller is enabled. To not confuse users, let's add a
>>> warning if vmport was explicitly requested, but the i8042 controller is
>>> disabled. This also changes the behavior of vmport=auto to take i8042
>>> controller availability into account.
>>>
>>> Signed-off-by: Kamil Szczęk kamil@szczek.dev
>>> ---
>>> hw/i386/pc.c | 4 ++++
>>> hw/i386/pc_piix.c | 3 ++-
>>> hw/i386/pc_q35.c | 2 +-
>>> qemu-options.hx | 4 ++--
>>> 4 files changed, 9 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/hw/i386/pc.c b/hw/i386/pc.c
>>> index c74931d577..5bd8dd0350 100644
>>> --- a/hw/i386/pc.c
>>> +++ b/hw/i386/pc.c
>>> @@ -1100,6 +1100,10 @@ static void pc_superio_init(ISABus *isa_bus, bool create_fdctrl,
>>> }
>>>
>>> if (!create_i8042) {
>>> + if (!no_vmport) {
>>> + warn_report("vmport requires the i8042 controller to be enabled");
>>
>>
>> Should we fail instead?
>
> I think failing would be preferrable over a warning, but I opted for the latter to maintain backward compatibility in this specific configuration.
>
> But now that I think about it, this explicit configuration (vmport=on,i8042=off) is probably very rare in the real world, if it is exercised at all. So failing may not be as big of a breaking change as I first thought.
>
> If you're fine with introducing this "breaking" change, then I'm down for it too. Let me know if I should post v2.
Better fail early on incoherent config options rather than keep
going with a broken machine IMHO, so I'd rather a v2.
next prev parent reply other threads:[~2024-08-16 6:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-14 11:10 [PATCH] hw/i386/pc: Warn about unsatisfied vmport deps Kamil Szczęk
2024-08-14 14:02 ` [PATCH-for-9.1] " Philippe Mathieu-Daudé
2024-08-15 18:22 ` Kamil Szczęk
2024-08-16 6:07 ` Philippe Mathieu-Daudé [this message]
2024-08-16 13:14 ` [PATCH] " Bernhard Beschow
2024-08-17 8:49 ` Kamil Szczęk
2024-08-17 11:54 ` Bernhard Beschow
2024-08-17 11:59 ` Bernhard Beschow
2024-08-17 12:33 ` Kamil Szczęk
2024-08-17 12:19 ` Michael S. Tsirkin
2024-08-17 12:29 ` Kamil Szczęk
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=db09223b-fba4-485e-953c-73f050273c5b@linaro.org \
--to=philmd@linaro.org \
--cc=j@getutm.app \
--cc=kamil@szczek.dev \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=shentey@gmail.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;
as well as URLs for NNTP newsgroup(s).