qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Gerd Hoffmann" <kraxel@redhat.com>
Subject: [Qemu-devel] [PATCH v2 2/6] vga-pci: use PCI_VGA_MMIO_SIZE
Date: Tue, 22 May 2018 18:50:54 +0200	[thread overview]
Message-ID: <20180522165058.15404-3-kraxel@redhat.com> (raw)
In-Reply-To: <20180522165058.15404-1-kraxel@redhat.com>

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/display/vga-pci.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/hw/display/vga-pci.c b/hw/display/vga-pci.c
index fb3e4cd400..700ac58c69 100644
--- a/hw/display/vga-pci.c
+++ b/hw/display/vga-pci.c
@@ -232,7 +232,8 @@ static void pci_std_vga_realize(PCIDevice *dev, Error **errp)
 
     /* mmio bar for vga register access */
     if (d->flags & (1 << PCI_VGA_FLAG_ENABLE_MMIO)) {
-        memory_region_init(&d->mmio, NULL, "vga.mmio", 4096);
+        memory_region_init(&d->mmio, NULL, "vga.mmio",
+                           PCI_VGA_MMIO_SIZE);
 
         if (d->flags & (1 << PCI_VGA_FLAG_ENABLE_QEXT)) {
             qext = true;
@@ -267,7 +268,8 @@ static void pci_secondary_vga_realize(PCIDevice *dev, Error **errp)
     s->con = graphic_console_init(DEVICE(dev), 0, s->hw_ops, s);
 
     /* mmio bar */
-    memory_region_init(&d->mmio, OBJECT(dev), "vga.mmio", 4096);
+    memory_region_init(&d->mmio, OBJECT(dev), "vga.mmio",
+                       PCI_VGA_MMIO_SIZE);
 
     if (d->flags & (1 << PCI_VGA_FLAG_ENABLE_QEXT)) {
         qext = true;
-- 
2.9.3

  parent reply	other threads:[~2018-05-22 16:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-22 16:50 [Qemu-devel] [PATCH v2 0/6] display: add new bochs-display device Gerd Hoffmann
2018-05-22 16:50 ` [Qemu-devel] [PATCH v2 1/6] vga: move bochs vbe defines to header file Gerd Hoffmann
2018-05-22 16:50 ` Gerd Hoffmann [this message]
2018-05-22 17:19   ` [Qemu-devel] [PATCH v2 2/6] vga-pci: use PCI_VGA_MMIO_SIZE Marc-André Lureau
2018-05-22 20:50   ` Philippe Mathieu-Daudé
2018-05-22 16:50 ` [Qemu-devel] [PATCH v2 3/6] hw/display: add new bochs-display device Gerd Hoffmann
2018-05-22 16:50 ` [Qemu-devel] [PATCH v2 4/6] bochs-display: add dirty tracking support Gerd Hoffmann
2018-05-22 16:50 ` [Qemu-devel] [PATCH v2 5/6] bochs-display: add pcie support Gerd Hoffmann
2018-05-22 20:52   ` Philippe Mathieu-Daudé
2018-05-23  6:50     ` Gerd Hoffmann
2018-05-22 16:50 ` [Qemu-devel] [PATCH v2 6/6] MAINTAINERS: add vga entries Gerd Hoffmann
2018-05-22 17:18   ` Marc-André Lureau
2018-05-22 20:54   ` Philippe Mathieu-Daudé

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=20180522165058.15404-3-kraxel@redhat.com \
    --to=kraxel@redhat.com \
    --cc=marcandre.lureau@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).