public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* vmwarevga doesn't work: "get_dirty_pages returned -2"
@ 2008-02-19 17:12 Andreas Winkelbauer
  2008-02-21  9:05 ` Avi Kivity
  0 siblings, 1 reply; 9+ messages in thread
From: Andreas Winkelbauer @ 2008-02-19 17:12 UTC (permalink / raw)
  To: kvm-devel

hi,

I tried using the -vmwarevga switch but I didn't succeed. I've tested it 
with kvm-snapshot-20080218, kvm-60 and kvm-61.

as soon as the VM (guest os is windows xp) switches from text mode to 
graphics mode lots of messages "kvm: get_dirty_pages returned -2" scroll 
by on the console. after a while (but still while boot up) the VM 
crashes with stop error (blue screen) 0xEA (and says that something 
might be wrong with framebuf).

if I start the VM with -no-kvm  I don't see those messages in the 
console. the guest os boots up, but crashes quite soon with a stop error 
(blue screen) 0x7F.

my CPU is an intel core 2 duo (mobile).

uname -a output:
Linux nbwina2.local 2.6.23.15-80.fc7 #1 SMP Sun Feb 10 17:29:10 EST 2008 
i686 i686 i386 GNU/Linux

i start the VM with the following command:
su -c '/usr/local/kvm-61/bin/qemu-system-x86_64 ~/vm/xp.qcow2 -m 1024 -k 
de -usb -localtime [-vmwarevga]'

does -vmwarevga work for anyone (with windows as guest os)? what 
information do you need to track down the issue?

btw: the -vmwarevga switch should be added to the usage output of qemu.

bye,
Andi

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: vmwarevga doesn't work: "get_dirty_pages returned -2"
  2008-02-19 17:12 vmwarevga doesn't work: "get_dirty_pages returned -2" Andreas Winkelbauer
@ 2008-02-21  9:05 ` Avi Kivity
  2008-02-21  9:16   ` Alexander Graf
  2008-02-21 13:23   ` Andreas Winkelbauer
  0 siblings, 2 replies; 9+ messages in thread
From: Avi Kivity @ 2008-02-21  9:05 UTC (permalink / raw)
  To: Andreas Winkelbauer; +Cc: kvm-devel

Andreas Winkelbauer wrote:
> hi,
>
> I tried using the -vmwarevga switch but I didn't succeed. I've tested it 
> with kvm-snapshot-20080218, kvm-60 and kvm-61.
>
> as soon as the VM (guest os is windows xp) switches from text mode to 
> graphics mode lots of messages "kvm: get_dirty_pages returned -2" scroll 
> by on the console. after a while (but still while boot up) the VM 
> crashes with stop error (blue screen) 0xEA (and says that something 
> might be wrong with framebuf).
>
>   

I guess it needs the same treatment as cirrus and stdvga (register the 
framebuffer with kvm as a memory slot).

> if I start the VM with -no-kvm  I don't see those messages in the 
> console. the guest os boots up, but crashes quite soon with a stop error 
> (blue screen) 0x7F.
>
> my CPU is an intel core 2 duo (mobile).
>
> uname -a output:
> Linux nbwina2.local 2.6.23.15-80.fc7 #1 SMP Sun Feb 10 17:29:10 EST 2008 
> i686 i686 i386 GNU/Linux
>
> i start the VM with the following command:
> su -c '/usr/local/kvm-61/bin/qemu-system-x86_64 ~/vm/xp.qcow2 -m 1024 -k 
> de -usb -localtime [-vmwarevga]'
>
> does -vmwarevga work for anyone (with windows as guest os)? what 
> information do you need to track down the issue?
>
>   

Most likely it only works with Linux; it was probably written by 
reverse-engineering the Linux driver.

-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: vmwarevga doesn't work: "get_dirty_pages returned -2"
  2008-02-21  9:05 ` Avi Kivity
@ 2008-02-21  9:16   ` Alexander Graf
  2008-02-21  9:28     ` Chris Wedgwood
  2008-02-21 13:23   ` Andreas Winkelbauer
  1 sibling, 1 reply; 9+ messages in thread
From: Alexander Graf @ 2008-02-21  9:16 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel, Andreas Winkelbauer


On Feb 21, 2008, at 10:05 AM, Avi Kivity wrote:

