From: Alex Williamson <alex.williamson@hp.com>
To: Kevin O'Connor <kevin@koconnor.net>
Cc: Avi Kivity <avi@redhat.com>, kvm-devel <kvm@vger.kernel.org>,
gleb@redhat.com
Subject: Re: Re: [PATCH 0/5] bios: >4G updates
Date: Mon, 13 Oct 2008 10:33:09 -0600 [thread overview]
Message-ID: <1223915589.7325.58.camel@lappy> (raw)
In-Reply-To: <20081012225006.GA23256@morn.localdomain>
On Sun, 2008-10-12 at 18:50 -0400, Kevin O'Connor wrote:
> As an aside, is there any interest in using SeaBIOS with kvm?
>
> SeaBIOS is a port of bochs bios to gcc. I've been using SeaBIOS
> (along with coreboot) to boot and provide bios functions on real
> hardware. It works fine under qemu also.
Sounds interesting to me. The VirtaulBox project has also made
improvements to the bochs bios that might be nice to pull in. I'd also
like to see the TianoCore EFI image, that ia64 is using, work on x86.
There's an x86 version for QEMU on the QEMU downloads page. With the
(wip) patch below to increase the bios reserved region to 1MB I can boot
to the EFI shell, but KVM is missing some emulation to boot Linux (works
with --no-kvm, maybe an ff 6f opcode?). I haven't had a chance to debug
it further. Thanks,
Alex
Increase BIOS memory region to 1MB
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
--
diff --git a/bios/rombios.c b/bios/rombios.c
index 818ce63..57e5139 100644
--- a/bios/rombios.c
+++ b/bios/rombios.c
@@ -4579,17 +4579,17 @@ ASM_END
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);
+ set_e820_range(ES, regs.u.r16.di, 0xffdfd000L,
+ 0xffe00000L, 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 */
+ /* 1MB BIOS area at the end of 4 GB */
set_e820_range(ES, regs.u.r16.di,
- 0xfffc0000L, 0x00000000L ,0, 0, 2);
+ 0xffe00000L, 0x00000000L ,0, 0, 2);
if (extra_highbits_memory_size || extra_lowbits_memory_size)
regs.u.r32.ebx = 7;
else
diff --git a/libkvm/libkvm-x86.c b/libkvm/libkvm-x86.c
index a8cca15..d9850a4 100644
--- a/libkvm/libkvm-x86.c
+++ b/libkvm/libkvm-x86.c
@@ -42,7 +42,7 @@ static int kvm_init_tss(kvm_context_t kvm)
* this address is 3 pages before the bios, and the bios should present
* as unavaible memory
*/
- r = kvm_set_tss_addr(kvm, 0xfffbd000);
+ r = kvm_set_tss_addr(kvm, 0xffdfd000);
if (r < 0) {
fprintf(stderr, "kvm_init_tss: unable to set tss addr\n");
return r;
--
Alex Williamson HP Open Source & Linux Org.
prev parent reply other threads:[~2008-10-13 16:33 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-23 16:41 [PATCH 0/5] bios: >4G updates Alex Williamson
2008-09-24 11:07 ` Avi Kivity
2008-09-24 16:17 ` Alex Williamson
2008-09-25 16:08 ` Alex Williamson
2008-09-28 15:19 ` Avi Kivity
2008-09-30 13:31 ` Avi Kivity
2008-09-30 16:46 ` Avi Kivity
2008-09-30 21:19 ` Alex Williamson
2008-10-02 12:33 ` Avi Kivity
2008-10-12 22:50 ` Kevin O'Connor
2008-10-13 6:45 ` Gleb Natapov
2008-10-14 15:29 ` Avi Kivity
2008-10-14 16:00 ` Anthony Liguori
2008-10-14 16:17 ` Avi Kivity
2008-10-14 16:21 ` Glauber Costa
2008-10-15 0:41 ` Kevin O'Connor
2008-10-15 17:46 ` Avi Kivity
2008-10-16 0:31 ` Kevin O'Connor
2008-10-13 16:33 ` Alex Williamson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1223915589.7325.58.camel@lappy \
--to=alex.williamson@hp.com \
--cc=avi@redhat.com \
--cc=gleb@redhat.com \
--cc=kevin@koconnor.net \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).