qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [Bug 1658634] [PATCH] console: fix console resize


From: Laszlo Ersek \(Red Hat\)
Subject: Re: [Qemu-devel] [Bug 1658634] [PATCH] console: fix console resize
Date: Tue, 24 Jan 2017 11:20:52 -0000

On 01/24/17 11:37, elmarco wrote:
> Hi
> 
> On Tue, Jan 24, 2017 at 2:31 PM Gerd Hoffmann <address@hidden>
> wrote:
> 
>> Only skip surface reallocation in case the old surface was created using
>> qemu_alloc_display (via qemu_create_displaysurface) too, otherwise we
>> might end up with a DisplaySurface with the wrong backing storage.
>>
>> Cc: address@hidden
>> Cc: Marc-André Lureau <address@hidden>
>> Fixes: cd958edb1fae85d0c7d1e1acbff82d22724e8d64
>> Signed-off-by: Gerd Hoffmann <address@hidden>
>> ---
>>  ui/console.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/ui/console.c b/ui/console.c
>> index b9575f2..67c65b7 100644
>> --- a/ui/console.c
>> +++ b/ui/console.c
>> @@ -2121,7 +2121,7 @@ void qemu_console_resize(QemuConsole *s, int width,
>> int height)
>>
>>      assert(s->console_type == GRAPHIC_CONSOLE);
>>
>> -    if (s->surface &&
>> +    if (s->surface && (surface->flags & QEMU_ALLOCATED_FLAG) &&
>>          pixman_image_get_width(s->surface->image) == width &&
>>          pixman_image_get_height(s->surface->image) == height) {
>>          return;
>>
> 
> You are missing the 's->' !
> 
> with that,
> Reviewed-by: Marc-André Lureau <address@hidden>

With that change:

Tested-by: Laszlo Ersek <address@hidden>

Also,

Cc: address@hidden

Thanks
Laszlo


> --
>> 1.8.3.1
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1658634
>>
>> Title:
>>   Can't get correct display with latest QEMU and OVMF BIOS
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/qemu/+bug/1658634/+subscriptions
>>

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1658634

Title:
  Can't get correct display with latest QEMU and OVMF BIOS

Status in QEMU:
  Confirmed

Bug description:
  I tried to install a Ubuntu 16.04.1 Desktop 64bits with latest QEMU and OVMF 
UEFI BIOS, however I can't get correct display output with default vga 
configuration (-vga std). However, qemu works with a couple of different 
configurations:
  1. "-vga cirrus" + "-bios OVMF.fd": works
  2. "-vga std" + non-UEFI bios: works

  The same error with QEMU 2.8.0 release. Everything works well on
  2.7.0/1.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1658634/+subscriptions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]