From: Igor Mammedov <imammedo@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: qemu-devel@nongnu.org, anisinha@redhat.com, jusual@redhat.com,
kraxel@redhat.com
Subject: Re: [PATCH v2] acpi: pcihp: make pending delete blocking action expire
Date: Wed, 5 Apr 2023 11:45:34 +0200 [thread overview]
Message-ID: <20230405114534.4a795ab3@imammedo.users.ipa.redhat.com> (raw)
In-Reply-To: <20230405044231-mutt-send-email-mst@kernel.org>
On Wed, 5 Apr 2023 04:47:48 -0400
"Michael S. Tsirkin" <mst@redhat.com> wrote:
[...]
> This is arguably a regression but not in this release yes?
> So I don't think it needs to block qemu release.
yep, it's 'old' regression introduced in earlier releases
> Fixes: cce8944cc9ef ("qdev-monitor: Forbid repeated device_del")
>
>
> > ---
> > v2:
> > * change timeout to 1ms
> > * add comment to expire usage
> > * massage commit message to be a bit more clear
> >
> > CC: mst@redhat.com
> > CC: anisinha@redhat.com
> > CC: jusual@redhat.com
> > CC: kraxel@redhat.com
>
> It's helpful to have CC before --- so backporters know whom to CC, too.
>
> > ---
> > hw/acpi/pcihp.c | 10 ++++++++++
> > 1 file changed, 10 insertions(+)
> >
> > diff --git a/hw/acpi/pcihp.c b/hw/acpi/pcihp.c
> > index dcfb779a7a..5daa732a33 100644
> > --- a/hw/acpi/pcihp.c
> > +++ b/hw/acpi/pcihp.c
> > @@ -357,6 +357,16 @@ void acpi_pcihp_device_unplug_request_cb(HotplugHandler *hotplug_dev,
> > * acpi_pcihp_eject_slot() when the operation is completed.
> > */
> > pdev->qdev.pending_deleted_event = true;
> > + /* if unplug was requested before OSPM is initialized,
> > + * linux kernel will clear GPE0.sts[] bits during boot, which effectively
> > + * hides unplug event. BAnd than followup qmp_device_del() calls remain
>
> BAnd?
>
> > + * blocked by above flag permanently.
> > + * Unblock qmp_device_del() by setting expire limit, so user can
> > + * repeat unplug request later when OSPM has been booted.
> > + */
> > + pdev->qdev.pending_deleted_expires_ms =
> > + qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL); /* 1 msec */
> > +
> > s->acpi_pcihp_pci_status[bsel].down |= (1U << slot);
> > acpi_send_event(DEVICE(hotplug_dev), ACPI_PCI_HOTPLUG_STATUS);
> > }
> > --
> > 2.39.1
>
next prev parent reply other threads:[~2023-04-05 9:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-05 8:34 [PATCH v2] acpi: pcihp: make pending delete blocking action expire Igor Mammedov
2023-04-05 8:47 ` Michael S. Tsirkin
2023-04-05 9:38 ` Igor Mammedov
2023-04-05 10:02 ` Michael S. Tsirkin
2023-04-05 12:23 ` Igor Mammedov
2023-04-05 9:45 ` Igor Mammedov [this message]
2023-04-06 6:21 ` 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=20230405114534.4a795ab3@imammedo.users.ipa.redhat.com \
--to=imammedo@redhat.com \
--cc=anisinha@redhat.com \
--cc=jusual@redhat.com \
--cc=kraxel@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.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).