[Qemu-devel] Can't switch to 64bit mode at boot, how to debug?

2012-11-17 Thread Goswin von Brederlow
Hi, I'm having problems with the startup code for my toy kernel for amd64 that switches from 32bit mode to 64bit mode and I'm at a loss how to debug this. The code used to work last year (with qemu-kvm 0.14.0) but fails now with QEMU emulator version 1.1.0 (Debian 1.1.0+dfsg-1). Has something

Re: [Qemu-devel] Can't switch to 64bit mode at boot, how to debug?

2012-11-17 Thread Goswin von Brederlow
On Sat, Nov 17, 2012 at 11:18:03PM +0300, Max Filippov wrote: On Sat, Nov 17, 2012 at 11:58 PM, Max Filippov jcmvb...@gmail.com wrote: On Sat, Nov 17, 2012 at 9:50 PM, Goswin von Brederlow goswin-...@web.de wrote: /* Enable PAE */ movl%cr4, %eax btsl$5

Re: [Qemu-devel] Can't switch to 64bit mode at boot, how to debug?

2012-11-17 Thread Goswin von Brederlow
On Sat, Nov 17, 2012 at 10:58:17PM +0300, Max Filippov wrote: On Sat, Nov 17, 2012 at 9:50 PM, Goswin von Brederlow goswin-...@web.de wrote: Hi, I'm having problems with the startup code for my toy kernel for amd64 that switches from 32bit mode to 64bit mode and I'm at a loss how

Re: [Qemu-devel] Support for multiboot images in elf64 (EM_X86_64) format

2012-02-09 Thread Goswin von Brederlow
Paul Brook p...@codesourcery.com writes: starting your own toy kernel is a fun thing to do and there are many tutorials out there on how to do it. Unfortunately when one wants to write a kernel in 64bit it becomes much harder because one can't compile 64bit code as elf32 image and

Re: [Qemu-devel] Support for multiboot images in elf64 (EM_X86_64) format

2012-02-09 Thread Goswin von Brederlow
Paul Brook p...@codesourcery.com writes: Paul Brook p...@codesourcery.com writes: starting your own toy kernel is a fun thing to do and there are many tutorials out there on how to do it. Unfortunately when one wants to write a kernel in 64bit it becomes much harder because one can't

Re: [Qemu-devel] Support for multiboot images in elf64 (EM_X86_64) format

2012-02-08 Thread Goswin von Brederlow
Stefan Hajnoczi stefa...@gmail.com writes: On Sat, Feb 4, 2012 at 5:38 PM, Goswin von Brederlow goswin-...@web.de wrote: Description: Allow 64bit elf binaries in multiboot format  This patch allows 64bit elf files with multiboot header to be loaded.  The entry point will still be called

[Qemu-devel] Support for multiboot images in elf64 (EM_X86_64) format

2012-02-04 Thread Goswin von Brederlow
be called in 32bit mode and the kernel must switch to 64bit mode on its own. The image and all modules must also be located in the lower 2GB of ram. All the restrictions of a 32bit image still apply. Author: Goswin von Brederlow goswin-...@web.de Last-Updated: 2011-04-08 --- --- qemu-kvm-0.14.0

[Qemu-devel] Support for multiboot2 specs

2011-04-08 Thread Goswin von Brederlow
Hi, I've been looking into the multiboot2 specs and started to implement them for kvm for Debian. If anyone wants to try them out or help complete support for them I've uploaded a first patch and example kernel to the Debian BTS [1]. The kernel boots but only the essential features are there yet.