From: Paul Mackerras <paulus@ozlabs.org>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>,
kvm@vger.kernel.org, kvm-ppc@vger.kernel.org,
"David Gibson" <david@gibson.dropbear.id.au>
Subject: Re: [PATCH] KVM: PPC: Book3S: Provide information about hardware/firmware CVE workarounds
Date: Thu, 18 Jan 2018 07:48:37 +1100 [thread overview]
Message-ID: <20180117204837.GA22300@fergus.ozlabs.ibm.com> (raw)
In-Reply-To: <19b0b672-ba88-b859-8a03-4a538bfc8c3a@redhat.com>
On Wed, Jan 17, 2018 at 07:03:13PM +0100, Paolo Bonzini wrote:
> On 17/01/2018 15:27, Radim Krčmář wrote:
> > 2018-01-17 08:51+1100, Paul Mackerras:
> >> On Tue, Jan 16, 2018 at 03:45:11PM +0100, Paolo Bonzini wrote:
> >>> On 16/01/2018 01:59, Paul Mackerras wrote:
> >>>> This adds a new ioctl, KVM_PPC_GET_CPU_CHAR, that gives userspace
> >>>> information about the underlying machine's level of vulnerability
> >>>> to the recently announced vulnerabilities CVE-2017-5715,
> >>>> CVE-2017-5753 and CVE-2017-5754, and whether the machine provides
> >>>> instructions to assist software to work around the vulnerabilities.
> >>>>
> >>>> The ioctl returns two u64 words describing characteristics of the
> >>>> CPU and required software behaviour respectively, plus two mask
> >>>> words which indicate which bits have been filled in by the kernel,
> >>>> for extensibility. The bit definitions are the same as for the
> >>>> new H_GET_CPU_CHARACTERISTICS hypercall.
> >>>>
> >>>> There is also a new capability, KVM_CAP_PPC_GET_CPU_CHAR, which
> >>>> indicates whether the new ioctl is available.
> >>>>
> >>>> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
> >>>> ---
> >>>
> >>> Thanks, looks good. Would you like this in 4.15?
> >>
> >> Yes please. Will you just apply the patch, or do you want me to put
> >> it in a branch for you to pull?
> >
> > I can apply it directly.
> >
> > Do I understand correctly that the interface is a KVM hypercall because
> ^^^^^^^^^
>
> ioctl?
>
> > we need to forward this information into guests and other userspace can
> > do nothing with the information?
>
> There will probably be someone else that can consume it sooner or later.
> sysfs or /proc/cpuinfo probably would be a better interface. But I
> guess KVM is the prime consumer...
Right, it is. KVM needs all the bits, and I don't see why any other
userspace consumer would need more than a couple of them.
Paul.
next prev parent reply other threads:[~2018-01-17 20:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-16 0:59 [PATCH] KVM: PPC: Book3S: Provide information about hardware/firmware CVE workarounds Paul Mackerras
2018-01-16 14:45 ` Paolo Bonzini
2018-01-16 21:51 ` Paul Mackerras
2018-01-17 14:27 ` Radim Krčmář
2018-01-17 18:03 ` Paolo Bonzini
2018-01-17 20:48 ` Paul Mackerras [this message]
2018-01-18 4:20 ` David Gibson
2018-01-18 4:20 ` David Gibson
2018-01-19 4:51 ` [PATCH v2] " Paul Mackerras
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=20180117204837.GA22300@fergus.ozlabs.ibm.com \
--to=paulus@ozlabs.org \
--cc=david@gibson.dropbear.id.au \
--cc=kvm-ppc@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=rkrcmar@redhat.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).