> Andreas Winkelbauer wrote:
>> hi,
>>
>> I tried using the -vmwarevga switch but I didn't succeed. I've  
>> tested it
>> with kvm-snapshot-20080218, kvm-60 and kvm-61.
>>
>> as soon as the VM (guest os is windows xp) switches from text mode to
>> graphics mode lots of messages "kvm: get_dirty_pages returned -2"  
>> scroll
>> by on the console. after a while (but still while boot up) the VM
>> crashes with stop error (blue screen) 0xEA (and says that something
>> might be wrong with framebuf).
>>
>>
>
> I guess it needs the same treatment as cirrus and stdvga (register the
> framebuffer with kvm as a memory slot).
>
>> if I start the VM with -no-kvm  I don't see those messages in the
>> console. the guest os boots up, but crashes quite soon with a stop  
>> error
>> (blue screen) 0x7F.
>>
>> my CPU is an intel core 2 duo (mobile).
>>
>> uname -a output:
>> Linux nbwina2.local 2.6.23.15-80.fc7 #1 SMP Sun Feb 10 17:29:10 EST  
>> 2008
>> i686 i686 i386 GNU/Linux
>>
>> i start the VM with the following command:
>> su -c '/usr/local/kvm-61/bin/qemu-system-x86_64 ~/vm/xp.qcow2 -m  
>> 1024 -k
>> de -usb -localtime [-vmwarevga]'
>>
>> does -vmwarevga work for anyone (with windows as guest os)? what
>> information do you need to track down the issue?
>>
>>
>
> Most likely it only works with Linux; it was probably written by
> reverse-engineering the Linux driver.

When the patch was committed to qemu, the author actually said it  
worked with Windows too. He was quite surprised as well, as all he did  
was taking the OSS Linux driver and build the hardware spec from that.  
So my guess would be, that Linux targets with vmware vga should be  
broken too.

>
>
> -- 
> error compiling committee.c: too many arguments to function
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> kvm-devel mailing list
> kvm-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/kvm-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: vmwarevga doesn't work: "get_dirty_pages returned -2"
  2008-02-21  9:16   ` Alexander Graf
@ 2008-02-21  9:28     ` Chris Wedgwood
  0 siblings, 0 replies; 9+ messages in thread
From: Chris Wedgwood @ 2008-02-21  9:28 UTC (permalink / raw)
  To: Alexander Graf; +Cc: kvm-devel, Andreas Winkelbauer, Avi Kivity

On Thu, Feb 21, 2008 at 10:16:27AM +0100, Alexander Graf wrote:

> On Feb 21, 2008, at 10:05 AM, Avi Kivity wrote:

> > I guess it needs the same treatment as cirrus and stdvga (register the
> > framebuffer with kvm as a memory slot).

> So my guess would be, that Linux targets with vmware vga should be
> broken too.

I just tested this now since it only took a few seconds, and it does
indeed fail the same way.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: vmwarevga doesn't work: "get_dirty_pages returned -2"
  2008-02-21  9:05 ` Avi Kivity
  2008-02-21  9:16   ` Alexander Graf
@ 2008-02-21 13:23   ` Andreas Winkelbauer
  2008-02-22  9:12     ` Soren Hansen
  1 sibling, 1 reply; 9+ messages in thread
From: Andreas Winkelbauer @ 2008-02-21 13:23 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel

hi,

> Most likely it only works with Linux; it was probably written by 
> reverse-engineering the Linux driver.

actually -vmwarevga works for me when using pure qemu (latest cvs 
snapshot) without kqemu (-no-kqemu), but it does not work with kvm when 
using -no-kvm.

anyway, I was testing -vmwarevga because I want to be able to use the 
native resolution of my display. so -vmwarevga is obsolete for me if it 
is working with -std-vga because then there is no need to load a 
proprietary driver inside the guest os.

cheers,
Andi

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: vmwarevga doesn't work: "get_dirty_pages returned -2"
  2008-02-21 13:23   ` Andreas Winkelbauer
@ 2008-02-22  9:12     ` Soren Hansen
  2008-02-22  9:44       ` Avi Kivity
  2008-02-22 13:50       ` Andreas Winkelbauer
  0 siblings, 2 replies; 9+ messages in thread
From: Soren Hansen @ 2008-02-22  9:12 UTC (permalink / raw)
  To: kvm-devel


