From: Michael Tokarev <mjt@tls.msk.ru>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Jamie Lokier <jamie@shareable.org>, Avi Kivity <avi@redhat.com>,
Brian Kress <kressb@moose.net>,
qemu-devel <qemu-devel@nongnu.org>,
KVM list <kvm@vger.kernel.org>
Subject: Re: [Qemu-devel] Re: Another SIGFPE in display code, now in cirrus
Date: Wed, 12 May 2010 23:12:54 +0400 [thread overview]
Message-ID: <4BEAFDB6.6030001@msgid.tls.msk.ru> (raw)
In-Reply-To: <alpine.DEB.2.00.1005121855230.11380@kaball-desktop>
12.05.2010 22:11, Stefano Stabellini wrote:
> On Wed, 12 May 2010, Jamie Lokier wrote:
>> Stefano Stabellini wrote:
>>> On Wed, 12 May 2010, Avi Kivity wrote:
>>>> It's useful if you have a one-line horizontal pattern you want to
>>>> propagate all over.
>>>
>>> It might be useful all right, but it is not entirely clear what the
>>> hardware should do in this situation from the documentation we have, and
>>> certainly the current state of the cirrus emulation code doesn't help.
>>
>> It's quite a reasonable thing for hardware to do, even if not documented.
>> It would be surprising if the hardware didn't copy the one-line pattern.
>
> All right then, you convinced me :)
>
> This is my proposed solution, however it is untested with Windows NT.
Well. At least it does not crash anymore.
With this patch applied, when hitting "Test" (of a new video mode)
button on WindowsNT, the guest window gets resized to correct size,
but is painted with yellow and nothing happens. The CPU enters
100%, and on the kvm console the following messages are displayed:
BUG: kvm_dirty_pages_log_enable_slot: invalid parameters
BUG: kvm_dirty_pages_log_enable_slot: invalid parameters
That's not new, it sometimes displays that shit on attempt to
migrate too, as I mentioned in another thread.
Thanks!
/mjt
> diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c
> index 9f61a01..a7f0d3c 100644
> --- a/hw/cirrus_vga.c
> +++ b/hw/cirrus_vga.c
> @@ -676,15 +676,17 @@ static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h)
> int sx, sy;
> int dx, dy;
> int width, height;
> + uint32_t start_addr, line_offset, line_compare;
> int depth;
> int notify = 0;
[...]
WARNING: multiple messages have this Message-ID (diff)
From: Michael Tokarev <mjt@tls.msk.ru>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Brian Kress <kressb@moose.net>, Avi Kivity <avi@redhat.com>,
KVM list <kvm@vger.kernel.org>,
qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Re: Another SIGFPE in display code, now in cirrus
Date: Wed, 12 May 2010 23:12:54 +0400 [thread overview]
Message-ID: <4BEAFDB6.6030001@msgid.tls.msk.ru> (raw)
In-Reply-To: <alpine.DEB.2.00.1005121855230.11380@kaball-desktop>
12.05.2010 22:11, Stefano Stabellini wrote:
> On Wed, 12 May 2010, Jamie Lokier wrote:
>> Stefano Stabellini wrote:
>>> On Wed, 12 May 2010, Avi Kivity wrote:
>>>> It's useful if you have a one-line horizontal pattern you want to
>>>> propagate all over.
>>>
>>> It might be useful all right, but it is not entirely clear what the
>>> hardware should do in this situation from the documentation we have, and
>>> certainly the current state of the cirrus emulation code doesn't help.
>>
>> It's quite a reasonable thing for hardware to do, even if not documented.
>> It would be surprising if the hardware didn't copy the one-line pattern.
>
> All right then, you convinced me :)
>
> This is my proposed solution, however it is untested with Windows NT.
Well. At least it does not crash anymore.
With this patch applied, when hitting "Test" (of a new video mode)
button on WindowsNT, the guest window gets resized to correct size,
but is painted with yellow and nothing happens. The CPU enters
100%, and on the kvm console the following messages are displayed:
BUG: kvm_dirty_pages_log_enable_slot: invalid parameters
BUG: kvm_dirty_pages_log_enable_slot: invalid parameters
That's not new, it sometimes displays that shit on attempt to
migrate too, as I mentioned in another thread.
Thanks!
/mjt
> diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c
> index 9f61a01..a7f0d3c 100644
> --- a/hw/cirrus_vga.c
> +++ b/hw/cirrus_vga.c
> @@ -676,15 +676,17 @@ static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h)
> int sx, sy;
> int dx, dy;
> int width, height;
> + uint32_t start_addr, line_offset, line_compare;
> int depth;
> int notify = 0;
[...]
next prev parent reply other threads:[~2010-05-12 19:12 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-06 20:07 Another SIGFPE in display code, now in cirrus Michael Tokarev
2010-05-07 7:54 ` Michael Tokarev
2010-05-10 7:41 ` Avi Kivity
2010-05-10 7:41 ` [Qemu-devel] " Avi Kivity
2010-05-10 8:15 ` Avi Kivity
2010-05-10 8:15 ` [Qemu-devel] " Avi Kivity
2010-05-12 12:20 ` Stefano Stabellini
2010-05-12 12:20 ` [Qemu-devel] " Stefano Stabellini
2010-05-12 12:36 ` Avi Kivity
2010-05-12 12:36 ` [Qemu-devel] " Avi Kivity
2010-05-12 13:45 ` Stefano Stabellini
2010-05-12 13:45 ` [Qemu-devel] " Stefano Stabellini
2010-05-12 14:27 ` Avi Kivity
2010-05-12 14:27 ` [Qemu-devel] " Avi Kivity
2010-05-12 15:57 ` Stefano Stabellini
2010-05-12 15:57 ` [Qemu-devel] " Stefano Stabellini
2010-05-12 16:07 ` Avi Kivity
2010-05-12 16:07 ` [Qemu-devel] " Avi Kivity
2010-05-12 16:55 ` Stefano Stabellini
2010-05-12 16:55 ` [Qemu-devel] " Stefano Stabellini
2010-05-12 16:57 ` Avi Kivity
2010-05-12 16:57 ` [Qemu-devel] " Avi Kivity
2010-05-12 17:07 ` Jamie Lokier
2010-05-12 17:07 ` Jamie Lokier
2010-05-12 18:11 ` Stefano Stabellini
2010-05-12 18:11 ` Stefano Stabellini
2010-05-12 19:12 ` Michael Tokarev [this message]
2010-05-12 19:12 ` Michael Tokarev
2010-05-13 6:49 ` Avi Kivity
2010-05-13 6:49 ` Avi Kivity
2010-05-13 13:48 ` Stefano Stabellini
2010-05-13 13:48 ` Stefano Stabellini
2010-05-13 14:13 ` Michael Tokarev
2010-05-13 14:13 ` Michael Tokarev
2010-05-13 18:03 ` Stefano Stabellini
2010-05-13 18:03 ` Stefano Stabellini
2010-05-13 16:04 ` Jamie Lokier
2010-05-13 16:04 ` Jamie Lokier
2010-05-28 20:51 ` Michael Tokarev
2010-05-28 20:51 ` Michael Tokarev
2010-05-30 8:24 ` Avi Kivity
2010-05-30 8:24 ` Avi Kivity
2010-05-13 7:36 ` Paolo Bonzini
2010-05-13 7:36 ` [Qemu-devel] " Paolo Bonzini
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=4BEAFDB6.6030001@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=avi@redhat.com \
--cc=jamie@shareable.org \
--cc=kressb@moose.net \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
--cc=stefano.stabellini@eu.citrix.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.