qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Vitaly Chipounov <vitaly@cyberhaven.com>
To: BALATON Zoltan <balaton@eik.bme.hu>
Cc: qemu-devel@nongnu.org, kraxel@redhat.com
Subject: Re: [PATCH] hw/display/virtio-vga: made vga memory size configurable
Date: Sun, 14 Mar 2021 13:50:45 +0100	[thread overview]
Message-ID: <fc7868a0-d279-e7c3-8e5c-46294168c581@cyberhaven.com> (raw)
In-Reply-To: <21f7c376-931-b050-3d4a-aaedff26e78c@eik.bme.hu>

Yes, it's a typo in the commit message, sorry.

Vitaly

On 3/14/21 1:45 PM, BALATON Zoltan wrote:
> On Sun, 14 Mar 2021, vitaly@cyberhaven.com wrote:
>> From: Vitaly Chipounov <vitaly@cyberhaven.com>
>>
>> This enables higher resolutions. The default is still 8MB for
>> backwards compatibility with existing snapshots.
>>
>> The property name "vgamem_fb" is similar to that of the other
>
> Isn't that vgamem_mb? Code has that so it's just a typo in commit 
> message.
>
> Regards,
> BALATON Zoltan
>
>> graphic adapters.
>>
>> seabios/vgasrc/svgamodes.c needs to be updated as well.
>> For example, adding the following line would expose
>> a 3840x2160 resolution to the guest.
>>
>> { 0x199, { MM_DIRECT, 3840, 2160, 32, 8, 16, SEG_GRAPH } },
>>
>> Signed-off-by: Vitaly Chipounov <vitaly@cyberhaven.com>
>> ---
>> hw/display/virtio-vga.c | 3 ++-
>> hw/virtio/virtio-pci.h  | 2 ++
>> 2 files changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/hw/display/virtio-vga.c b/hw/display/virtio-vga.c
>> index d3c6404061..657fafc48f 100644
>> --- a/hw/display/virtio-vga.c
>> +++ b/hw/display/virtio-vga.c
>> @@ -118,7 +118,7 @@ static void 
>> virtio_vga_base_realize(VirtIOPCIProxy *vpci_dev, Error **errp)
>>     int i;
>>
>>     /* init vga compat bits */
>> -    vga->vram_size_mb = 8;
>> +    vga->vram_size_mb = vpci_dev->vgamem_size_mb;
>>     vga_common_init(vga, OBJECT(vpci_dev));
>>     vga_init(vga, OBJECT(vpci_dev), 
>> pci_address_space(&vpci_dev->pci_dev),
>>              pci_address_space_io(&vpci_dev->pci_dev), true);
>> @@ -204,6 +204,7 @@ static void virtio_vga_set_big_endian_fb(Object 
>> *obj, bool value, Error **errp)
>>
>> static Property virtio_vga_base_properties[] = {
>>     DEFINE_VIRTIO_GPU_PCI_PROPERTIES(VirtIOPCIProxy),
>> +    DEFINE_PROP_UINT32("vgamem_mb", VirtIOPCIProxy, vgamem_size_mb, 8),
>>     DEFINE_PROP_END_OF_LIST(),
>> };
>>
>> diff --git a/hw/virtio/virtio-pci.h b/hw/virtio/virtio-pci.h
>> index d7d5d403a9..8684311a8d 100644
>> --- a/hw/virtio/virtio-pci.h
>> +++ b/hw/virtio/virtio-pci.h
>> @@ -151,6 +151,8 @@ struct VirtIOPCIProxy {
>>     VirtIOIRQFD *vector_irqfd;
>>     int nvqs_with_notifiers;
>>     VirtioBusState bus;
>> +
>> +    uint32_t vgamem_size_mb;
>> };
>>
>> static inline bool virtio_pci_modern(VirtIOPCIProxy *proxy)
>>


  reply	other threads:[~2021-03-14 12:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-14 12:23 [PATCH] hw/display/virtio-vga: made vga memory size configurable vitaly
2021-03-14 12:45 ` BALATON Zoltan
2021-03-14 12:50   ` Vitaly Chipounov [this message]
2021-03-15  7:21 ` Gerd Hoffmann
2021-03-15 11:29   ` Vitaly Chipounov
2021-03-15 15:24     ` Gerd Hoffmann
2021-03-16 19:51       ` Vitaly Chipounov
2021-03-17  6:45         ` 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=fc7868a0-d279-e7c3-8e5c-46294168c581@cyberhaven.com \
    --to=vitaly@cyberhaven.com \
    --cc=balaton@eik.bme.hu \
    --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).