aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware/rombios
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-10-29 14:48:28 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-10-29 14:48:28 +0000
commit6785f5fef31f5c94d6d7902aea61237cf08420b1 (patch)
treef3875f323323caed1b71e72c2ded4ea41ce5902b /tools/firmware/rombios
parentabcac528725704d9bfbe613b2aa83a0ce0f3d8c2 (diff)
downloadxen-6785f5fef31f5c94d6d7902aea61237cf08420b1.tar.gz
xen-6785f5fef31f5c94d6d7902aea61237cf08420b1.tar.bz2
xen-6785f5fef31f5c94d6d7902aea61237cf08420b1.zip
Extend the max vcpu number for HVM guest.
- Originally the max vcpu number for HVM guest is 32, this patch extend the number to 128 on x86_64 hypervisor. (For i386 hypervisor, the max vcpu number is still 32). - This patch extends the mp-table size to fit more vcpus. - HVM PV driver should call VCPUOP_register_vcpu_info hypercall to initialize the vcpu info if the vcpu number is more than 32. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/firmware/rombios')
-rw-r--r--tools/firmware/rombios/rombios.c47
1 files changed, 10 insertions, 37 deletions
diff --git a/tools/firmware/rombios/rombios.c b/tools/firmware/rombios/rombios.c
index 2d97a401d5..8330f808c2 100644
--- a/tools/firmware/rombios/rombios.c
+++ b/tools/firmware/rombios/rombios.c
@@ -10734,11 +10734,19 @@ post_init_pic:
out 0xa1, AL ;slave pic: unmask IRQ 12, 13, 14
ret
+
+ .align 16
+smbios_entry_point:
+ db 0,0,0,0,0,0,0,0 ; 8 bytes
+ db 0,0,0,0,0,0,0,0 ; 16 bytes
+ db 0,0,0,0,0,0,0,0 ; 24 bytes
+ db 0,0,0,0,0,0,0 ; 31 bytes
+
;; the following area can be used to write dynamically generated tables
.align 16
bios_table_area_start:
- dd 0xaafb4442
- dd bios_table_area_end - bios_table_area_start - 8;
+ db 0x5F, 0x5F, 0x5F, 0x48, 0x56, 0x4D, 0x4D, 0x50 ;; ___HVMMP
+ dd bios_table_area_end - bios_table_area_start
;--------
;- POST -
@@ -11843,41 +11851,6 @@ static Bit8u vgafont8[128*8]=
0x00, 0x10, 0x38, 0x6c, 0xc6, 0xc6, 0xfe, 0x00,
};
-#ifdef HVMASSIST
-ASM_START
-
-//
-// MP Tables
-// just carve out some blank space for HVMLOADER to write the MP tables to
-//
-// NOTE: There should be enough space for a 32 processor entry MP table
-//
-.org 0xcc00
-db 0x5F, 0x5F, 0x5F, 0x48, 0x56, 0x4D, 0x4D, 0x50 ;; ___HVMMP
-dw 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;; 64 bytes
-dw 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;; 128 bytes
-dw 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;; 192 bytes
-dw 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;; 256 bytes
-dw 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;; 320 bytes
-dw 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;; 384 bytes
-dw 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;; 448 bytes
-dw 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;; 512 bytes
-dw 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ;; 576 bytes
-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