From: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
To: David Gibson <david@gibson.dropbear.id.au>, Greg Kurz <groug@kaod.org>
Cc: qemu-ppc@nongnu.org, mikey@neuling.org, kvm@vger.kernel.org,
mst@redhat.com, mpe@ellerman.id.au, cohuck@redhat.com,
qemu-devel@nongnu.org, paulus@samba.org, clg@kaod.org,
pbonzini@redhat.com, Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Subject: Re: [PATCH v4 3/3] ppc: Enable 2nd DAWR support on p10
Date: Thu, 8 Apr 2021 09:13:38 +0530 [thread overview]
Message-ID: <298d37fc-49b9-5297-b196-14b35b1ec4de@linux.ibm.com> (raw)
In-Reply-To: <YG5tg2aHNR1/5A6H@yekko.fritz.box>
>>> +static void cap_dawr1_apply(SpaprMachineState *spapr, uint8_t val,
>>> + Error **errp)
>>> +{
>>> + ERRP_GUARD();
>>> + if (!val) {
>>> + return; /* Disable by default */
>>> + }
>>> +
>>> + if (tcg_enabled()) {
>>> + error_setg(errp, "DAWR1 not supported in TCG.");
>>> + error_append_hint(errp, "Try appending -machine cap-dawr1=off\n");
>>> + } else if (kvm_enabled()) {
>>> + if (!kvmppc_has_cap_dawr1()) {
>>> + error_setg(errp, "DAWR1 not supported by KVM.");
>>> + error_append_hint(errp, "Try appending -machine cap-dawr1=off\n");
>>> + } else if (kvmppc_set_cap_dawr1(val) < 0) {
>>> + error_setg(errp, "DAWR1 not supported by KVM.");
>>
>> Well... technically KVM does support DAWR1 but something went wrong when
>> trying to enable it. In case you need to repost, maybe change the error
>> message in this path, e.g. like in cap_nested_kvm_hv_apply().
>
> This won't be going in until 6.1 anyway, so please to update the
> message.
Sure. Will post v5 with updated message.
>
> I'd probably prefer to actually wait until the 6.1 tree opens to apply
> this, rather than pre-queueing it in ppc-for-6.1, because there's a
> fairly good chance the header update patch will conflict with someone
> else's during the 6.1 merge flurry.
No worries.
Thanks Greg, David for the review.
Ravi
prev parent reply other threads:[~2021-04-08 3:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-06 5:38 [PATCH v4 0/3] ppc: Enable 2nd DAWR support on Power10 Ravi Bangoria
2021-04-06 5:38 ` [PATCH v4 1/3] Linux headers: update from 5.12-rc3 Ravi Bangoria
2021-04-06 5:38 ` [PATCH v4 2/3] ppc: Rename current DAWR macros and variables Ravi Bangoria
2021-04-06 5:38 ` [PATCH v4 3/3] ppc: Enable 2nd DAWR support on p10 Ravi Bangoria
2021-04-07 8:10 ` Greg Kurz
2021-04-08 2:42 ` David Gibson
2021-04-08 3:43 ` Ravi Bangoria [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=298d37fc-49b9-5297-b196-14b35b1ec4de@linux.ibm.com \
--to=ravi.bangoria@linux.ibm.com \
--cc=clg@kaod.org \
--cc=cohuck@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=groug@kaod.org \
--cc=kvm@vger.kernel.org \
--cc=mikey@neuling.org \
--cc=mpe@ellerman.id.au \
--cc=mst@redhat.com \
--cc=paulus@samba.org \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@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).