Re: [SeaBIOS] vgabios -> seabios breaks (my) 16-bit applications

2015-01-12 Thread Richard Laager
On Mon, 2015-01-12 at 15:06 -0500, Kevin O'Connor wrote: > On Mon, Jan 12, 2015 at 01:13:54PM -0600, Richard Laager wrote: > > Your patch implementing idea 6 fixes the problem for my business > > application on a stock Ubuntu package (with extra stack enabled). > > Thanks. > > The key part of opt

Re: [SeaBIOS] vgabios -> seabios breaks (my) 16-bit applications

2015-01-12 Thread Kevin O'Connor
On Mon, Jan 12, 2015 at 01:13:54PM -0600, Richard Laager wrote: > Your patch implementing idea 6 fixes the problem for my business > application on a stock Ubuntu package (with extra stack enabled). Thanks. The key part of option 5 (as described in my previous email) looks like the patch below.

Re: [SeaBIOS] vgabios -> seabios breaks (my) 16-bit applications

2015-01-12 Thread Paolo Bonzini
On 12/01/2015 20:36, Kevin O'Connor wrote: > Okay, so it fakes real-mode by setting up a protected mode guest with > a fake CR0 that is running vm86, and so SMSW still returns a value > with PE off? (As opposed to a regular guest that itself launches a > VM86 instance, in which case CR0 from SMS

Re: [SeaBIOS] vgabios -> seabios breaks (my) 16-bit applications

2015-01-12 Thread Kevin O'Connor
On Mon, Jan 12, 2015 at 02:00:24PM -0500, Paolo Bonzini wrote: > > > No, KVM hides the fact that you are in protected mode. EMM386 would be > > > affected, but then it is not impossible for old programs to require > > > disabling it. > > > > I was under the vague impression that kvm uses VM86 mod

Re: [SeaBIOS] vgabios -> seabios breaks (my) 16-bit applications

2015-01-12 Thread Paolo Bonzini
> > No, KVM hides the fact that you are in protected mode. EMM386 would be > > affected, but then it is not impossible for old programs to require > > disabling it. > > I was under the vague impression that kvm uses VM86 mode to run 16bit > code on some Intel chipsets. The SMSW instruction isn'

Re: [SeaBIOS] vgabios -> seabios breaks (my) 16-bit applications

2015-01-12 Thread Richard Laager
Your patch implementing idea 6 fixes the problem for my business application on a stock Ubuntu package (with extra stack enabled). -- Richard signature.asc Description: This is a digitally signed message part ___ SeaBIOS mailing list SeaBIOS@seabios.o

Re: [SeaBIOS] vgabios -> seabios breaks (my) 16-bit applications

2015-01-12 Thread Kevin O'Connor
On Mon, Jan 12, 2015 at 07:25:58PM +0100, Paolo Bonzini wrote: > On 12/01/2015 19:19, Kevin O'Connor wrote: > > I was able to reproduce this locally with 16bit skifree on Windows > > Vista. (Interestingly, the problem doesn't occur on winxp.) > > I put "there is a 16-bit freely downloadable versi

Re: [SeaBIOS] vgabios -> seabios breaks (my) 16-bit applications

2015-01-12 Thread Paolo Bonzini
On 12/01/2015 19:19, Kevin O'Connor wrote: > I was able to reproduce this locally with 16bit skifree on Windows > Vista. (Interestingly, the problem doesn't occur on winxp.) I put "there is a 16-bit freely downloadable version of skifree" on my personal list of trivia that ended up becoming use

Re: [SeaBIOS] vgabios -> seabios breaks (my) 16-bit applications

2015-01-12 Thread Kevin O'Connor
On Mon, Jan 12, 2015 at 02:53:58AM -0600, Richard Laager wrote: > Turning off CONFIG_VGA_ALLOCATE_EXTRA_STACK makes Skifree work on cirrus > and vga. I was able to reproduce this locally with 16bit skifree on Windows Vista. (Interestingly, the problem doesn't occur on winxp.) The issue doesn't a

Re: [SeaBIOS] vgabios -> seabios breaks (my) 16-bit applications

2015-01-12 Thread Kevin O'Connor
On Mon, Jan 12, 2015 at 09:59:49AM -0600, Richard Laager wrote: > On Mon, 2015-01-12 at 10:32 -0500, Kevin O'Connor wrote: > > Interesting. Does your original business app then also work with > > CONFIG_VGA_ALLOCATE_EXTRA_STACK disabled? > > Yes. I couldn't be sure if I tested before, since I did

Re: [SeaBIOS] vgabios -> seabios breaks (my) 16-bit applications

2015-01-12 Thread Paolo Bonzini
On 12/01/2015 16:59, Richard Laager wrote: > On Mon, 2015-01-12 at 10:32 -0500, Kevin O'Connor wrote: >> Interesting. Does your original business app then also work with >> CONFIG_VGA_ALLOCATE_EXTRA_STACK disabled? > > Yes. I couldn't be sure if I tested before, since I didn't write it > down.

Re: [SeaBIOS] vgabios -> seabios breaks (my) 16-bit applications

2015-01-12 Thread Richard Laager
On Mon, 2015-01-12 at 10:32 -0500, Kevin O'Connor wrote: > Interesting. Does your original business app then also work with > CONFIG_VGA_ALLOCATE_EXTRA_STACK disabled? Yes. I couldn't be sure if I tested before, since I didn't write it down. But I just tested now. Obviously this extra stack feat

Re: [SeaBIOS] vgabios -> seabios breaks (my) 16-bit applications

2015-01-12 Thread Kevin O'Connor
On Mon, Jan 12, 2015 at 02:53:58AM -0600, Richard Laager wrote: > On Fri, 2015-01-09 at 11:58 -0500, Kevin O'Connor wrote: > > There are a couple of things you could try to see if it makes any > > difference - entirely disable debugging in seavgabios > > (CONFIG_DEBUG_LEVEL=0) in the unlikley case

Re: [SeaBIOS] vgabios -> seabios breaks (my) 16-bit applications

2015-01-12 Thread Richard Laager
[I've reordered the quoted text.] On Fri, 2015-01-09 at 11:58 -0500, Kevin O'Connor wrote: > Does the crash occur around the time one of the debug messages is > produced, or is the crash seemingly uncorrelated? I don't see > anything suspicious in the log. Sorry, I forgot to note this in my emai