[-- Attachment #1.1: Type: text/plain, Size: 637 bytes --]

On Thu, Feb 21, 2008 at 02:23:07PM +0100, Andreas Winkelbauer wrote:
>> Most likely it only works with Linux; it was probably written by
>> reverse-engineering the Linux driver.
> actually -vmwarevga works for me when using pure qemu (latest cvs
> snapshot) without kqemu (-no-kqemu), but it does not work with kvm
> when using -no-kvm.

This is a known issue. I've sent a patch to this list (twice, actually)
that fixes it, but for some reason, it hasn't been applied. Search for
posts from me with "vga" or something in the subject.

-- 
Soren Hansen
Virtualisation specialist
Ubuntu Server Team
http://www.ubuntu.com/

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: vmwarevga doesn't work: "get_dirty_pages returned -2"
  2008-02-22  9:12     ` Soren Hansen
@ 2008-02-22  9:44       ` Avi Kivity
  2008-02-22 10:14         ` Soren Hansen
  2008-02-22 13:50       ` Andreas Winkelbauer
  1 sibling, 1 reply; 9+ messages in thread
From: Avi Kivity @ 2008-02-22  9:44 UTC (permalink / raw)
  To: soren; +Cc: kvm-devel

Soren Hansen wrote:
> On Thu, Feb 21, 2008 at 02:23:07PM +0100, Andreas Winkelbauer wrote:
>   
>>> Most likely it only works with Linux; it was probably written by
>>> reverse-engineering the Linux driver.
>>>       
>> actually -vmwarevga works for me when using pure qemu (latest cvs
>> snapshot) without kqemu (-no-kqemu), but it does not work with kvm
>> when using -no-kvm.
>>     
>
> This is a known issue. I've sent a patch to this list (twice, actually)
> that fixes it, but for some reason, it hasn't been applied. Search for
> posts from me with "vga" or something in the subject.
>
>   

I did provide feedback last time:

> The changes to last_ch_attr, map_addr, etc. are gratuitous and will 
> cause merge conflicts in the future.  Please change only the relevant lines.
>   

You probably didn't see it, since you have Mail-Followup-To: set to 
kvm-devel instead of yourself.  Adding you explicitly this time.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: vmwarevga doesn't work: "get_dirty_pages returned -2"
  2008-02-22  9:44       ` Avi Kivity
@ 2008-02-22 10:14         ` Soren Hansen
  0 siblings, 0 replies; 9+ messages in thread
From: Soren Hansen @ 2008-02-22 10:14 UTC (permalink / raw)
  To: kvm-devel


[-- Attachment #1.1: Type: text/plain, Size: 592 bytes --]

On Fri, Feb 22, 2008 at 11:44:21AM +0200, Avi Kivity wrote:
> I did provide feedback last time:
> > The changes to last_ch_attr, map_addr, etc. are gratuitous and will
> > cause merge conflicts in the future.  Please change only the
> > relevant lines.
> You probably didn't see it, since you have Mail-Followup-To: set to
> kvm-devel instead of yourself.  

I do that quite explicitly. I read the mailing list, so that should be
fine. I'm sorry I somehow managed to miss your response. :(

-- 
Soren Hansen
Virtualisation specialist
Ubuntu Server Team
http://www.ubuntu.com/

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: vmwarevga doesn't work: "get_dirty_pages returned -2"
  2008-02-22  9:12     ` Soren Hansen
  2008-02-22  9:44       ` Avi Kivity
@ 2008-02-22 13:50       ` Andreas Winkelbauer
  1 sibling, 0 replies; 9+ messages in thread
From: Andreas Winkelbauer @ 2008-02-22 13:50 UTC (permalink / raw)
  To: kvm-devel

hi,

> This is a known issue. I've sent a patch to this list (twice, actually)
> that fixes it, but for some reason, it hasn't been applied. Search for
> posts from me with "vga" or something in the subject.

I applied the patch from

http://people.ubuntu.com/~soren/0001-Move-common-VGAState-attributes-to-VGA_STATE_COMMON.patch

against kvm-61 release and I still see the messages "kvm: get_dirty_pages
returned -2" scrolling by when I start the VM with -vmwarevga. booting windows
xp ends up in a blue screen indicating that something isn't alright with the
framebuffer. before the blue screen happens there are some lines "vmport:
unknown command 1e" on the console.

booting windows with -vmwarevga and -no-kvm is workish, but windows locked up
litte later.

bye,
Andi


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-02-22 13:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-19 17:12 vmwarevga doesn't work: "get_dirty_pages returned -2" Andreas Winkelbauer
2008-02-21  9:05 ` Avi Kivity
2008-02-21  9:16   ` Alexander Graf
2008-02-21  9:28     ` Chris Wedgwood
2008-02-21 13:23   ` Andreas Winkelbauer
2008-02-22  9:12     ` Soren Hansen
2008-02-22  9:44       ` Avi Kivity
2008-02-22 10:14         ` Soren Hansen
2008-02-22 13:50       ` Andreas Winkelbauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox