From: Oliver Upton <oupton@google.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Sean Christopherson" <sean.j.christopherson@intel.com>,
kvm@vger.kernel.org, "Radim Krčmář" <rkrcmar@redhat.com>
Subject: Re: [PATCH] KVM: nVMX: Use SET_MSR_OR_WARN() to simplify failure logging
Date: Fri, 13 Dec 2019 15:55:34 -0800 [thread overview]
Message-ID: <20191213235534.GA55046@google.com> (raw)
In-Reply-To: <2070ffde-5724-df7e-4845-1a4eac129756@redhat.com>
On Thu, Dec 12, 2019 at 01:43:27AM +0100, Paolo Bonzini wrote:
> On 02/12/19 22:21, Sean Christopherson wrote:
> > As for the original code, arguably it *should* do a full WARN and not
> > simply log the error, as kvm_set_msr() should never fail if
> > VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL was exposed to L1, unlike the above two
> > cases where KVM is processing an L1-controlled MSR list, e.g.:
> >
> > if (vmcs12->vm_exit_controls & VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL)
> > WARN_ON_ONCE(kvm_set_msr(vcpu, MSR_CORE_PERF_GLOBAL_CTRL,
> > vmcs12->host_ia32_perf_global_ctrl));
> >
> > Back to this patch, this isn't simply consolidating code, it's promoting
> > L1-controlled messages from pr_debug() to pr_warn().
> >
> > What if you add a patch to remove SET_MSR_OR_WARN() and instead manually
> > do the WARN_ON_ONCE() as above, and then introduce a new macro to
> > consolidate the pr_debug_ratelimited() stuff in this patch?
Sean,
Thank you for the detailed review of this patch (as well as the last one
that I snuck past you :-P). I'm in complete agreement with your
sentiments, a follow-up is in order. I'll get that out soon.
> Should go without saying (Sean is a Certified Reviewer according to
> MAINTAINERS :)) but I agree.
>
> Paolo
Sean has been a great help in providing detailed reviews -- well
deserving of the designation! Thank you for pinging this thread, Paolo.
--
Best,
Oliver
prev parent reply other threads:[~2019-12-13 23:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-28 9:46 [PATCH] KVM: nVMX: Use SET_MSR_OR_WARN() to simplify failure logging Oliver Upton
2019-12-02 21:21 ` Sean Christopherson
2019-12-12 0:43 ` Paolo Bonzini
2019-12-13 23:55 ` Oliver Upton [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=20191213235534.GA55046@google.com \
--to=oupton@google.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=rkrcmar@redhat.com \
--cc=sean.j.christopherson@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 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.