Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-29 Thread Avi Kivity
On 11/21/2009 02:47 AM, Kevin O'Connor wrote: Can you retry this with the latest seabios git. If you are able to reproduce, can you set CONFIG_DEBUG_LEVEL to 8 and post the log? Maybe something in the log will help. With current seabios.git the problem is resolved. -- error compiling com

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-20 Thread Kevin O'Connor
On Tue, Nov 17, 2009 at 03:23:46PM +0200, Avi Kivity wrote: > On 11/17/2009 04:26 AM, Kevin O'Connor wrote: >> On Mon, Nov 16, 2009 at 04:02:20PM +0200, Avi Kivity wrote: Something that is likely related, I am seeing reboot failures in seabios's pmm_free. Immediately after loading gpxe,

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-20 Thread Kevin O'Connor
On Sat, Nov 14, 2009 at 02:47:45PM -0500, Kevin O'Connor wrote: > On Thu, Nov 12, 2009 at 01:20:58PM +0200, Naphtali Sprei wrote: > > I've found a problem with the usage of SeaBIOS/gPXE in Qemu. The > > scenario is when failing to boot from network and falling back to > > booting from hard-disk (-

Re: [gPXE] [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-18 Thread Joshua Oreman
On Wed, Nov 18, 2009 at 9:22 AM, Gleb Natapov wrote: > On Wed, Nov 18, 2009 at 08:06:26AM -0500, Kevin O'Connor wrote: >> On Wed, Nov 18, 2009 at 11:39:49AM +0200, Gleb Natapov wrote: >> > On Mon, Nov 16, 2009 at 09:26:20PM -0500, Kevin O'Connor wrote: >> > > I do see an issue if SeaBIOS's reboot

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-18 Thread Kevin O'Connor
On Wed, Nov 18, 2009 at 04:22:17PM +0200, Gleb Natapov wrote: > On Wed, Nov 18, 2009 at 08:06:26AM -0500, Kevin O'Connor wrote: > > On Wed, Nov 18, 2009 at 11:39:49AM +0200, Gleb Natapov wrote: > > > On Mon, Nov 16, 2009 at 09:26:20PM -0500, Kevin O'Connor wrote: > > > > I do see an issue if SeaBIO

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-18 Thread Gleb Natapov
On Wed, Nov 18, 2009 at 08:06:26AM -0500, Kevin O'Connor wrote: > On Wed, Nov 18, 2009 at 11:39:49AM +0200, Gleb Natapov wrote: > > On Mon, Nov 16, 2009 at 09:26:20PM -0500, Kevin O'Connor wrote: > > > I do see an issue if SeaBIOS's reboot vector is called (eg, by using > > > "sendkey ctrl-alt-dele

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-18 Thread Avi Kivity
On 11/18/2009 04:19 PM, Gleb Natapov wrote: Do we have the same problem with tpr patching rom (vapic,bin)? It modifies itself too. But a reset will reload it. Correct, but Kevin says "sendkey ctrl-alt-delete" jumps to SeaBIOS's reboot vector without issuing system reset. I am ta

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-18 Thread Gleb Natapov
On Wed, Nov 18, 2009 at 03:50:20PM +0200, Avi Kivity wrote: > On 11/18/2009 11:39 AM, Gleb Natapov wrote: > > > >>Hi Avi, > >> > >>Can you send the full qemu command line that you used? I can't seem > >>to reproduce this on my setup. > >> > >>I do see an issue if SeaBIOS's reboot vector is called

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-18 Thread Avi Kivity
On 11/18/2009 11:39 AM, Gleb Natapov wrote: Hi Avi, Can you send the full qemu command line that you used? I can't seem to reproduce this on my setup. I do see an issue if SeaBIOS's reboot vector is called (eg, by using "sendkey ctrl-alt-delete" while still in the bios) because seabios allow

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-18 Thread Kevin O'Connor
On Wed, Nov 18, 2009 at 11:39:49AM +0200, Gleb Natapov wrote: > On Mon, Nov 16, 2009 at 09:26:20PM -0500, Kevin O'Connor wrote: > > I do see an issue if SeaBIOS's reboot vector is called (eg, by using > > "sendkey ctrl-alt-delete" while still in the bios) because seabios > > allows gpxe to modify i

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-18 Thread Kevin O'Connor
On Wed, Nov 18, 2009 at 10:49:37AM +0100, Alexander Graf wrote: > Are you sure vapic.bin still works with SeaBIOS? I've had to modify the > multiboot and linuxboot code to write to the stack because the code > section of the option rom was read only. SeaBIOS should be making the code writable du

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-18 Thread Gleb Natapov
On Wed, Nov 18, 2009 at 10:49:37AM +0100, Alexander Graf wrote: > > On 18.11.2009, at 10:39, Gleb Natapov wrote: > > >On Mon, Nov 16, 2009 at 09:26:20PM -0500, Kevin O'Connor wrote: > >>On Mon, Nov 16, 2009 at 04:02:20PM +0200, Avi Kivity wrote: > Something that is likely related, I am seeing

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-18 Thread Alexander Graf
On 18.11.2009, at 10:39, Gleb Natapov wrote: On Mon, Nov 16, 2009 at 09:26:20PM -0500, Kevin O'Connor wrote: On Mon, Nov 16, 2009 at 04:02:20PM +0200, Avi Kivity wrote: Something that is likely related, I am seeing reboot failures in seabios's pmm_free. Immediately after loading gpxe, seabio

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-18 Thread Gleb Natapov
On Mon, Nov 16, 2009 at 09:26:20PM -0500, Kevin O'Connor wrote: > On Mon, Nov 16, 2009 at 04:02:20PM +0200, Avi Kivity wrote: > >> Something that is likely related, I am seeing reboot failures in > >> seabios's pmm_free. Immediately after loading gpxe, seabios is in an > >> endless loop there,

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-17 Thread Avi Kivity
On 11/17/2009 04:26 AM, Kevin O'Connor wrote: On Mon, Nov 16, 2009 at 04:02:20PM +0200, Avi Kivity wrote: Something that is likely related, I am seeing reboot failures in seabios's pmm_free. Immediately after loading gpxe, seabios is in an endless loop there, likely due to memory corruption

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-16 Thread Kevin O'Connor
On Mon, Nov 16, 2009 at 04:02:20PM +0200, Avi Kivity wrote: >> Something that is likely related, I am seeing reboot failures in >> seabios's pmm_free. Immediately after loading gpxe, seabios is in an >> endless loop there, likely due to memory corruption. >> >> This is with -smp 2, rebooting F

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-16 Thread Avi Kivity
On 11/16/2009 03:36 PM, Avi Kivity wrote: On 11/14/2009 09:47 PM, Kevin O'Connor wrote: Hi, On Thu, Nov 12, 2009 at 01:20:58PM +0200, Naphtali Sprei wrote: I've found a problem with the usage of SeaBIOS/gPXE in Qemu. The scenario is when failing to boot from network and falling back to bootin

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-16 Thread Avi Kivity
On 11/14/2009 09:47 PM, Kevin O'Connor wrote: Hi, On Thu, Nov 12, 2009 at 01:20:58PM +0200, Naphtali Sprei wrote: I've found a problem with the usage of SeaBIOS/gPXE in Qemu. The scenario is when failing to boot from network and falling back to booting from hard-disk (-boot nc). The cause

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-15 Thread Naphtali Sprei
Kevin O'Connor wrote: > Hi, > > On Thu, Nov 12, 2009 at 01:20:58PM +0200, Naphtali Sprei wrote: >> I've found a problem with the usage of SeaBIOS/gPXE in Qemu. The >> scenario is when failing to boot from network and falling back to >> booting from hard-disk (-boot nc). The cause of the problem

Re: [Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-14 Thread Kevin O'Connor
Hi, On Thu, Nov 12, 2009 at 01:20:58PM +0200, Naphtali Sprei wrote: > I've found a problem with the usage of SeaBIOS/gPXE in Qemu. The > scenario is when failing to boot from network and falling back to > booting from hard-disk (-boot nc). The cause of the problem is that > both SeaBIOS and gPXE

[Qemu-devel] Stack corruption problem with SeaBIOS/gPXE under QEMU

2009-11-12 Thread Naphtali Sprei
Hi, I've found a problem with the usage of SeaBIOS/gPXE in Qemu. The scenario is when failing to boot from network and falling back to booting from hard-disk (-boot nc). The cause of the problem is that both SeaBIOS and gPXE (in it's installation phase) uses same stack area, 0x7c00. The gPXE code