xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] x86/microcode: support for microcode update in Xen dom0
@ 2011-09-26 18:17 Jeremy Fitzhardinge
  2011-09-26 18:18 ` [PATCH 1/3] xen/acpi: Domain0 acpi parser related platform hypercall Jeremy Fitzhardinge
                   ` (4 more replies)
  0 siblings, 5 replies; 42+ messages in thread
From: Jeremy Fitzhardinge @ 2011-09-26 18:17 UTC (permalink / raw)
  To: H. Peter Anvin
  Cc: the arch/x86 maintainers, Tigran Aivazian, Xen Devel,
	Linux Kernel Mailing List, Jeremy Fitzhardinge

From: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>

Hi all,

I'm proposing this for the next merge window v3.2.

I originally posted this early this year, and it prompted a debate
about what the "proper" way that Linux should do microcode updates,
with the general concensus being "earlier", ideally in the bootloader
(or in the case of Xen, as the hypervisor boots before starting any
domains).  However, as far as I know there has been no progress along
those lines.

I would like to therefore merge this so that a Linux kernel booting as
dom0 under Xen can update the microcode in the same manner as a kernel
booting natively.  When we work out how boot-time microcode updates
can be done, then we'll look at modifying Xen accordingly.  In the
meantime, we should have a functional parity.

The only change to this code from the previous posting is some patch
restructuring so that regardless of how the platform.h ABI header gets
merged (since there are some other pending branches containing it), it
will be identical and cause no merge headaches.

>From original posting:

This series adds a new "Xen" microcode update type, in addition to
Intel and AMD.

The Xen hypervisor is responsible for performing the actual microcode
update (since only it knows what physical CPUs are in the system and
has sufficient privilege to access them), but it requires the dom0
kernel to provide the actual microcode update data.

Xen update mechanism is uniform independent of the CPU type, but the
driver must know where to find the data file, which depends on the CPU
type.  And since the update hypercall updates all CPUs, we only need
to execute it once on any CPU - but for simplicity it just runs it only
on (V)CPU 0.

Thanks,
	J

Jeremy Fitzhardinge (2):
  xen: add dom0_op hypercall
  xen: add CPU microcode update driver

Yu Ke (1):
  xen/acpi: Domain0 acpi parser related platform hypercall

 arch/ia64/include/asm/xen/interface.h |    1 +
 arch/x86/include/asm/microcode.h      |    9 +
 arch/x86/include/asm/xen/hypercall.h  |    8 +
 arch/x86/include/asm/xen/interface.h  |    1 +
 arch/x86/kernel/Makefile              |    1 +
 arch/x86/kernel/microcode_core.c      |    5 +-
 arch/x86/kernel/microcode_xen.c       |  198 ++++++++++++++++++++
 arch/x86/xen/Kconfig                  |    4 +
 include/xen/interface/platform.h      |  320 +++++++++++++++++++++++++++++++++
 include/xen/interface/xen.h           |    1 +
 10 files changed, 547 insertions(+), 1 deletions(-)
 create mode 100644 arch/x86/kernel/microcode_xen.c
 create mode 100644 include/xen/interface/platform.h

-- 
1.7.6.2

