From: Zhao Liu <zhao1.liu@intel.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH] hpet: do not overwrite properties on post_load
Date: Fri, 24 Jan 2025 22:59:44 +0800 [thread overview]
Message-ID: <Z5Oq4LppNuN7N6NL@intel.com> (raw)
In-Reply-To: <Z1K7oMumN1Mu+1v9@intel.com>
This patch was missed :-) which could free HPETState.flags from a
BqlCell.
> > - /* Push number of timers into capability returned via HPET_ID */
> > - s->capability &= ~HPET_ID_NUM_TIM_MASK;
> > - s->capability |= (s->num_timers - 1) << HPET_ID_NUM_TIM_SHIFT;
> > - hpet_cfg.hpet[s->hpet_id].event_timer_block_id = (uint32_t)s->capability;
> > -
> > - /* Derive HPET_MSI_SUPPORT from the capability of the first timer. */
> > - s->flags &= ~(1 << HPET_MSI_SUPPORT);
> > - if (s->timer[0].config & HPET_TN_FSB_CAP) {
> > - s->flags |= 1 << HPET_MSI_SUPPORT;
>
> About the MSI (FSB) support, I haven't seen it being used anywhere. Is it the
> dead code?
>
I have this question since I find it seems no way to set "msi" and
"timers" properties by user, and no code sets them.
DEFINE_PROP_UINT8("timers", HPETState, num_timers, HPET_MIN_TIMERS),
DEFINE_PROP_BIT("msi", HPETState, flags, HPET_MSI_SUPPORT, false),
Thanks,
Zhao
prev parent reply other threads:[~2025-01-24 14:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-05 20:37 [PATCH] hpet: do not overwrite properties on post_load Paolo Bonzini
2024-12-06 8:53 ` Zhao Liu
2025-01-24 14:59 ` Zhao Liu [this message]
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=Z5Oq4LppNuN7N6NL@intel.com \
--to=zhao1.liu@intel.com \
--cc=pbonzini@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 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.