From: Juan Quintela <quintela@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH v2] update bochs vbe interface
Date: Wed, 24 Mar 2010 23:18:59 +0100 [thread overview]
Message-ID: <m339zptlbg.fsf@trasno.mitica> (raw)
In-Reply-To: <1269460245-31941-1-git-send-email-kraxel@redhat.com> (Gerd Hoffmann's message of "Wed, 24 Mar 2010 20:50:45 +0100")
Gerd Hoffmann <kraxel@redhat.com> wrote:
> The bochs vbe interface got a new register a while back, which specifies
> the linear framebuffer size in 64k units. This patch adds support for
> the new register to qemu. With this patch applied vgabios 0.6c works
> with qemu.
>
> [ v2: Don't savevm the new register. Doing so breaks migration,
> and as it carries read-only information for the guest there
> is no need to save it. ]
It don't compile (as expected). VMSTATE_UINT16_ARRAY() checks that you
sent the whole array.
/mnt/kvm/qemu/qemu-negotiate/hw/vga.c:2219: error: invalid operands to binary - (have ‘uint16_t (*)[10]’ and ‘uint16_t (*)[11]’)
make[1]: *** [vga.o] Error 1
make[1]: *** Waiting for unfinished jobs....
^Cmake[1]: *** [translate.o] Interrupt
make[1]: *** [op_helper.o] Interrupt
make: *** [subdir-x86_64-softmmu] Interrupt
> ---
> hw/vga.c | 5 +++--
> hw/vga_int.h | 6 +++++-
> 2 files changed, 8 insertions(+), 3 deletions(-)
>
> diff --git a/hw/vga.c b/hw/vga.c
> index 6a1a059..f9e07cf 100644
> --- a/hw/vga.c
> +++ b/hw/vga.c
> @@ -1955,7 +1955,8 @@ void vga_common_reset(VGACommonState *s)
> #ifdef CONFIG_BOCHS_VBE
> s->vbe_index = 0;
> memset(s->vbe_regs, '\0', sizeof(s->vbe_regs));
> - s->vbe_regs[VBE_DISPI_INDEX_ID] = VBE_DISPI_ID0;
> + s->vbe_regs[VBE_DISPI_INDEX_ID] = VBE_DISPI_ID5;
Now, to show my ignorance, what does this change means?
I can't understand it looking at the whole file (but I don't understand
vga.c too well anyways).
Later, Juan.
next prev parent reply other threads:[~2010-03-24 22:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-24 19:50 [Qemu-devel] [PATCH v2] update bochs vbe interface Gerd Hoffmann
2010-03-24 22:18 ` Juan Quintela [this message]
2010-03-25 8:32 ` [Qemu-devel] " Gerd Hoffmann
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=m339zptlbg.fsf@trasno.mitica \
--to=quintela@redhat.com \
--cc=kraxel@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).