All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: daniel.kiper@oracle.com, david.vrabel@citrix.com,
	Jan Beulich <JBeulich@suse.com>,
	Yang Z Zhang <yang.z.zhang@intel.com>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	boris.ostrovsky@oracle.com
Subject: Re: How many patches are missing in upstream Linux?
Date: Tue, 11 Mar 2014 11:09:07 -0400	[thread overview]
Message-ID: <20140311150907.GH13345@phenom.dumpdata.com> (raw)
In-Reply-To: <1394544731.30915.5.camel@kazak.uk.xensource.com>

On Tue, Mar 11, 2014 at 01:32:11PM +0000, Ian Campbell wrote:
> On Thu, 2014-03-06 at 14:26 -0500, Konrad Rzeszutek Wilk wrote:
> > Hadn't looked at:
> >  - pvSCSI,
> >  - pvUSB
> >  - blktap (My recolleciton is that Citrix is just carrying the old
> >    patchset around - but the end goal would be for QEMU to do all
> >    of this - but they haven't found somebody willing to do a lot
> >    of the work in this).
> 
> I think Qemu is already a pretty good fit, modulo some vague belief that
> blktap's vhd handling might be in some way superior. xl mostly just uses
> qemu when blkback isn't appropriate these days.
> 
> > The maintainer is being <insert your own opinion here>:
> >  - runtime microcode. What I had been told was to use the 'early
> >    microcode' mechanism - which is now implemented and Xen can also scan
> >    the initramfs to extract the microcode payload and apply it.
> > 
> >    But it misses the important part of server longevity in that the
> >    host might be running for years and the microcode might need to be
> >    updated during that time. bpetkov wasn't too thrilled about the
> >    runtime microcode and I hadn't come back to this yet to figure out
> >    what are his exact technical misgivings.
> 
> I have a vague memory of a userspace tool for calling the microcode
> hypercalls directly, which might suck from the point of view of needing
> to re-integrate with the distros existing use of the regular tools, but
> is better than nothing I guess.
> 
> Am I totally imagining that tool?

I did wrote it as a test to see if it could be done that way. And sure enough
it worked (I can't find it now, but I am sure Google can help).
But there are two insertions points in Linux for microcode:

1). You do a 'scan' or something like that in /sysfs. And it plucks the
   firmware images from /lib/firmware/[amd|intel]_ucode/*

2). You cat the blob in /dev/cpuX/<Something> and the kernel tries to apply
    it.


All of that is kind of driven by scripts - so my thought was too look at what
the distro scripts do for this. Or whether this is all suppose to be
automatic (udev sees a CPU, pokes at the /sysfs' and the microcode is updated).
But then there are many distros and..

Or just ignore all of that and implement it in the hypervisor and not worry
about it. But that is not nice and I think Jan would not be too happy
with me savaging the microcode API.

And I think I choose to implement the 'early-microcode' as a way to have this
working now.
> 
> Ian.
> 

      reply	other threads:[~2014-03-11 15:09 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-06  5:21 How many patches are missing in upstream Linux? Zhang, Yang Z
2014-03-06 10:38 ` Jan Beulich
2014-03-06 13:47   ` Fabio Fantoni
2014-03-06 19:26   ` Konrad Rzeszutek Wilk
2014-03-06 19:36     ` David Vrabel
2014-03-06 19:39       ` Konrad Rzeszutek Wilk
2014-03-07  1:35         ` Zhang, Yang Z
2014-03-07  1:49     ` Zhang, Yang Z
2014-03-07  9:16     ` Jan Beulich
2014-03-10 20:55     ` Jeremy Fitzhardinge
2014-03-11 15:04       ` Konrad Rzeszutek Wilk
2014-03-11 16:15         ` Jan Beulich
2014-03-11 17:38           ` Konrad Rzeszutek Wilk
2014-03-11 17:38       ` Atom2
2014-03-11 17:53         ` Konrad Rzeszutek Wilk
2014-03-11 18:35           ` Atom2
2014-03-11 20:33             ` Konrad Rzeszutek Wilk
2014-03-12  1:00               ` Atom2
2014-03-12  8:20                 ` Jan Beulich
2014-03-12 11:14                   ` Atom2
2014-03-12 11:42                     ` Jan Beulich
2014-03-12 11:58                       ` Atom2
2014-03-12 13:50                         ` Konrad Rzeszutek Wilk
2014-03-12 15:09                           ` Atom2
2014-03-12 16:30                             ` Konrad Rzeszutek Wilk
2014-03-11 13:32     ` Ian Campbell
2014-03-11 15:09       ` Konrad Rzeszutek Wilk [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=20140311150907.GH13345@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=daniel.kiper@oracle.com \
    --cc=david.vrabel@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    --cc=yang.z.zhang@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.