From: Avi Kivity <avi@redhat.com>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 3/3] vga: compile cirrus_vga in hwlib
Date: Sun, 09 Oct 2011 18:19:34 +0200 [thread overview]
Message-ID: <4E91C996.6040705@redhat.com> (raw)
In-Reply-To: <CAAu8pHsOJaPTxmLm1VXyJ0T2uxsXfF1KdQ-yBq9OF-s9n8xQJw@mail.gmail.com>
On 10/09/2011 12:24 PM, Blue Swirl wrote:
> Remove target dependencies and compile Cirrus VGA in hwlib.
> @@ -618,10 +621,10 @@ static void
> cirrus_invalidate_region(CirrusVGAState * s, int off_begin,
> for (y = 0; y< lines; y++) {
> off_cur = off_begin;
> off_cur_end = (off_cur + bytesperline)& s->cirrus_addr_mask;
> - off_cur&= TARGET_PAGE_MASK;
> + off_cur&= CIRRUS_PAGE_MASK;
> while (off_cur< off_cur_end) {
> memory_region_set_dirty(&s->vga.vram, off_cur);
> - off_cur += TARGET_PAGE_SIZE;
> + off_cur += CIRRUS_PAGE_SIZE;
> }
> off_begin += off_pitch;
> }
>
Won't that miss some pages, if CIRRUS_PAGE_SIZE > TARGET_PAGE_SIZE?
We probably need to change memory_region_set_dirty() to take a range, or
add a new API that accepts a range. The only time you can assume you
only modify a single page is when you write an aligned natural type; not
general DMA.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2011-10-09 16:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-09 10:24 [Qemu-devel] [PATCH 3/3] vga: compile cirrus_vga in hwlib Blue Swirl
2011-10-09 16:19 ` Avi Kivity [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-01-22 13:07 Blue Swirl
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=4E91C996.6040705@redhat.com \
--to=avi@redhat.com \
--cc=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
/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.