repository: /home/avi/kvm branch: master commit 7f7699af520dad2a2da703670d5b324324cba1d0 Author: Izik Eidus <[EMAIL PROTECTED]> Date: Tue Oct 23 00:19:48 2007 +0200
kvm: bios: make the bios map the tss pages at unavailble memory to the guest Signed-off-by: Izik Eidus <[EMAIL PROTECTED]> Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> diff --git a/bios/rombios.c b/bios/rombios.c index ac918ad..a9b5653 100644 --- a/bios/rombios.c +++ b/bios/rombios.c @@ -4241,18 +4241,27 @@ ASM_END return; break; case 5: + /* 3 pages before the bios, we map the vmx tss pages */ + set_e820_range(ES, regs.u.r16.di, 0xfffbd000L, + 0xfffc0000L, 0, 0, 2); + regs.u.r32.ebx = 6; + regs.u.r32.eax = 0x534D4150; + regs.u.r32.ecx = 0x14; + CLEAR_CF(); + return; + case 6: /* 256KB BIOS area at the end of 4 GB */ set_e820_range(ES, regs.u.r16.di, 0xfffc0000L, 0x00000000L ,0, 0, 2); if (extra_highbits_memory_size || extra_lowbits_memory_size) - regs.u.r32.ebx = 6; + regs.u.r32.ebx = 7; else regs.u.r32.ebx = 0; regs.u.r32.eax = 0x534D4150; regs.u.r32.ecx = 0x14; CLEAR_CF(); return; - case 6: + case 7: /* Maping of memory above 4 GB */ set_e820_range(ES, regs.u.r16.di, 0x00000000L, extra_lowbits_memory_size, 1, extra_highbits_memory_size ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ kvm-commits mailing list kvm-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-commits