From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: [RFC PATCH] Scan initramfs for microcode cpio archive. (v1) Date: Fri, 12 Jul 2013 10:25:26 -0400 Message-ID: <1373639127-29467-1-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org, jbeulich@suse.com List-Id: xen-devel@lists.xenproject.org Greetings, Please see the following patch which implements a mechanism to scan the initramfs for the format of an microcode files. This is a feature that the Linux kernel has since v3.10 - where it searches in the initramfs for an archive of the microcode blob. The format is documented in the Linux tree and the commit description contains it. The tool to make this work is the initramfs creator. The author has provided an RFC patch: http://article.gmane.org/gmane.linux.kernel.initramfs/3318 which does that. That, along with this patch, allows the Xen hypervisor to update the microcode during bootup. Please review attached RFC patch. docs/misc/xen-command-line.markdown | 12 +++ xen/arch/x86/microcode.c | 160 ++++++++++++++++++++++++++++++++--- xen/common/Makefile | 2 +- xen/common/earlycpio.c | 151 +++++++++++++++++++++++++++++++++ xen/include/xen/earlycpio.h | 15 +++ 5 files changed, 326 insertions(+), 14 deletions(-) Konrad Rzeszutek Wilk (1): microcode: Scan the initramfs payload for microcode blob.