seabios: increase smp_mtrr array size
authorMarcelo Tosatti <mtosatti@redhat.com>
Fri, 29 Jul 2011 22:40:51 +0000 (19:40 -0300)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 29 Jul 2011 23:17:34 +0000 (19:17 -0400)
Windows Server 2008 checked build complains about lack of consistency
between MTRR MSRs in SMP guests.

Problem is the smp_mtrr array is not large enough to hold all MSRs (31
entries with current qemu/kvm implementations).

Increase it to 32.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
src/smp.c

index 40f5451e5fee4ec0276de4a8c5203467892120ae..2317d3683f12a1afeff67ed67d9a609beb459866 100644 (file)
--- a/src/smp.c
+++ b/src/smp.c
@@ -17,7 +17,7 @@
 
 #define APIC_ENABLED 0x0100
 
-struct { u32 ecx, eax, edx; } smp_mtrr[16] VAR16VISIBLE;
+struct { u32 ecx, eax, edx; } smp_mtrr[32] VAR16VISIBLE;
 u32 smp_mtrr_count VAR16VISIBLE;
 
 void