From: Avi Kivity <avi@qumranet.com>
To: kvm-devel@lists.sourceforge.net
Subject: Re: [PATCH] Move common VGAState attributes to VGA_STATE_COMMON
Date: Tue, 12 Feb 2008 14:44:59 +0200 [thread overview]
Message-ID: <47B194CB.4050406@qumranet.com> (raw)
In-Reply-To: <20080211175555.GB8986@butch.linux2go.dk>
Soren Hansen wrote:
> I was told to resend this, so here goes:
>
> vmware_vga.c uses functions in vga.c to do some things. They
> need to agree on which parts of their state struct is common
> and which aren't, otherwise they'll overwrite parts of each
> other's state. This patch makes it so.
>
> Signed-off-by: Soren Hansen <soren@ubuntu.com>
> ---
> qemu/hw/cirrus_vga.c | 3 ---
> qemu/hw/vga_int.h | 17 +++++++----------
> 2 files changed, 7 insertions(+), 13 deletions(-)
>
> diff --git a/qemu/hw/cirrus_vga.c b/qemu/hw/cirrus_vga.c
> index 1915c73..35cee6b 100644
> --- a/qemu/hw/cirrus_vga.c
> +++ b/qemu/hw/cirrus_vga.c
> @@ -240,9 +240,6 @@ typedef struct CirrusVGAState {
> int cirrus_mmio_io_addr;
> unsigned long cirrus_lfb_addr;
> unsigned long cirrus_lfb_end;
> - int aliases_enabled;
> - uint32_t aliased_bank_base[2];
> - uint32_t aliased_bank_limit[2];
> uint32_t cirrus_addr_mask;
> uint32_t linear_mmio_mask;
> uint8_t cirrus_shadow_gr0;
> diff --git a/qemu/hw/vga_int.h b/qemu/hw/vga_int.h
> index 912d977..c620ce9 100644
> --- a/qemu/hw/vga_int.h
> +++ b/qemu/hw/vga_int.h
> @@ -145,20 +145,17 @@
> void (*cursor_draw_line)(struct VGAState *s, uint8_t *d, int y); \
> /* tell for each page if it has been updated since the last time */ \
> uint32_t last_palette[256]; \
> - uint32_t last_ch_attr[CH_ATTR_SIZE]; /* XXX: make it dynamic */ \
> - unsigned long map_addr; \
> - unsigned long map_end;
> + uint32_t last_ch_attr[CH_ATTR_SIZE]; /* XXX: make it dynamic */ \
> + unsigned long map_addr; \
> + unsigned long map_end; \
> + int32_t aliases_enabled; \
> + int32_t pad1; \
> + uint32_t aliased_bank_base[2]; \
> + uint32_t aliased_bank_limit[2];
>
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.
--
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/
next prev parent reply other threads:[~2008-02-12 12:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-11 17:55 [PATCH] Move common VGAState attributes to VGA_STATE_COMMON Soren Hansen
2008-02-11 18:02 ` Izik Eidus
2008-02-12 12:44 ` Avi Kivity [this message]
2008-02-22 10:12 ` Soren Hansen
2008-02-22 10:16 ` Chris Wedgwood
2008-02-24 7:29 ` Avi Kivity
-- strict thread matches above, loose matches on Subject: below --
2008-01-30 20:56 Soren Hansen
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=47B194CB.4050406@qumranet.com \
--to=avi@qumranet.com \
--cc=kvm-devel@lists.sourceforge.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox