From: Alexander Graf <graf@amazon.com>
To: Ani Sinha <anisinha@redhat.com>
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
"Eduardo Habkost" <eduardo@habkost.net>,
"Marcel Apfelbaum" <marcel.apfelbaum@gmail.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Yanan Wang" <wangyanan55@huawei.com>,
"Zhao Liu" <zhao1.liu@intel.com>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Fabiano Rosas" <farosas@suse.de>,
"Laurent Vivier" <lvivier@redhat.com>,
"Gerd Hoffman" <kraxel@redhat.com>,
"Igor Mammedov" <imammedo@redhat.com>,
"Vitaly Kuznetsov" <vkuznets@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [PATCH v5] hw/misc/vmfwupdate: Introduce hypervisor fw-cfg interface support
Date: Fri, 14 Feb 2025 16:55:29 +0100 [thread overview]
Message-ID: <549e04b9-584e-4165-a3c8-b9b667059f78@amazon.com> (raw)
In-Reply-To: <CAK3XEhMcScorAeRFjRmmt2Wx_ehvw3-Onq_VrJTc=pwD2HoVQw@mail.gmail.com>
On 14.02.25 16:35, Ani Sinha wrote:
> On Mon, Feb 3, 2025 at 3:50 AM Alexander Graf <graf@amazon.com> wrote:
>> Hey Ani!
>>
>> On 28.01.25 22:31, Ani Sinha wrote:
[...]
>>> diff --git a/hw/core/machine.c b/hw/core/machine.c
>>> index c23b399496..0eaf8aa3ba 100644
>>> --- a/hw/core/machine.c
>>> +++ b/hw/core/machine.c
>>> @@ -34,6 +34,7 @@
>>> #include "hw/virtio/virtio-pci.h"
>>> #include "hw/virtio/virtio-net.h"
>>> #include "hw/virtio/virtio-iommu.h"
>>> +#include "hw/misc/vmfwupdate.h"
>>> #include "audio/audio.h"
>>>
>>> GlobalProperty hw_compat_9_2[] = {
>>> @@ -252,6 +253,7 @@ GlobalProperty hw_compat_2_8[] = {
>>> { "virtio-pci", "x-pcie-pm-init", "off" },
>>> { "cirrus-vga", "vgamem_mb", "8" },
>>> { "isa-cirrus-vga", "vgamem_mb", "8" },
>>> + {TYPE_VMFWUPDATE, "disable", "1"},
>>
>> If vmfwupdate is opt-in anyway, why disable for older machines?
> Some older machines does not have enough slots for new fw-cfg files.
> For those machines, we cannot add this device. Unless we disable the
> device, QEMU would crash on an assertion.
> This particular case was caught because the CI pipeline was failing.
> There might be other cases where we need to disable it but CI does not
> have a test case for it.
Please find a better way to fix that. You can have better error
propagation when fw-cfg fills up so it's clear that the problem is the
additional vmfwupdate device. But silently changing the behavior from
"Device does what I want it to do" to "Device is attached, but not
functional" based on machine version is a big no-go. You *must* fail
loudly, because you can not honor the user's wish (expose vmfwupdate).
Alex
next prev parent reply other threads:[~2025-02-14 15:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-29 6:31 [PATCH v5] hw/misc/vmfwupdate: Introduce hypervisor fw-cfg interface support Ani Sinha
2025-02-02 22:20 ` Alexander Graf
2025-02-14 15:35 ` Ani Sinha
2025-02-14 15:55 ` Alexander Graf [this message]
2025-02-15 11:41 ` Ani Sinha
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=549e04b9-584e-4165-a3c8-b9b667059f78@amazon.com \
--to=graf@amazon.com \
--cc=anisinha@redhat.com \
--cc=eduardo@habkost.net \
--cc=farosas@suse.de \
--cc=imammedo@redhat.com \
--cc=kraxel@redhat.com \
--cc=lvivier@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=vkuznets@redhat.com \
--cc=wangyanan55@huawei.com \
--cc=zhao1.liu@intel.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).