^ permalink raw reply	[flat|nested] 42+ messages in thread
* [PATCH RFC 0/3] xen: enable settime in Xen dom0
@ 2011-09-26 18:27 Jeremy Fitzhardinge
  2011-09-26 18:27 ` [PATCH 1/3] xen/acpi: Domain0 acpi parser related platform hypercall Jeremy Fitzhardinge
  0 siblings, 1 reply; 42+ messages in thread
From: Jeremy Fitzhardinge @ 2011-09-26 18:27 UTC (permalink / raw)
  To: Xen Devel
  Cc: the arch/x86 maintainers, Linux Kernel Mailing List,
	Jeremy Fitzhardinge, Stable Kernel

From: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>

Proposed patch for the v3.2 merge window, but it should be probably be
put into v3.0 and v3.1 stable branches too (but not important enough
to burn any of my "Linus, merge this in late -rc karma").

This series implements the time-setting pvops for Xen dom0 so that a
privileged kernel can set the system time via Xen.  This had
previously been a no-op, because upstream Linux only supported
non-privieged operation, and so there was no point in trying to set
the system time.

Also available at:
     git://github.com/jsgf/linux-xen.git upstream/xen-settime

Thanks,
	J

Jeremy Fitzhardinge (2):
  xen: add dom0_op hypercall
  xen/dom0: set wallclock time in Xen

Yu Ke (1):
  xen/acpi: Domain0 acpi parser related platform hypercall

 arch/ia64/include/asm/xen/interface.h |    1 +
 arch/x86/include/asm/xen/hypercall.h  |    8 +
 arch/x86/include/asm/xen/interface.h  |    1 +
 arch/x86/xen/time.c                   |   16 ++-
 include/xen/interface/platform.h      |  320 +++++++++++++++++++++++++++++++++
 include/xen/interface/xen.h           |    1 +
 6 files changed, 346 insertions(+), 1 deletions(-)
 create mode 100644 include/xen/interface/platform.h

-- 
1.7.6.2

^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2012-01-04  0:49 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-26 18:17 [PATCH 0/3] x86/microcode: support for microcode update in Xen dom0 Jeremy Fitzhardinge
2011-09-26 18:18 ` [PATCH 1/3] xen/acpi: Domain0 acpi parser related platform hypercall Jeremy Fitzhardinge
2011-09-26 18:18 ` [PATCH 2/3] xen: add dom0_op hypercall Jeremy Fitzhardinge
2011-09-26 18:18 ` [PATCH 3/3] xen: add CPU microcode update driver Jeremy Fitzhardinge
2011-10-12  0:40 ` [PATCH 0/3] x86/microcode: support for microcode update in Xen dom0 Jeremy Fitzhardinge
2011-10-12 10:16   ` Borislav Petkov
2011-10-12 15:39     ` Jeremy Fitzhardinge
2011-10-12 18:18     ` H. Peter Anvin
2011-10-12 19:18       ` Jeremy Fitzhardinge
2011-10-12 19:45         ` Borislav Petkov
2011-10-12 20:40           ` Konrad Rzeszutek Wilk
2011-10-12 21:31             ` H. Peter Anvin
2011-10-12 21:40               ` Borislav Petkov
2011-10-12 22:49                 ` H. Peter Anvin
2011-10-12 23:40                   ` Jeremy Fitzhardinge
2011-10-12 23:55                     ` H. Peter Anvin
2011-10-13  0:00                       ` Jeremy Fitzhardinge
2011-10-13  0:03                         ` H. Peter Anvin
2011-10-13  7:00                           ` Borislav Petkov
2012-01-04  0:49                             ` Sven Köhler
2011-10-13  7:33                   ` Borislav Petkov
2011-10-13  9:57                     ` Borislav Petkov
2011-10-13 16:44                       ` H. Peter Anvin
2011-10-17 17:08                       ` [Xen-devel] " Konrad Rzeszutek Wilk
2011-10-17 17:40                         ` H. Peter Anvin
2011-10-18  1:11                           ` Henrique de Moraes Holschuh
2011-10-18  8:56                           ` Christoph Egger
2011-10-18  9:35                             ` Borislav Petkov
2011-10-18  9:49                               ` Christoph Egger
     [not found]                             ` <m2n.s.1RGYF2-136675@chiark.greenend.org.uk>
2011-10-25 16:53                               ` Ian Jackson
2011-10-12 22:27           ` Jeremy Fitzhardinge
2011-10-12 22:29             ` H. Peter Anvin
2011-10-12 22:33               ` Jeremy Fitzhardinge
2011-10-12 22:34                 ` H. Peter Anvin
2011-10-12 22:38                 ` Borislav Petkov
2011-10-12 20:22         ` H. Peter Anvin
2011-10-12 22:34           ` Jeremy Fitzhardinge
2011-10-12 22:36             ` H. Peter Anvin
     [not found]         ` <m2n.s.1RE5NW-151309@chiark.greenend.org.uk>
2011-10-17 13:47           ` [Xen-devel] " Ian Jackson
2011-11-03 15:06 ` Ben Guthro
2011-11-03 16:47   ` [Xen-devel] " Jeremy Fitzhardinge
  -- strict thread matches above, loose matches on Subject: below --
2011-09-26 18:27 [PATCH RFC 0/3] xen: enable settime " Jeremy Fitzhardinge
2011-09-26 18:27 ` [PATCH 1/3] xen/acpi: Domain0 acpi parser related platform hypercall Jeremy Fitzhardinge

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).