ac6e56e6d7
23900-xzalloc.patch 24144-cpufreq-turbo-crash.patch 24148-shadow-pgt-dying-op-performance.patch 24155-x86-ioapic-EOI-after-migration.patch 24156-x86-ioapic-shared-vectors.patch 24157-x86-xstate-init.patch 24168-x86-vioapic-clear-remote_irr.patch - submit fixes for bnc#649209 and bnc#711892 xl-create-pv-with-qcow2-img.patch update suspend_evtchn_lock.patch - Update trace.c, merge patches from upstream 23050-xentrace_dynamic_tracebuffer_allocation.patch 23091-xentrace_fix_t_info_pages_calculation..patch 23092-xentrace_print_calculated_numbers_in_calculate_tbuf_size.patch 23093-xentrace_remove_gdprintk_usage_since_they_are_not_in_guest_context.patch 23094-xentrace_update_comments.patch 23095-xentrace_use_consistent_printk_prefix.patch 23128-xentrace_correct_formula_to_calculate_t_info_pages.patch 23129-xentrace_remove_unneeded_debug_printk.patch 23173-xentrace_Move_register_cpu_notifier_call_into_boot-time_init..patch 23239-xentrace_correct_overflow_check_for_number_of_per-cpu_trace_pages.patch 23308-xentrace_Move_the_global_variable_t_info_first_offset_into_calculate_tbuf_size.patch 23309-xentrace_Mark_data_size___read_mostly_because_its_only_written_once.patch 23310-xentrace_Remove_unneeded_cast_when_assigning_pointer_value_to_dst.patch 23404-xentrace_reduce_trace_buffer_size_to_something_mfn_offset_can_reach.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=160
74 lines
2.5 KiB
Diff
74 lines
2.5 KiB
Diff
References: bnc#725169
|
|
|
|
# HG changeset patch
|
|
# User Jan Beulich <jbeulich@novell.com>
|
|
# Date 1319475620 -3600
|
|
# Node ID e458dfc35b8d3be04a9b72c30ff97163e27a7314
|
|
# Parent ffe861c1d5dfa8f4485052e5600e06124105033f
|
|
x86/ucode-amd: fix regression from c/s 23871:503ee256fecf
|
|
|
|
microcode_fits() must return distinct values for the success and
|
|
no-fit-but-no-error cases, so the caller can react accordingly. Make
|
|
it return 1 in the success case, and adjust its single caller.
|
|
|
|
Also remove an impossible code path - install_equiv_cpu_table(), which
|
|
gets called prior to microcode_fits(), never leaves equiv_cpu_table
|
|
being NULL without also returning an error.
|
|
|
|
Note that this is still awaiting testing on a system where the
|
|
regression was actually observed (which also requires a new enough
|
|
microcode_ctl package). Note also that this will need to be
|
|
backported to 4.0 and 4.1 (or the broken c/s that got backported
|
|
there reverted).
|
|
|
|
Signed-off-by: Jan Beulich <jbeulich@novell.com>
|
|
Committed-by: Keir Fraser <keir@xen.org>
|
|
|
|
Index: xen-4.1.2-testing/xen/arch/x86/microcode_amd.c
|
|
===================================================================
|
|
--- xen-4.1.2-testing.orig/xen/arch/x86/microcode_amd.c
|
|
+++ xen-4.1.2-testing/xen/arch/x86/microcode_amd.c
|
|
@@ -76,14 +76,6 @@ static int microcode_fits(void *mc, int
|
|
/* We should bind the task to the CPU */
|
|
BUG_ON(cpu != raw_smp_processor_id());
|
|
|
|
- if ( equiv_cpu_table == NULL )
|
|
- {
|
|
- printk(KERN_INFO "microcode: CPU%d microcode update with "
|
|
- "version 0x%x (current=0x%x)\n",
|
|
- cpu, mc_header->patch_id, uci->cpu_sig.rev);
|
|
- goto out;
|
|
- }
|
|
-
|
|
current_cpu_id = cpuid_eax(0x00000001);
|
|
|
|
for ( i = 0; equiv_cpu_table[i].installed_cpu != 0; i++ )
|
|
@@ -96,7 +88,7 @@ static int microcode_fits(void *mc, int
|
|
}
|
|
|
|
if ( !equiv_cpu_id )
|
|
- return 0;
|
|
+ return 0;
|
|
|
|
if ( (mc_header->processor_rev_id) != equiv_cpu_id )
|
|
{
|
|
@@ -113,8 +105,7 @@ static int microcode_fits(void *mc, int
|
|
"update with version 0x%x (current=0x%x)\n",
|
|
cpu, mc_header->patch_id, uci->cpu_sig.rev);
|
|
|
|
-out:
|
|
- return 0;
|
|
+ return 1;
|
|
}
|
|
|
|
static int apply_microcode(int cpu)
|
|
@@ -289,7 +280,7 @@ static int cpu_request_microcode(int cpu
|
|
while ( (ret = get_next_ucode_from_buffer_amd(mc, buf, size, &offset)) == 0)
|
|
{
|
|
error = microcode_fits(mc, cpu);
|
|
- if (error != 0)
|
|
+ if (error <= 0)
|
|
continue;
|
|
|
|
error = apply_microcode(cpu);
|