From patchwork Thu Mar 26 15:24:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Elisei X-Patchwork-Id: 11460519 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3964C92A for ; Thu, 26 Mar 2020 15:25:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 249F520748 for ; Thu, 26 Mar 2020 15:25:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728449AbgCZPZP (ORCPT ); Thu, 26 Mar 2020 11:25:15 -0400 Received: from foss.arm.com ([217.140.110.172]:33814 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728426AbgCZPZO (ORCPT ); Thu, 26 Mar 2020 11:25:14 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C214B1045; Thu, 26 Mar 2020 08:25:13 -0700 (PDT) Received: from e123195-lin.cambridge.arm.com (e123195-lin.cambridge.arm.com [10.1.196.63]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D376C3F71E; Thu, 26 Mar 2020 08:25:12 -0700 (PDT) From: Alexandru Elisei To: kvm@vger.kernel.org Cc: will@kernel.org, julien.thierry.kdev@gmail.com, andre.przywara@arm.com, sami.mujawar@arm.com, lorenzo.pieralisi@arm.com Subject: [PATCH v3 kvmtool 17/32] hw/vesa: Set the size for BAR 0 Date: Thu, 26 Mar 2020 15:24:23 +0000 Message-Id: <20200326152438.6218-18-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200326152438.6218-1-alexandru.elisei@arm.com> References: <20200326152438.6218-1-alexandru.elisei@arm.com> MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Implemented BARs have an non-zero address and a size. Let's set the size for BAR 0. Reviewed-by: Andre Przywara Signed-off-by: Alexandru Elisei --- hw/vesa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/vesa.c b/hw/vesa.c index ad09373ea2ff..dd59a112330b 100644 --- a/hw/vesa.c +++ b/hw/vesa.c @@ -69,6 +69,7 @@ struct framebuffer *vesa__init(struct kvm *kvm) goto out_error; vesa_pci_device.bar[0] = cpu_to_le32(vesa_base_addr | PCI_BASE_ADDRESS_SPACE_IO); + vesa_pci_device.bar_size[0] = PCI_IO_SIZE; r = device__register(&vesa_device); if (r < 0) goto unregister_ioport;